public ShadowguardGump(PlayerMobile user) : base(100, 50) { User = user; AddBackground(0, 0, 400, 400, 83); AddHtmlLocalized(0, 10, 400, 16, 1154645, "#1156164", 0xFFFF, false, false); // Shadowguard AddHtmlLocalized(0, 45, 400, 16, 1154645, "#1156181", 0xFFFF, false, false); // Select the area of Shadowguard you wish to explore... ShadowguardController controller = ShadowguardController.Instance; int index = 0; for (int i = 0; i < _Encounters.Length; i++) { EncounterType encounter = _Encounters[i]; int hue = controller.HasCompletedEncounter(User, encounter) ? Green : Red; AddHtmlLocalized(50, 78 + (index * 20), 200, 16, ShadowguardController.GetLocalization(encounter), hue, false, false); AddButton(15, 80 + (index * 20), 1209, 1210, i + 1, GumpButtonType.Reply, 0); index++; } if (controller.IsInQueue(User)) { AddHtmlLocalized(50, 358, 200, 16, 1156247, 0xFFFFFF, false, false); // Exit Shadowguard Queues AddButton(15, 360, 1209, 1210, 123, GumpButtonType.Reply, 0); } }
public ShadowguardGump(PlayerMobile user) : base(100, 100) { User = user; AddPage(0); AddBackground(0, 0, 370, 320, 83); AddHtmlLocalized(10, 10, 350, 18, 1154645, "#1156164", 0x7FFF, false, false); // Shadowguard AddHtmlLocalized(10, 41, 350, 18, 1154645, "#1156181", 0x7FFF, false, false); // Select the area of Shadowguard you wish to explore... ShadowguardController controller = ShadowguardController.Instance; int index = 0; for (int i = 0; i < _Encounters.Length; i++) { EncounterType encounter = _Encounters[i]; int hue = controller.HasCompletedEncounter(User, encounter) ? Green : Red; AddHtmlLocalized(50, 72 + (index * 20), 150, 20, ShadowguardController.GetLocalization(encounter), hue, false, false); AddButton(10, 72 + (index * 20), 1209, 1210, i + 1, GumpButtonType.Reply, 0); index++; } }