Exemple #1
0
        public string GetIndexDataAsHtml(GameVersion version, TO8CHLI skits, Dictionary <uint, TSS.TSSEntry> inGameIdDict, bool phpLinks = false)
        {
            StringBuilder sb = new StringBuilder();

            string url = HyoutaTools.Tales.Vesperia.Website.GenerateWebsite.GetUrl(Website.WebsiteSection.Skit, version, phpLinks, extra: RefString);

            sb.Append("<tr>");

            sb.Append("<td>");
            sb.Append(CategoryString);
            sb.Append("</td>");
            sb.Append("<td>");
            sb.Append("<a href=\"" + url + "\">");
            sb.Append(inGameIdDict[StringDicIdName].StringJpnHtml(version));
            sb.Append("</a>");
            sb.Append("</td>");
            sb.Append("<td>");
            sb.Append("<a href=\"" + url + "\">");
            sb.Append(inGameIdDict[StringDicIdName].StringEngHtml(version));
            sb.Append("</a>");
            sb.Append("</td>");
            sb.Append("<td>");
            Website.GenerateWebsite.AppendCharacterBitfieldAsImageString(sb, version, CharacterBitmask);
            sb.Append("</td>");

            sb.Append("</tr>");

            return(sb.ToString());
        }
Exemple #2
0
        public string GetDataAsHtml(GameVersion version, TO8CHLI skits, Dictionary <uint, TSS.TSSEntry> inGameIdDict)
        {
            StringBuilder sb = new StringBuilder();

            sb.Append(RefString);
            sb.Append("<br>");
            sb.Append(inGameIdDict[StringDicIdName].StringJpnHtml(version));
            sb.Append("<br>");
            sb.Append(inGameIdDict[StringDicIdCondition].StringJpnHtml(version));
            sb.Append("<br>");
            sb.Append(inGameIdDict[StringDicIdName].StringEngHtml(version));
            sb.Append("<br>");
            sb.Append(inGameIdDict[StringDicIdCondition].StringEngHtml(version));
            sb.Append("<br>Category: ");
            sb.Append(CategoryString);
            sb.Append("<br>Available after event: ");
            sb.Append(FlagTrigger);
            if (FlagCancel == 9999999)
            {
                sb.Append("<br>Never expires.");
            }
            else
            {
                sb.Append("<br>Expires after event: ");
                sb.Append(FlagCancel);
            }
            if (SkitConditionForwarderReference == -1)
            {
                Util.Assert(SkitConditionRelated == 0);
                sb.Append("<br>No special condition.");
            }
            else
            {
                Util.Assert(SkitConditionRelated > 0);
                var fw = skits.SkitConditionForwarderList[SkitConditionForwarderReference];

                /*
                 * sb.AppendLine();
                 * sb.Append( "<br>Trigger Condition #" + SkitConditionForwarderReference );
                 * sb.Append( " / Condition: " + fw.SkitConditionReference );
                 * sb.Append( " / Count: " + fw.SkitConditionCount );
                 * //*/
                for (int i = 0; i < fw.SkitConditionCount; ++i)
                {
                    var c = skits.SkitConditionList[(int)(fw.SkitConditionReference + i)];
                    sb.AppendLine("<br>");
                    c.GetDataAsHtml(sb);
                }
                sb.AppendLine("~SkitConditionRelated: " + SkitConditionRelated);
            }

            sb.Append("<br>");
            Website.GenerateWebsite.AppendCharacterBitfieldAsImageString(sb, version, CharacterBitmask);

            sb.AppendLine("<br>");
            sb.AppendLine("~4: 0x" + Data[4].ToString("X8"));
            sb.Append("<br>");

            return(sb.ToString());
        }
Exemple #3
0
        public string GetIndexDataAsHtml(GameVersion version, string versionPostfix, GameLocale locale, WebsiteLanguage websiteLanguage, TO8CHLI skits, Dictionary <uint, TSS.TSSEntry> inGameIdDict, bool phpLinks = false)
        {
            StringBuilder sb = new StringBuilder();

            string url = HyoutaTools.Tales.Vesperia.Website.WebsiteGenerator.GetUrl(Website.WebsiteSection.Skit, version, versionPostfix, locale, websiteLanguage, phpLinks, extra: RefString);

            sb.Append("<tr>");

            sb.Append("<td>");
            sb.Append(CategoryString);
            sb.Append("</td>");
            if (websiteLanguage.WantsJp())
            {
                sb.Append("<td>");
                sb.Append("<a href=\"" + url + "\">");
                sb.Append(inGameIdDict[StringDicIdName].StringJpnHtml(version, inGameIdDict));
                sb.Append("</a>");
                sb.Append("</td>");
            }
            if (websiteLanguage.WantsEn())
            {
                sb.Append("<td>");
                sb.Append("<a href=\"" + url + "\">");
                sb.Append(inGameIdDict[StringDicIdName].StringEngHtml(version, inGameIdDict));
                sb.Append("</a>");
                sb.Append("</td>");
            }
            sb.Append("<td>");
            Website.WebsiteGenerator.AppendCharacterBitfieldAsImageString(sb, inGameIdDict, version, CharacterBitmask, websiteLanguage.MainJp());
            sb.Append("</td>");

            sb.Append("</tr>");

            return(sb.ToString());
        }