public override void AddGumpLayout() { AddBackground(0, 0, 400, (CityLoyaltySystem.Cities.Count * 25) + 100, 5054); AddHtml(0, 15, 400, 20, "<center>City Loyalty System Info</center>", false, false); AddLabel(10, 35, 0, "City"); AddLabel(150, 35, 0, "Citizens"); AddLabel(250, 35, 0, "Treasury"); AddLabel(350, 35, 0, "View"); for (int i = 0; i < CityLoyaltySystem.Cities.Count; i++) { CityLoyaltySystem city = CityLoyaltySystem.Cities[i]; AddHtml(10, 60 + (i * 25), 190, 20, city.Definition.Name, false, false); AddHtml(150, 60 + (i * 25), 100, 20, city.GetCitizenCount().ToString(), false, false); AddHtml(250, 60 + (i * 25), 100, 20, city.Treasury.ToString("N0", System.Globalization.CultureInfo.GetCultureInfo("en-US")), false, false); AddButton(350, 60 + (i * 25), 4005, 4007, i + 100, GumpButtonType.Reply, 0); } }