public static GetCategoryName ( uint cat, GameVersion version, TSS.TSSEntry>.Dictionary |
||
cat | uint | |
version | GameVersion | |
inGameIdDict | TSS.TSSEntry>.Dictionary | |
return | string |
public string GetDataAsHtml(GameVersion version, TSS.TSSFile stringDic, Dictionary <uint, TSS.TSSEntry> inGameIdDict) { StringBuilder sb = new StringBuilder(); //sb.Append( RefString ); sb.Append("<tr id=\"strategyoption" + InGameID + "\">"); sb.Append("<td>"); sb.Append(StrategySet.GetCategoryName(Category, version, inGameIdDict)); sb.Append("</td>"); sb.Append("<td>"); sb.Append("<span class=\"itemname\">"); sb.Append(inGameIdDict[NameStringDicID].StringJpnHtml(version)); sb.Append("</span>"); sb.Append("<br>"); sb.Append(inGameIdDict[DescStringDicID].StringJpnHtml(version)); sb.Append("</td>"); sb.Append("<td>"); sb.Append("<span class=\"itemname\">"); sb.Append(inGameIdDict[NameStringDicID].StringEngHtml(version)); sb.Append("</span>"); sb.Append("<br>"); sb.Append(inGameIdDict[DescStringDicID].StringEngHtml(version)); sb.Append("</td>"); sb.Append("<td>"); Website.GenerateWebsite.AppendCharacterBitfieldAsImageString(sb, version, Characters); sb.Append("</td>"); sb.Append("</tr>"); return(sb.ToString()); }
public string GetDataAsHtml(GameVersion version, string versionPostfix, GameLocale locale, WebsiteLanguage websiteLanguage, TSS.TSSFile stringDic, Dictionary <uint, TSS.TSSEntry> inGameIdDict) { StringBuilder sb = new StringBuilder(); //sb.Append( RefString ); sb.Append("<tr id=\"strategyoption" + InGameID + "\">"); sb.Append("<td>"); sb.Append(StrategySet.GetCategoryName(Category, version, websiteLanguage, inGameIdDict)); sb.Append("</td>"); int colspan = websiteLanguage.WantsBoth() ? 1 : 2; if (websiteLanguage.WantsJp()) { sb.Append("<td colspan=\"" + colspan + "\">"); sb.Append("<span class=\"itemname\">"); sb.Append(inGameIdDict[NameStringDicID].StringJpnHtml(version, inGameIdDict)); sb.Append("</span>"); sb.Append("<br>"); sb.Append(inGameIdDict[DescStringDicID].StringJpnHtml(version, inGameIdDict)); sb.Append("</td>"); } if (websiteLanguage.WantsEn()) { sb.Append("<td colspan=\"" + colspan + "\">"); sb.Append("<span class=\"itemname\">"); sb.Append(inGameIdDict[NameStringDicID].StringEngHtml(version, inGameIdDict)); sb.Append("</span>"); sb.Append("<br>"); sb.Append(inGameIdDict[DescStringDicID].StringEngHtml(version, inGameIdDict)); sb.Append("</td>"); } sb.Append("<td>"); Website.WebsiteGenerator.AppendCharacterBitfieldAsImageString(sb, inGameIdDict, version, Characters, websiteLanguage.MainJp()); sb.Append("</td>"); sb.Append("</tr>"); return(sb.ToString()); }