public string GetDataAsHtml( string stratum, int floor, T8BTEMST.T8BTEMST Enemies, T8BTEMGP.T8BTEMGP EnemyGroups, T8BTEMEG.T8BTEMEG EncounterGroups, GameVersion version, T8BTXTMT treasures, ItemDat.ItemDat items, Dictionary<uint, TSS.TSSEntry> inGameIdDict, bool surroundingTable = true, bool phpLinks = false ) { StringBuilder sb = new StringBuilder(); if ( surroundingTable ) { sb.Append( "<div id=\"" + stratum + floor + "\">" ); sb.Append( "<table class=\"necropolisfloor\">" ); sb.Append( "<tr>" ); sb.Append( "<th colspan=\"6\">" ); sb.Append( "<div class=\"itemname\" style=\"text-align: center;\">" ); sb.Append( stratum + "-" + floor ); sb.Append( "</div>" ); sb.Append( "</td>" ); sb.Append( "</tr>" ); } for ( int y = 0; y < VerticalTiles; y++ ) { sb.Append( "<tr>" ); for ( int x = 0; x < HorizontalTiles; x++ ) { sb.Append( TileList[(int)( y * HorizontalTiles + x )].GetDataAsHtml( stratum, floor, Enemies, EnemyGroups, EncounterGroups, version, treasures, items, inGameIdDict, phpLinks: phpLinks ) ); } sb.Append( "</tr>" ); //sb.Append( "<tr><td colspan=\"" + HorizontalTiles + "\"><hr></td></tr>" ); } if ( surroundingTable ) { sb.Append( "</table>" ); sb.Append( "</div>" ); } return sb.ToString(); }
public string GetDataAsHtml( ItemDat.ItemDat items, Dictionary<uint, TSS.TSSEntry> inGameIdDict ) { StringBuilder sb = new StringBuilder(); for ( int i = 0; i < Items.Length; ++i ) { if ( Items[i] > 0 ) { var item = items.itemIdDict[this.Items[i]]; sb.Append( inGameIdDict[item.NamePointer].StringEngOrJpnHtml( GameVersion.PS3 ) ); sb.Append( " / " ); sb.Append( Chances[i] ); } sb.Append( ( i % 3 == 2 ) ? "<br>" : " -- " ); } return sb.ToString(); }
public string GetDataAsHtml( GameVersion version, ItemDat.ItemDat items, ShopData shops, Dictionary<uint, TSS.TSSEntry> inGameIdDict, bool phpLinks = false ) { StringBuilder sb = new StringBuilder(); sb.AppendLine( "<tr id=\"shop" + InGameID + "\">" ); sb.AppendLine( "<td class=\"synopsistitle\" colspan=\"3\">" ); sb.AppendLine( inGameIdDict[StringDicID].StringJpnHtml( version ) ); sb.AppendLine( "</td>" ); sb.AppendLine( "<td class=\"synopsistitle\" colspan=\"3\">" ); sb.AppendLine( inGameIdDict[StringDicID].StringEngHtml( version ) ); sb.AppendLine( "</td>" ); sb.AppendLine( "</tr>" ); sb.AppendLine( "<tr>" ); for ( int i = 2; i < 9; ++i ) { if ( i == 4 ) { continue; } sb.AppendLine( "<td>" ); foreach ( var item in ShopItems ) { if ( items.itemIdDict[item.ItemID].Data[(int)ItemDat.ItemData.Category] == i ) { sb.Append( item.GetDataAsHtml( version, items, inGameIdDict, phpLinks: phpLinks ) ); sb.Append( "<br>" ); } } sb.AppendLine( "</td>" ); } sb.AppendLine( "</tr>" ); if ( OnTrigger > 0 ) { sb.Append( "<tr>" ); sb.Append( "<td class=\"strategychar\" colspan=\"6\">" ); sb.Append( "Changes to <a href=\"#shop" + ChangeToShop + "\">" ); sb.Append( inGameIdDict[shops.ShopDictionary[ChangeToShop].StringDicID].StringEngOrJpnHtml( version ) ); sb.Append( "</a>" ); sb.Append( "</td>" ); sb.Append( "</tr>" ); } return sb.ToString(); }