Exemple #1
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            menu = new Menu("Utility+", "UtilityPlus", true);

            Menu pluginMenu = new Menu("PluginList", "PluginList");            
            pluginMenu.AddItem(new MenuItem("LoadSpellTracker", "Load SpellTracker Plugin").SetValue(true));
            pluginMenu.AddItem(new MenuItem("LoadWardTracker", "Load WardTracker Plugin").SetValue(true));
            pluginMenu.AddItem(new MenuItem("LoadTowerRange", "Load TowerRange Plugin").SetValue(true));
            pluginMenu.AddItem(new MenuItem("LoadPluginDescription", "    -- Reload to take effect --"));

            menu.AddSubMenu(pluginMenu);
            menu.AddToMainMenu();

            if (menu.Item("LoadSpellTracker").GetValue<bool>())
            {
                spellTracker = new SpellTracker.Tracker(menu);
            }

            if (menu.Item("LoadWardTracker").GetValue<bool>())
            {
                wardTracker = new WardTracker.Tracker(menu);
            }

            if (menu.Item("LoadTowerRange").GetValue<bool>())
            {
                towerRange = new TowerRange.RangeIndicator(menu);
            }
        }
Exemple #2
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            menu = new Menu("Utility+", "UtilityPlus", true);

            Menu pluginMenu = new Menu("PluginList", "PluginList");

            pluginMenu.AddItem(new MenuItem("LoadSpellTracker", "Load SpellTracker Plugin").SetValue(true));
            pluginMenu.AddItem(new MenuItem("LoadWardTracker", "Load WardTracker Plugin").SetValue(true));
            pluginMenu.AddItem(new MenuItem("LoadTowerRange", "Load TowerRange Plugin").SetValue(true));
            pluginMenu.AddItem(new MenuItem("LoadPluginDescription", "    -- Reload to take effect --"));

            menu.AddSubMenu(pluginMenu);
            menu.AddToMainMenu();

            if (menu.Item("LoadSpellTracker").GetValue <bool>())
            {
                spellTracker = new SpellTracker.Tracker(menu);
            }

            if (menu.Item("LoadWardTracker").GetValue <bool>())
            {
                wardTracker = new WardTracker.Tracker(menu);
            }

            if (menu.Item("LoadTowerRange").GetValue <bool>())
            {
                towerRange = new TowerRange.RangeIndicator(menu);
            }
        }