public AddToMenu ( LeagueSharp.Common.Menu &attachMenu ) : void | ||
attachMenu | LeagueSharp.Common.Menu | |
return | void |
private static void CreateMenu() { MainMenu = new Menu(ChampionName + " the Bestial Huntress", ChampionName + " the bestial huntress", true); var targetSelectorMenu = new Menu("Target Selector", "ts"); MainMenu.AddSubMenu(targetSelectorMenu); TargetSelector.AddToMenu(targetSelectorMenu); new AssassinManager(); var orbwalkingMenu = new Menu("Orbwalking", "orbwalk"); MainMenu.AddSubMenu(orbwalkingMenu); _orbwalker = new Orbwalking.Orbwalker(orbwalkingMenu); var keybindings = new Menu("Key Bindings", "keybindings"); { keybindings.AddItem(new MenuItem("useCombo", "Combo").SetValue(new KeyBind(32, KeyBindType.Press))); keybindings.AddItem(new MenuItem("useHarass", "Harass").SetValue(new KeyBind('C', KeyBindType.Press))); keybindings.AddItem(new MenuItem("useWC", "Waveclear").SetValue(new KeyBind('X', KeyBindType.Press))); keybindings.AddItem(new MenuItem("useJC", "Jungleclear").SetValue(new KeyBind('X', KeyBindType.Press))); keybindings.AddItem(new MenuItem("useFlee", "Flee").SetValue(new KeyBind('V', KeyBindType.Press))); MainMenu.AddSubMenu(keybindings); } var combo = new Menu("Combo Options", "combo"); { var humanMenu = new Menu("Human Spells", "human"); { humanMenu.AddItem(new MenuItem("useJavelin", "Use Javelin (Q)").SetValue(true)); humanMenu.AddItem( new MenuItem("javelinRange", "Javelin Range").SetValue(new Slider(1300, 500, 1500))); humanMenu.AddItem(new MenuItem("useBushwhack", "Use Bushwhack (W)").SetValue(false)); humanMenu.AddItem(new MenuItem("useCougar", "Auto Transform to Cougar").SetValue(true)); combo.AddSubMenu(humanMenu); } var cougarMenu = new Menu("Cougar Spells", "cougar"); { cougarMenu.AddItem(new MenuItem("useTakedown", "Use Takedown (Q)").SetValue(true)); cougarMenu.AddItem(new MenuItem("usePounce", "Use Pounce (W)").SetValue(true)); cougarMenu.AddItem(new MenuItem("pounceHunted", " --> Only pounce hunted targets").SetValue(true)); cougarMenu.AddItem(new MenuItem("useSwipe", "Use Swipe (E)").SetValue(true)); cougarMenu.AddItem(new MenuItem("useHuman", "Auto Transform to Human").SetValue(true)); combo.AddSubMenu(cougarMenu); } MainMenu.AddSubMenu(combo); } var harass = new Menu("Harass Options", "harass"); { harass.AddItem(new MenuItem("useJavelinHarass", "Use Javelin (Q)").SetValue(true)); MainMenu.AddSubMenu(harass); } var waveclear = new Menu("Waveclear Options", "waveclear"); { waveclear.AddItem(new MenuItem("wcUseHumanQ", "Use Javelin Toss").SetValue(false)); waveclear.AddItem(new MenuItem("wcUseHumanW", "Use Bushwhack").SetValue(false)); waveclear.AddItem(new MenuItem("wcUseCougarQ", "Use Takedown").SetValue(true)); waveclear.AddItem(new MenuItem("wcUseCougarW", "Use Pounce").SetValue(true)); waveclear.AddItem(new MenuItem("wcUseCougarE", "Use Swipe").SetValue(true)); MainMenu.AddSubMenu(waveclear); } var jungleclear = new Menu("Jungleclear Options", "jungleclear"); { jungleclear.AddItem(new MenuItem("jcUseHumanQ", "Use Javelin Toss").SetValue(false)); jungleclear.AddItem(new MenuItem("jcUseHumanW", "Use Bushwhack").SetValue(false)); jungleclear.AddItem(new MenuItem("jcUseCougarQ", "Use Takedown").SetValue(true)); jungleclear.AddItem(new MenuItem("jcUseCougarW", "Use Pounce").SetValue(true)); jungleclear.AddItem(new MenuItem("jcUseCougarE", "Use Swipe").SetValue(true)); jungleclear.AddItem(new MenuItem("jcMana", "Mana to Jungleclear").SetValue(new Slider(40, 100, 0))); MainMenu.AddSubMenu(jungleclear); } var killsteal = new Menu("Killsteal Options", "killsteal"); { killsteal.AddItem(new MenuItem("killstealUseQ", "Use Javelin (Q)").SetValue(true)); killsteal.AddItem(new MenuItem("killstealDashing", "Use Javelin on dashing").SetValue(true)); killsteal.AddItem(new MenuItem("smiteQ", "Smite + Q killsteal").SetValue(true)); MainMenu.AddSubMenu(killsteal); } _manaManager.AddToMenu(ref MainMenu); _healManager.AddToMenu(ref MainMenu); var misc = new Menu("Misc Options", "misc"); { misc.AddItem(new MenuItem("miscIgnite", "Use Ignite").SetValue(true)); misc.AddItem(new MenuItem("miscImmobile", "Use Javelin / Bushwhack on immobile").SetValue(true)); misc.AddItem( new MenuItem("hitChanceSetting", "Hitchance").SetValue( new StringList(new[] { "Low", "Medium", "High", "Very High" }, 3))); misc.AddItem(new MenuItem("turretSafety", "Don't use pounce under turret").SetValue(true)); MainMenu.AddSubMenu(misc); } var drawings = new Menu("Drawing Options", "drawings"); { drawings.AddItem(new MenuItem("drawRangeQ", "Q range").SetValue(new Circle(false, Color.Aquamarine))); drawings.AddItem(new MenuItem("drawRangeW", "W range").SetValue(new Circle(false, Color.Aquamarine))); drawings.AddItem(new MenuItem("drawRangeE", "E range").SetValue(new Circle(false, Color.Aquamarine))); drawings.AddItem( new MenuItem("drawDamage", "Draw Spell Damage").SetValue(new Circle(false, Color.GreenYellow))); MainMenu.AddSubMenu(drawings); } var donationMenu = new Menu("Donating", "donations"); { donationMenu.AddItem(new MenuItem("kindword", "If you feel like supporting my work")); donationMenu.AddItem(new MenuItem("kindword2", "Feel free to send a donation to: ")); donationMenu.AddItem(new MenuItem("kindword3", "*****@*****.**")); MainMenu.AddSubMenu(donationMenu); //https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=F9A3B9JPQYTDJ } MainMenu.AddToMainMenu(); }
private static void CreateMenu() { _menu = new Menu(ChampionName + " the Bestial Huntress", ChampionName + " the bestial huntress", true); var targetSelectorMenu = new Menu("Target Selector", "ts"); _menu.AddSubMenu(targetSelectorMenu); TargetSelector.AddToMenu(targetSelectorMenu); var orbwalkingMenu = new Menu("Orbwalking", "orbwalk"); _menu.AddSubMenu(orbwalkingMenu); _orbwalker = new Orbwalking.Orbwalker(orbwalkingMenu); var keybindings = new Menu("Key Bindings", "keybindings"); { keybindings.AddItem(new MenuItem("useCombo", "Combo").SetValue(new KeyBind(32, KeyBindType.Press))); keybindings.AddItem(new MenuItem("useHarass", "Harass").SetValue(new KeyBind('C', KeyBindType.Press))); keybindings.AddItem(new MenuItem("useWC", "Waveclear").SetValue(new KeyBind('V', KeyBindType.Press))); keybindings.AddItem(new MenuItem("useJC", "Jungleclear").SetValue(new KeyBind('V', KeyBindType.Press))); keybindings.AddItem(new MenuItem("useFlee", "Flee").SetValue(new KeyBind('G', KeyBindType.Press))); _menu.AddSubMenu(keybindings); } var combo = new Menu("Combo Options", "combo"); { var humanMenu = new Menu("Human Spells", "human"); { humanMenu.AddItem(new MenuItem("useJavelin", "Use Javelin (Q)").SetValue(true)); humanMenu.AddItem(new MenuItem("useBushwhack", "Use Bushwhack (W)").SetValue(false)); humanMenu.AddItem(new MenuItem("useCougar", "Auto Transform to Cougar").SetValue(true)); combo.AddSubMenu(humanMenu); } var cougarMenu = new Menu("Cougar Spells", "cougar"); { cougarMenu.AddItem(new MenuItem("useTakedown", "Use Takedown (Q)").SetValue(true)); cougarMenu.AddItem(new MenuItem("usePounce", "Use Pounce (W)").SetValue(true)); cougarMenu.AddItem(new MenuItem("useSwipe", "Use Swipe (E)").SetValue(true)); cougarMenu.AddItem(new MenuItem("useHuman", "Auto Transform to Human").SetValue(true)); combo.AddSubMenu(cougarMenu); } _menu.AddSubMenu(combo); } var harass = new Menu("Harass Options", "harass"); { harass.AddItem(new MenuItem("useJavelinHarass", "Use Javelin (Q)").SetValue(true)); _menu.AddSubMenu(harass); } var waveclear = new Menu("Waveclear Options", "waveclear"); { waveclear.AddItem(new MenuItem("wcUseHumanQ", "Use Javelin Toss").SetValue(false)); waveclear.AddItem(new MenuItem("wcUseHumanW", "Use Bushwhack").SetValue(false)); waveclear.AddItem(new MenuItem("wcUseCougarQ", "Use Takedown").SetValue(true)); waveclear.AddItem(new MenuItem("wcUseCougarW", "Use Pounce").SetValue(true)); waveclear.AddItem(new MenuItem("wcUseCougarE", "Use Swipe").SetValue(true)); _menu.AddSubMenu(waveclear); } var jungleclear = new Menu("Jungleclear Options", "jungleclear"); { jungleclear.AddItem(new MenuItem("jcUseHumanQ", "Use Javelin Toss").SetValue(false)); jungleclear.AddItem(new MenuItem("jcUseHumanW", "Use Bushwhack").SetValue(false)); jungleclear.AddItem(new MenuItem("jcUseCougarQ", "Use Takedown").SetValue(true)); jungleclear.AddItem(new MenuItem("jcUseCougarW", "Use Pounce").SetValue(true)); jungleclear.AddItem(new MenuItem("jcUseCougarE", "Use Swipe").SetValue(true)); jungleclear.AddItem(new MenuItem("jcMana", "Mana to Jungleclear").SetValue(new Slider(40, 100, 0))); _menu.AddSubMenu(jungleclear); } var killsteal = new Menu("Killsteal Options", "killsteal"); { killsteal.AddItem(new MenuItem("killstealUseQ", "Use Javelin (Q)").SetValue(true)); killsteal.AddItem(new MenuItem("killstealSwitchForm", "Switch form").SetValue(true)); _menu.AddSubMenu(killsteal); } _manaManager.AddToMenu(ref _menu); _healManager.AddToMenu(ref _menu); var misc = new Menu("Misc Options", "misc"); { misc.AddItem(new MenuItem("miscIgnite", "Use Ignite").SetValue(true)); misc.AddItem(new MenuItem("miscImmobile", "Use Javelin / Bushwhack on immobile").SetValue(true)); misc.AddItem( new MenuItem("hitChanceSetting", "Hitchance").SetValue( new StringList(new[] { "Low", "Medium", "High", "Very High" }, 3))); misc.AddItem(new MenuItem("turretSafety", "Don't use pounce under turret").SetValue(true)); _menu.AddSubMenu(misc); } var drawings = new Menu("Drawing Options", "drawings"); { drawings.AddItem(new MenuItem("drawRangeQ", "Q range").SetValue(new Circle(true, Color.Aquamarine))); drawings.AddItem(new MenuItem("drawRangeW", "W range").SetValue(new Circle(false, Color.Aquamarine))); drawings.AddItem(new MenuItem("drawRangeE", "E range").SetValue(new Circle(false, Color.Aquamarine))); drawings.AddItem( new MenuItem("drawDamage", "Draw Spell Damage").SetValue(new Circle(false, Color.GreenYellow))); _menu.AddSubMenu(drawings); } _menu.AddToMainMenu(); }