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; }
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; }
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); }
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); }
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); }
/// <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); } }
public static void AddTargetSelector(this Menu menu) { var ts = new Menu("Target Selector", "Target Selector"); TargetSelector.AddToMenu(ts); menu.AddSubMenu(ts); }
public static Orbwalking.Orbwalker AddOrbwalker(this Menu menu) { var orbwalk = menu.AddSubMenu(new Menu("Orbwalker", "Orbwalker")); return new Orbwalking.Orbwalker(orbwalk); }
public static Menu AddMenu(this Menu menu, string name, string displayName) { return menu.AddSubMenu(new Menu(displayName, name)); }
//Menu Extensions internal static Menu AddSubMenu(this Menu menu, string disp) { return menu.AddSubMenu(new Menu(disp, Assembly.GetExecutingAssembly().GetName() + "." + disp)); }
public static Menu AddSubMenuEx(this Menu menu, string display, string unique) { var submenu = menu.AddSubMenu(display, unique); ObjectCache.menuCache.AddMenuToCache(submenu); return submenu; }