Example #1
0
 public static Menu AddModeMenu(this Menu mainMenu, Orbwalking.OrbwalkingMode Mode)
 {
     var modeMenu = new Menu($"[iSR] {Mode}", $"iseriesr.{ObjectManager.Player.ChampionName.ToLower()}.{Mode.ToString().ToLower()}");
     {
         mainMenu.AddSubMenu(modeMenu);
     }
     return modeMenu;
 }
Example #2
0
 private static Menu AddManaManagerMenu(this Menu mainMenu, Orbwalking.OrbwalkingMode Mode)
 {
     var manaManager = new Menu("Mana Manager", $"iseriesr.{ObjectManager.Player.ChampionName.ToLower()}.{Mode.ToString().ToLower()}.mm");
     {
         mainMenu.AddSubMenu(manaManager);
     }
     return manaManager;
 }
Example #3
0
 public static void AddHeroMenu(this LeagueSharp.Common.Menu menu, string menuDisplayName, string name, bool allies)
 {
     var _menu = new LeagueSharp.Common.Menu(menuDisplayName, BaseName + ObjectManager.Player.ChampionName.ToLowerInvariant() + ".noult");
     foreach (var player in ObjectManager.Get<Obj_AI_Hero>().Where(h => !h.IsMe && allies ? h.IsAlly : h.IsEnemy))
     {
         _menu.AddItem(new MenuItem(BaseName + ObjectManager.Player.ChampionName.ToLowerInvariant() + "."+ name +"." + player.ChampionName, player.ChampionName).SetValue(false));
     }
     menu.AddSubMenu(_menu);
 }
 public static void AddNoUltiMenu(this Menu menu, bool allies)
 {
     var _menu = new Menu("Don't ult", "dz191.vhr." + ObjectManager.Player.ChampionName.ToLowerInvariant() + ".noult");
     foreach (var player in ObjectManager.Get<Obj_AI_Hero>().Where(h => !h.IsMe && allies ? h.IsAlly : h.IsEnemy))
     {
         _menu.AddItem(new MenuItem("dz191.vhr." + ObjectManager.Player.ChampionName.ToLowerInvariant() + ".noult." + player.ChampionName, player.ChampionName).SetValue(false));
     }
     menu.AddSubMenu(_menu);
 }
Example #5
0
 public static void AddManaManager(this LeagueSharp.Common.Menu menu, Mode mode, SpellSlot[] spellList, int[] manaCosts)
 {
     var mmMenu = new LeagueSharp.Common.Menu("Mana Manager", BaseName + ObjectManager.Player.ChampionName.ToLowerInvariant() + ".mm." + GetStringFromMode(mode));
     for (var i = 0; i < spellList.Count(); i++)
     {
         mmMenu.AddItem(
             new MenuItem(
                 BaseName + ObjectManager.Player.ChampionName.ToLowerInvariant() + ".manamanager." + GetStringFromSpellSlot(spellList[i]).ToLowerInvariant() + "mana" + GetStringFromMode(mode).ToLowerInvariant(),
                 GetStringFromSpellSlot(spellList[i]) + " Mana").SetValue(new Slider(manaCosts[i])));
     }
     menu.AddSubMenu(mmMenu);
 }
Example #6
0
 public static void AddManaManager(this Menu menu, Mode mode, SpellSlot[] spellList, int[] manaCosts)
 {
     var mmMenu = new Menu("Mana Manager", "com.idzlucian.mm." + GetStringFromMode(mode));
     for (var i = 0; i < spellList.Count(); i++)
     {
         mmMenu.AddItem(
             new MenuItem(
                 "com.idzlucian.manamanager." + GetStringFromSpellSlot(spellList[i]).ToLowerInvariant() + "mana" +
                 GetStringFromMode(mode).ToLowerInvariant(), GetStringFromSpellSlot(spellList[i]) + " Mana")
                 .SetValue(new Slider(manaCosts[i])));
     }
     menu.AddSubMenu(mmMenu);
 }
Example #7
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="m">Your first menu</param>
        public static void InitiliazeDangerHandler(this Menu m)
        {
            DangerHandler.Init();

            SettingsMenu = m.AddSubMenu("• Danger Settings", "dangersettings");
            SettingsMenu.AddGroupLabel("Danger Options");
            SettingsMenu.CreateSlider("Add [{0}%] to the item HP% slider if the spell is dangerous", "dangerSlider", 10, 10, 50);
            SettingsMenu.AddLabel("Dont mess with the options if you dont know what they do");
            SettingsMenu.CreateSlider("Extra range to be safe of a skillshot", "saferange", 110, 80, 180);

            //Spells Menu
            SettingsMenu.AddGroupLabel("Spells to consider");
            SettingsMenu.AddLabel("Disable/Enable dangerous spells");
            foreach (var s in EntityManager.Heroes.Enemies.SelectMany(e => DangerousSpells.Spells.Where(s => s.Hero == e.Hero)))
            {
                SettingsMenu.CreateCheckBox(s.Hero + "`s " + s.Slot, "dangSpell" + s.Hero + s.Slot);
            }
        }
Example #8
0
 public static void AddTargetSelector(this Menu menu)
 {
     var ts = new Menu("Target Selector", "Target Selector");
     TargetSelector.AddToMenu(ts);
     menu.AddSubMenu(ts);
 }
Example #9
0
 public static Orbwalking.Orbwalker AddOrbwalker(this Menu menu)
 {
     var orbwalk = menu.AddSubMenu(new Menu("Orbwalker", "Orbwalker"));
     return new Orbwalking.Orbwalker(orbwalk);
 }
Example #10
0
 public static Menu AddMenu(this Menu menu, string name, string displayName)
 {
     return menu.AddSubMenu(new Menu(displayName, name));
 }
Example #11
0
 //Menu Extensions
 internal static Menu AddSubMenu(this Menu menu, string disp)
 {
     return menu.AddSubMenu(new Menu(disp, Assembly.GetExecutingAssembly().GetName() + "." + disp));
 }
Example #12
0
 public static Menu AddSubMenuEx(this Menu menu, string display, string unique)
 {
     var submenu = menu.AddSubMenu(display, unique);
     ObjectCache.menuCache.AddMenuToCache(submenu);
     return submenu;
 }