Пример #1
0
        public string OnInstallRefuse()
        {
            string sakuraname = this.reference(0);
            string value      = "Refused. " + SHIORI3FW.EscapeAllTags(sakuraname) + "'s archive.";

            if (!this.s.ghostexlist.Contains(sakuraname))               // 同時起動していない時
            {
                value += @"\n\n";
                value += AYATemplate.MenuItem("change", "GOYAUTIL_InstallChange", sakuraname, "ghost") + @"\n";
                value += AYATemplate.MenuItem("call", "GOYAUTIL_InstallCall", sakuraname) + @"\n";
                value += AYATemplate.MenuItem("hold", "Menu_CANCEL");
            }
            value = @"\1\s[100]\0\s[0]\_q" + value + @"\e";
            return(value);
        }
Пример #2
0
        public string OnRSSComplete()
        {
            string value;

            value = @"■" + this.sReference(0) + @"\n\n[half]\_n";
            for (int i = 2; i < this.referenceCount(); i++)
            {
                if (i >= 22)
                {
                    value += @"and more...\n";
                    break;
                }
                string[] _r    = this.reference(i).Split('\u0001');
                string   title = _r.Length > 0 ? _r[0] : "";
                string   url   = _r.Length > 1 ? _r[1] : "";
                string   date  = _r.Length > 2 ? _r[2] : "";
                if (Regex.IsMatch(title, @"(^AD:)|(^PR:)|(\[ *PR *\])"))
                {
                    continue;
                }
                string content = title;
                if (date.CompareTo("") != 0)
                {
                    string[] _datea = date.Split(',');
                    string   month  = _datea.Length > 1 ? _datea[1] : "";
                    string   day    = _datea.Length > 2 ? _datea[2] : "";
                    content = "[" + month + "/" + day + "]" + title;
                }
                value += @"\_a[" + url + @"]"
                         + SHIORI3FW.EscapeAllTags(AYATemplate.MakeJustText(content, 46))
                         + @"\_a\n";
            }
            value += @"\_n\n\n[half]";
            value += AYATemplate.MenuItem("open browser", this.reference(1)) + @"\n";
            value += AYATemplate.MenuItem("cancel", "Menu_CANCEL");
            value  = @"\![set,choicetimeout,-1]\![set,balloontimeout,-1]\1\s[100]\0\b[2]\s[0]\_q" + value + @"\e";
            return(value);
        }
Пример #3
0
 protected string sReference(int i)
 {
     return(SHIORI3FW.EscapeAllTags(this.reference(i)));
 }