Exemplo n.º 1
0
        public void UpdateDirEntry(ref SAssemblies.Menu.MenuItemSettings oldMenuItem, SAssemblies.Menu.MenuItemSettings newMenuItem)
        {
            Func <dynamic> save = MenuEntries[oldMenuItem];

            MenuEntries.Remove(oldMenuItem);
            MenuEntries.Add(newMenuItem, save);
            oldMenuItem = newMenuItem;
        }
Exemplo n.º 2
0
 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     Language.SetLanguage();
     AutoItemsActivator.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu("AutoItems", "SAssembliesActivatorsAutoItems"));
     AutoItemsActivatorOffensive = AutoItemsActivator.AddMenuItemSettings("Offensive", "SAssembliesActivatorsAutoItemsOffensive");
     AutoItemsActivatorOffensiveAd = AutoItemsActivatorOffensive.AddMenuItemSettings("Ad", "SAssembliesActivatorsAutoItemsOffensiveAd");
     AutoItemsActivatorOffensiveAp = AutoItemsActivatorOffensive.AddMenuItemSettings("Ap", "SAssembliesActivatorsAutoItemsOffensiveAp");
     AutoItemsActivatorOffensive.MenuItems.Add(
         AutoItemsActivatorOffensive.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsOffensiveKey", Language.GetString("GLOBAL_KEY")).SetValue(new KeyBind(32,
                 KeyBindType.Press))));
     AutoItemsActivatorDefensive = AutoItemsActivator.AddMenuItemSettings("Defensive", "SAssembliesActivatorsAutoItemsDefensive");
     AutoItemsActivatorCleanse = AutoItemsActivatorDefensive.AddMenuItemSettings("Cleanse", "SAssembliesActivatorsAutoItemsCleanse");
     AutoItemsActivatorCleanseConfig.Menu =
         AutoItemsActivatorCleanse.Menu.AddSubMenu(new LeagueSharp.Common.Menu("Cleanse Config",
             "SAssembliesActivatorsAutoItemsCleanseConfig"));
     AutoItemsActivatorCleanseConfig.MenuItems.Add(
         AutoItemsActivatorCleanseConfig.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsCleanseConfigStun", "Stun").SetValue(false)));
     AutoItemsActivatorCleanseConfig.MenuItems.Add(
         AutoItemsActivatorCleanseConfig.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsCleanseConfigSilence", "Silence").SetValue(false)));
     AutoItemsActivatorCleanseConfig.MenuItems.Add(
         AutoItemsActivatorCleanseConfig.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsCleanseConfigTaunt", "Taunt").SetValue(false)));
     AutoItemsActivatorCleanseConfig.MenuItems.Add(
         AutoItemsActivatorCleanseConfig.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsCleanseConfigFear", "Fear").SetValue(false)));
     AutoItemsActivatorCleanseConfig.MenuItems.Add(
         AutoItemsActivatorCleanseConfig.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsCleanseConfigCharm", "Charm").SetValue(false)));
     AutoItemsActivatorCleanseConfig.MenuItems.Add(
         AutoItemsActivatorCleanseConfig.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsCleanseConfigBlind", "Blind").SetValue(false)));
     AutoItemsActivatorCleanseConfig.MenuItems.Add(
         AutoItemsActivatorCleanseConfig.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsCleanseConfigDisarm", "Disarm").SetValue(false)));
     AutoItemsActivatorCleanseConfig.MenuItems.Add(
         AutoItemsActivatorCleanseConfig.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsCleanseConfigSuppress", "Suppress").SetValue(false)));
     AutoItemsActivatorCleanseConfig.MenuItems.Add(
         AutoItemsActivatorCleanseConfig.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsCleanseConfigSlow", "Slow").SetValue(false)));
     AutoItemsActivatorCleanseConfig.MenuItems.Add(
         AutoItemsActivatorCleanseConfig.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsCleanseConfigCombatDehancer", "Combat Dehancer")
                 .SetValue(false)));
     AutoItemsActivatorCleanseConfig.MenuItems.Add(
         AutoItemsActivatorCleanseConfig.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsCleanseConfigSnare", "Snare").SetValue(false)));
     AutoItemsActivatorCleanseConfig.MenuItems.Add(
         AutoItemsActivatorCleanseConfig.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsCleanseConfigPoison", "Posion").SetValue(false)));
     AutoItemsActivator.MenuItems.Add(AutoItemsActivator.Menu.AddItem(new MenuItem("SAssembliesActivatorsAutoItemsActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return AutoItemsActivator;
 }
 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     Language.SetLanguage();
     AutoItemsActivator.Menu       = menu.AddSubMenu(new LeagueSharp.Common.Menu("AutoItems", "SAssembliesActivatorsAutoItems"));
     AutoItemsActivatorOffensive   = AutoItemsActivator.AddMenuItemSettings("Offensive", "SAssembliesActivatorsAutoItemsOffensive");
     AutoItemsActivatorOffensiveAd = AutoItemsActivatorOffensive.AddMenuItemSettings("Ad", "SAssembliesActivatorsAutoItemsOffensiveAd");
     AutoItemsActivatorOffensiveAp = AutoItemsActivatorOffensive.AddMenuItemSettings("Ap", "SAssembliesActivatorsAutoItemsOffensiveAp");
     AutoItemsActivatorOffensive.MenuItems.Add(
         AutoItemsActivatorOffensive.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsOffensiveKey", Language.GetString("GLOBAL_KEY")).SetValue(new KeyBind(32,
                                                                                                                               KeyBindType.Press))));
     AutoItemsActivatorDefensive          = AutoItemsActivator.AddMenuItemSettings("Defensive", "SAssembliesActivatorsAutoItemsDefensive");
     AutoItemsActivatorCleanse            = AutoItemsActivatorDefensive.AddMenuItemSettings("Cleanse", "SAssembliesActivatorsAutoItemsCleanse");
     AutoItemsActivatorCleanseConfig.Menu =
         AutoItemsActivatorCleanse.Menu.AddSubMenu(new LeagueSharp.Common.Menu("Cleanse Config",
                                                                               "SAssembliesActivatorsAutoItemsCleanseConfig"));
     AutoItemsActivatorCleanseConfig.MenuItems.Add(
         AutoItemsActivatorCleanseConfig.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsCleanseConfigStun", "Stun").SetValue(false)));
     AutoItemsActivatorCleanseConfig.MenuItems.Add(
         AutoItemsActivatorCleanseConfig.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsCleanseConfigSilence", "Silence").SetValue(false)));
     AutoItemsActivatorCleanseConfig.MenuItems.Add(
         AutoItemsActivatorCleanseConfig.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsCleanseConfigTaunt", "Taunt").SetValue(false)));
     AutoItemsActivatorCleanseConfig.MenuItems.Add(
         AutoItemsActivatorCleanseConfig.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsCleanseConfigFear", "Fear").SetValue(false)));
     AutoItemsActivatorCleanseConfig.MenuItems.Add(
         AutoItemsActivatorCleanseConfig.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsCleanseConfigCharm", "Charm").SetValue(false)));
     AutoItemsActivatorCleanseConfig.MenuItems.Add(
         AutoItemsActivatorCleanseConfig.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsCleanseConfigBlind", "Blind").SetValue(false)));
     AutoItemsActivatorCleanseConfig.MenuItems.Add(
         AutoItemsActivatorCleanseConfig.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsCleanseConfigDisarm", "Disarm").SetValue(false)));
     AutoItemsActivatorCleanseConfig.MenuItems.Add(
         AutoItemsActivatorCleanseConfig.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsCleanseConfigSuppress", "Suppress").SetValue(false)));
     AutoItemsActivatorCleanseConfig.MenuItems.Add(
         AutoItemsActivatorCleanseConfig.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsCleanseConfigSlow", "Slow").SetValue(false)));
     AutoItemsActivatorCleanseConfig.MenuItems.Add(
         AutoItemsActivatorCleanseConfig.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsCleanseConfigCombatDehancer", "Combat Dehancer")
             .SetValue(false)));
     AutoItemsActivatorCleanseConfig.MenuItems.Add(
         AutoItemsActivatorCleanseConfig.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsCleanseConfigSnare", "Snare").SetValue(false)));
     AutoItemsActivatorCleanseConfig.MenuItems.Add(
         AutoItemsActivatorCleanseConfig.Menu.AddItem(
             new MenuItem("SAssembliesActivatorsAutoItemsCleanseConfigPoison", "Posion").SetValue(false)));
     AutoItemsActivator.MenuItems.Add(AutoItemsActivator.Menu.AddItem(new MenuItem("SAssembliesActivatorsAutoItemsActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return(AutoItemsActivator);
 }
Exemplo n.º 4
0
 public Tuple <Menu.MenuItemSettings, Func <dynamic> > GetDirEntry(Menu.MenuItemSettings menuItem)
 {
     return(new Tuple <MenuItemSettings, Func <dynamic> >(menuItem, MenuEntries[menuItem]));
 }