static void InitSimpleMenu() { MenuLocal.AddItem(new MenuItem("Jungle.Simple.Q.Big", "Q Big Mobs:").SetValue(new StringList(new[] { "Off", "On" }, 1))).SetFontStyle(FontStyle.Regular, PlayerSpells.Q.MenuColor()); MenuLocal.AddItem(new MenuItem("Jungle.Simple.Q.Small", "Q Small Mobs:").SetValue(new StringList(new[] { "Off", "On: If Killable" }, 1))).SetFontStyle(FontStyle.Regular, PlayerSpells.Q.MenuColor()); MenuLocal.AddItem(new MenuItem("Jungle.Simple.E", "E:").SetValue(new StringList(new[] { "Off", "On: Big Mobs", "On: Big Mobs [Just can stun]" }, 1))).SetFontStyle(FontStyle.Regular, PlayerSpells.E.MenuColor()); MenuMinMana = new Menu("Min. Mana Control", "Menu.MinMana"); MenuMinMana.AddItem(new MenuItem("MinMana.Jungle", "Min. Mana %:").SetValue(new Slider(20, 100, 0))).SetFontStyle(FontStyle.Regular, Color.LightGreen); MenuMinMana.AddItem(new MenuItem("MinMana.DontCheckEnemyBuff", "Don't Check Min. Mana -> If Taking:").SetValue(new StringList(new[] { "Off", "Ally Buff", "Enemy Buff", "Both" }, 2))).SetFontStyle(FontStyle.Regular, Color.Wheat); MenuMinMana.AddItem(new MenuItem("MinMana.DontCheckBlueBuff", "Don't Check Min. Mana -> If Have Blue Buff:").SetValue(true)).SetFontStyle(FontStyle.Regular, Color.Wheat); MenuLocal.AddItem(new MenuItem("MinMana.Default", "Load Recommended Settings").SetValue(true)) .SetFontStyle(FontStyle.Regular, Color.GreenYellow) .ValueChanged += (sender, args) => { if (args.GetNewValue <bool>() == true) { LoadDefaultSettings(); } }; MenuLocal.AddSubMenu(MenuMinMana); }
static void LoadMenuSpellRanges() { MenuSpellRanges = new Menu("Spell Ranges:", "MenuSettings.SpellRanges"); { switch (ObjectManager.Player.ChampionName.ToLowerInvariant()) { case "caitlyn": { //var caitlyn = new Caitlyn(); // foreach (var prop in caitlyn.GetType().GetProperties()) // { // Game.PrintChat("{0}={1}", prop.Name, prop.GetValue(caitlyn, null)); // } //object x = MagicallyCreateInstance("Caitlyn"); // foreach (var p in x.GetType().GetProperties()) // { // Console.WriteLine("{0}={1}", p.Name, p.GetValue(x, null)); // } MenuItem qSpell = new MenuItem("Ranges.Spell.Q", "Q:").SetValue(new Slider((int)Caitlyn.Q.Range, (int)(Caitlyn.Q.Range - 200), (int)Caitlyn.Q.Range)); MenuSpellRanges.AddItem(qSpell); MenuItem eSpell = new MenuItem("Ranges.Spell.E", "E:").SetValue(new Slider((int)Caitlyn.E.Range, (int)(Caitlyn.E.Range - 200), (int)Caitlyn.E.Range)); MenuSpellRanges.AddItem(eSpell); break; } } MenuLocal.AddSubMenu(MenuSpellRanges); } }
static void InitSimpleMenu() { string[] strQ = new string[5]; { strQ[0] = "Off"; strQ[1] = "Big Mobs"; for (var i = 2; i < 5; i++) { strQ[i] = "Mob C**t >= " + (i + 2); } MenuLocal.AddItem(new MenuItem("Jungle.Q", "Q:").SetValue(new StringList(strQ, 4))).SetFontStyle(FontStyle.Regular, PlayerSpells.W.MenuColor()); } MenuLocal.AddItem(new MenuItem("Jungle.W", "W:").SetValue(new StringList(new[] { "Off", "On", "On: Big Mobs" }, 2))).SetFontStyle(FontStyle.Regular, PlayerSpells.E.MenuColor()); MenuMinMana = new Menu("Min. Mana Control", "Menu.MinMana"); MenuMinMana.AddItem(new MenuItem("MinMana.Jungle", "Min. Mana %:").SetValue(new Slider(20, 100, 0))).SetFontStyle(FontStyle.Regular, Color.LightGreen); MenuMinMana.AddItem(new MenuItem("MinMana.DontCheckEnemyBuff", "Don't Check Min. Mana -> If Taking:").SetValue(new StringList(new[] { "Off", "Ally Buff", "Enemy Buff", "Both" }, 2))).SetFontStyle(FontStyle.Regular, Color.Wheat); MenuMinMana.AddItem(new MenuItem("MinMana.DontCheckBlueBuff", "Don't Check Min. Mana -> If Have Blue Buff:").SetValue(true)).SetFontStyle(FontStyle.Regular, Color.Wheat); MenuLocal.AddItem(new MenuItem("MinMana.Default", "Load Recommended Settings").SetValue(true)) .SetFontStyle(FontStyle.Regular, Color.GreenYellow) .ValueChanged += (sender, args) => { if (args.GetNewValue <bool>() == true) { LoadDefaultSettings(); } }; MenuLocal.AddSubMenu(MenuMinMana); }
static void LoadMenuHitchance() { MenuHitchanceSettings = new Menu("Hitchance:", "MenuSettings.Hitchance"); { string[] nHitchanceList = new[] { "Medium", "High", "VeryHigh" }; MenuItem qHitchanceSettings = new MenuItem("MenuSettings.Hitchance.Q", "Q Hitchance:").SetValue(new StringList(nHitchanceList, 1)); MenuHitchanceSettings.AddItem(qHitchanceSettings); MenuItem wHitchanceSettings = new MenuItem("MenuSettings.Hitchance.W", "W Hitchance:").SetValue(new StringList(nHitchanceList, 1)); MenuHitchanceSettings.AddItem(wHitchanceSettings); MenuItem eHitchanceSettings = new MenuItem("MenuSettings.Hitchance.E", "E Hitchance:").SetValue(new StringList(nHitchanceList, 1)); MenuHitchanceSettings.AddItem(eHitchanceSettings); MenuItem rHitchanceSettings = new MenuItem("MenuSettings.Hitchance.R", "R Hitchance:").SetValue(new StringList(nHitchanceList, 1)); MenuHitchanceSettings.AddItem(rHitchanceSettings); MenuLocal.AddSubMenu(MenuHitchanceSettings); } }