Example #1
0
        public override void Load()
        {
            instance      = this;
            Spell1        = RegisterHotKey("Select Spell 1", "Z");
            Spell2        = RegisterHotKey("Select Spell 2", "X");
            Spell3        = RegisterHotKey("Select Spell 3", "C");
            Spell4        = RegisterHotKey("Select Spell 4", "V");
            NextSpell     = RegisterHotKey("Select Next Spell", "");
            PreviousSpell = RegisterHotKey("Select Previous Spell", "");

            if (!Main.dedServ)
            {
                abilityInterface = new UserInterface();

                abilityUI = new AbilityUI();
                abilityUI.Activate();                 // Activate calls Initialize() on the UIState if not initialized, then calls OnActivate and then calls Activate on every child element
            }
        }
Example #2
0
 public override void Unload()
 {
     abilityUI.Deactivate();
     abilityUI = null;
 }