Ejemplo n.º 1
0
        public ShrineHelper(Manager manager, MenuManager menu)
        {
            this.manager = manager;
            this.menu    = menu.ShrineHelperMenu;

            Player.OnExecuteOrder += OnExecuteOrder;
            Unit.OnModifierAdded  += OnModifierAdded;
        }
Ejemplo n.º 2
0
        public ShrineHelper(Manager manager, MenuManager menu)
        {
            this.manager = manager;
            this.menu    = menu.ShrineHelperMenu;

            if (this.menu.BlockShrineUsage)
            {
                Player.OnExecuteOrder += OnExecuteOrder;
            }
            if (this.menu.AutoDisableItems)
            {
                Unit.OnModifierAdded += OnModifierAdded;
            }

            this.menu.OnBlockEnabledChange += MenuOnBlockEnabledChange;
            this.menu.OnDisableItemsChange += MenuOnDisableItemsChange;
        }
Ejemplo n.º 3
0
        public MenuManager()
        {
            mainMenu = new Menu(" Item Manager", "itemManager", true, "courier_go_to_secretshop", true);

            OffensiveAbilitiesMenu = new OffensiveAbilitiesMenu(mainMenu);
            DefensiveAbilitiesMenu = new DefensiveAbilitiesMenu(mainMenu);
            AutoActionsMenu        = new AutoActionsMenu(mainMenu);
            AbilityHelperMenu      = new AbilityHelperMenu(mainMenu);
            RecoveryMenu           = new RecoveryMenu(mainMenu);
            GoldSpenderMenu        = new GoldSpenderMenu(mainMenu);
            SnatcherMenu           = new SnatcherMenu(mainMenu);
            ItemSwapMenu           = new ItemSwapMenu(mainMenu);
            ShrineHelperMenu       = new ShrineHelperMenu(mainMenu);
            CourierHelperMenu      = new CourierHelperMenu(mainMenu);

            mainMenu.AddToMainMenu();
        }