The way formatting is handled in the Factions gump is a little wonky.
Code:
gumpmsg.AppendFormat("{0,-15}{1,-15}{2,-15}\n",g.GroupType, GetTitle(g.FactionLevel), g.FactionLevel);

The above code appears in an HTML area in a gump to display the factions to players. Currently, if ALL the faction names are the same length, formatting is not an issue. However, once one is longer than the rest, it throws off the list. This code doesn't format the text the way it should either:
Code:
gumpmsg.AppendFormat("{0,-10}\t{1,0}\t{2,10}\n",g.GroupType, GetTitle(g.FactionLevel), g.FactionLevel);

What is the proper way to format this evenly?
 
Back