Quote:
|
Originally Posted by Lokigom92
Is there a way to increase the number of factions it shows? Also, is there a way to add into it a little check to show which players are actually online? That would be awesome if you caould add those into it.
|
Sure, you can add more factions inside
InitializeGump method, «case FactionsManageGumpPage.Faction_select», lines 482+. Also, make sure to relocate buttons and labels so they fit properly into the gump.
For the
online property, you can just check if the mobile's NetState is null or not. You can then use two different colors for player's name: one for online players, and another for offline players. This can be changed in
InitializeGump method, «case FactionsManageGumpPage.Main», lines 281+. In particular, change line 317 from
Code:
AddLabelCropped( x1, offset, l1, 20, NameHue, name ); // Name
to
Code:
AddLabelCropped( x1, offset, l1, 20, player.NetState != null ? GreenHue : NameHue, name ); // Name
I haven't tested this, but it should work.