示例#1
0
        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);
            }
        }
示例#2
0
        public ExitQueueEntry(Mobile from, ShadowguardController controller)
            : base(1156247, 12) // Exit Shadowguard Queues
        {
            _From       = from;
            _Controller = controller;

            Enabled = controller.IsInQueue(from);
        }
示例#3
0
 public override void OnClick()
 {
     if (_Controller != null && _Controller.IsInQueue(_From))
     {
         if (_Controller.RemoveFromQueue(_From))
         {
             _From.SendLocalizedMessage(1156248); // You have been removed from all Shadowguard queues
         }
     }
 }