public IEnumerable <IMenuItem> CollectDynamicMenuItems(object commandParameter) { var builder = new MenuBuilder(); // Menu: Virtual devices int currentWeight = 0; IMenuItem deviceMenuGroup = MenuItemFactory.CreateMenuItem( menuText: "Virtual Devices", weight: currentWeight++); using (builder.AddMenuGroup(deviceMenuGroup)) { int i = 0; var virtualDevices = this.driverOperations.VirtualDeviceNames; var currentlySelectedVirtualDevice = this.SelectedVirtualDevice; foreach (var virtualDevice in virtualDevices) { IMenuItem deviceMenuItem = MenuItemFactory.CreateMenuItem( menuCommand: new NationalInstruments.RelayCommand( executeParam => this.SelectedVirtualDevice = virtualDevice, canExecuteParam => virtualDevice != currentlySelectedVirtualDevice), menuText: virtualDevice, weight: i, commandParameter: null); builder.AddMenu(deviceMenuItem); i++; } } builder.AddMenu(MenuItemFactory.CreateSeparator(currentWeight++)); //Menu: Refresh builder.AddMenu( MenuItemFactory.CreateMenuItem( menuCommand: new NationalInstruments.RelayCommand( executeParam => this.driverOperations.Refresh(), canExecuteParam => !this.IsAnyDeviceOffline), menuText: "Refresh", weight: currentWeight++, commandParameter: null)); return(builder.MenuItems); }
internal static MenuBuilder Load() { var menuBuilder = new MenuBuilder(); menuBuilder.AddMenu(); menuBuilder.AddMenu(Orbwalker.ActiveModes.Combo); menuBuilder.AddLabel(Orbwalker.ActiveModes.Combo, "Basic Rules", true); menuBuilder.AddCheckBox(Orbwalker.ActiveModes.Combo, "Use Q", "use.Q", true); menuBuilder.AddCheckBox(Orbwalker.ActiveModes.Combo, "Use W", "use.W", true); menuBuilder.AddCheckBox(Orbwalker.ActiveModes.Combo, "Use E", "use.E", true); menuBuilder.AddCheckBox(Orbwalker.ActiveModes.Combo, "Block AA while E Ready", "use.blockAA", true); menuBuilder.AddMenu(Orbwalker.ActiveModes.Harass); menuBuilder.AddLabel(Orbwalker.ActiveModes.Harass, "Basic Rules", true); menuBuilder.AddCheckBox(Orbwalker.ActiveModes.Harass, "Use Q", "use.Q", true); menuBuilder.AddCheckBox(Orbwalker.ActiveModes.Harass, "Use W", "use.W", true); menuBuilder.AddCheckBox(Orbwalker.ActiveModes.Harass, "Use E", "use.E", true); menuBuilder.AddMenu(Orbwalker.ActiveModes.LaneClear); menuBuilder.AddLabel(Orbwalker.ActiveModes.LaneClear, "Basic Rules", true); menuBuilder.AddCheckBox(Orbwalker.ActiveModes.LaneClear, "Use Q", "use.Q", true); menuBuilder.AddCheckBox(Orbwalker.ActiveModes.LaneClear, "Use E", "use.E", true); menuBuilder.AddMenu(Orbwalker.ActiveModes.JungleClear); menuBuilder.AddLabel(Orbwalker.ActiveModes.JungleClear, "Basic Rules", true); menuBuilder.AddCheckBox(Orbwalker.ActiveModes.JungleClear, "Use Q", "use.Q", true); menuBuilder.AddCheckBox(Orbwalker.ActiveModes.JungleClear, "Use E", "use.E", true); menuBuilder.AddMenu(MenuBuilder.MenuNames.Drawing); menuBuilder.AddCheckBox(MenuBuilder.MenuNames.Drawing, "Draw Q Range", "draw.Q.range", true); menuBuilder.AddCheckBox(MenuBuilder.MenuNames.Drawing, "Draw Q Prediction", "draw.Q.prediction", true); menuBuilder.AddCheckBox(MenuBuilder.MenuNames.Drawing, "Draw E Range", "draw.E.range", true); menuBuilder.AddCheckBox(MenuBuilder.MenuNames.Drawing, "Draw R Range", "draw.R.range", true); menuBuilder.AddMenu(MenuBuilder.MenuNames.Anti_FPS_Drop); menuBuilder.AddLabel(MenuBuilder.MenuNames.Anti_FPS_Drop, "just use OnTickMode if you have FPS Problems ( it reduce the needed ressources but also the performance )"); menuBuilder.AddCheckBox(MenuBuilder.MenuNames.Anti_FPS_Drop, "Use OnTickMode", "antiFPS.useOnTick", false); return(menuBuilder); }
internal static MenuBuilder Load() { var menuBuilder = new MenuBuilder(); menuBuilder.AddMenu(); menuBuilder.AddMenu(MenuBuilder.MenuNames.BlackList); menuBuilder.AddLabel(MenuBuilder.MenuNames.BlackList, "If a Champion is Checked he will not Grab them"); foreach (var enemy in ObjectManager.Get<AIHeroClient>().Where(u => u.IsEnemy)) { try { menuBuilder.AddCheckBox(MenuBuilder.MenuNames.BlackList, enemy.ChampionName, "blacklist." + enemy.ChampionName, false); } catch (Exception) { // iggnored some champ double in that list... } } menuBuilder.AddMenu(Orbwalker.ActiveModes.Combo); menuBuilder.AddLabel(Orbwalker.ActiveModes.Combo, "Basic Rules", true); menuBuilder.AddCheckBox(Orbwalker.ActiveModes.Combo, "Use Q", "use.Q", true); menuBuilder.AddCheckBox(Orbwalker.ActiveModes.Combo, "Use E if Q hit", "use.E", true); menuBuilder.AddLabel(Orbwalker.ActiveModes.Combo, "Info: You cant have both activated"); menuBuilder.AddRadioBox(Orbwalker.ActiveModes.Combo, false, new MenuBuilder.RadioBox("Combo Use E after Autoattack", "use.E.afterAA", false), new MenuBuilder.RadioBox("Combo Use E if in Range", "use.E.inrage", true)); menuBuilder.AddLabel(Orbwalker.ActiveModes.Combo, "Advanged Rules", true); menuBuilder.AddSlider(Orbwalker.ActiveModes.Combo, "Q Maximum Cast Range: {0}","modiefied.Q.range.max", 1000, 0, (int)Blitzcrank.Q.Range); menuBuilder.AddSlider(Orbwalker.ActiveModes.Combo, "Q Minimum Cast Range: {0}", "modiefied.Q.range.min", 100, 0, 500); menuBuilder.AddMenu(Orbwalker.ActiveModes.Harass); menuBuilder.AddLabel(Orbwalker.ActiveModes.Harass, "Basic Rules", true); menuBuilder.AddCheckBox(Orbwalker.ActiveModes.Harass, "Use Q", "use.Q", false); menuBuilder.AddCheckBox(Orbwalker.ActiveModes.Harass, "Use E if Q hit", "use.E", true); menuBuilder.AddLabel(Orbwalker.ActiveModes.Harass, "Info: You cant have both activated"); menuBuilder.AddRadioBox(Orbwalker.ActiveModes.Harass, false, new MenuBuilder.RadioBox("Harras Use E after Autoattack", "use.E.afterAA", true), new MenuBuilder.RadioBox("Harras Use E if in Range", "use.E.inrage", false)); menuBuilder.AddLabel(Orbwalker.ActiveModes.Harass, "Advanged Rules", true); menuBuilder.AddSlider(Orbwalker.ActiveModes.Harass, "Q Maximum Cast Range: {0}", "modiefied.Q.range.max", 1000, 0, (int)Blitzcrank.Q.Range); menuBuilder.AddSlider(Orbwalker.ActiveModes.Harass, "Q Minimum Cast Range: {0}", "modiefied.Q.range.min", 100, 0, 500); menuBuilder.AddMenu(MenuBuilder.MenuNames.Misc); menuBuilder.AddCheckBox(MenuBuilder.MenuNames.Misc, "Use E if Q hit", "use.E", true); menuBuilder.AddLabel(MenuBuilder.MenuNames.Misc, "AutoAssist R info: Your Buddy must be in Autoattackrange + AdditionalRange"); menuBuilder.AddCheckBox(MenuBuilder.MenuNames.Misc, "AutoAssist R useage", "use.R.autoAssist", true); menuBuilder.AddSlider(MenuBuilder.MenuNames.Misc, "AutoAssist R must hit Min {0} Enemys in Combo", "autoassist.HitCountInCombo", 2, 1, 5); menuBuilder.AddSlider(MenuBuilder.MenuNames.Misc, "AutoAssist R must hit Min {0} Enemys in Harras", "autoassist.HitCountInHarras", 1, 1, 5); menuBuilder.AddSlider(MenuBuilder.MenuNames.Misc, "Buddy AutoAttackrange + {0} = totalRange ", "additional.buddyrange", 200, 0, 300); menuBuilder.AddSlider(MenuBuilder.MenuNames.Misc, "Use R if your Buddy can kill within {0} autoattack hits", "use.R.onAAleft", 2, 1, 5); menuBuilder.AddSlider(MenuBuilder.MenuNames.Misc, "If R will Hit {0} Enemys always cast", "autoassist.alwaysUseRCount", 3, 1, 5); menuBuilder.AddMenu(MenuBuilder.MenuNames.Killsteal); menuBuilder.AddCheckBox(MenuBuilder.MenuNames.Killsteal, "Use Q", "use.Q", true); menuBuilder.AddCheckBox(MenuBuilder.MenuNames.Killsteal, "Use E", "use.E", true); menuBuilder.AddCheckBox(MenuBuilder.MenuNames.Killsteal, "Use R", "use.R", true); menuBuilder.AddMenu(MenuBuilder.MenuNames.Drawing); menuBuilder.AddCheckBox(MenuBuilder.MenuNames.Drawing, "Draw Q Range", "draw.Q.range", true); menuBuilder.AddCheckBox(MenuBuilder.MenuNames.Drawing, "Draw Q Prediction", "draw.Q.prediction", true); menuBuilder.AddMenu(MenuBuilder.MenuNames.Anti_FPS_Drop); menuBuilder.AddLabel(MenuBuilder.MenuNames.Anti_FPS_Drop, "just use OnTickMode if you have FPS Problems ( it reduce the needed ressources but also the performance )"); menuBuilder.AddCheckBox(MenuBuilder.MenuNames.Anti_FPS_Drop, "Use OnTickMode", "antiFPS.useOnTick", false); return menuBuilder; }