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; }
public static MenuItem AddManaManager(this Menu mainMenu, SpellSlot slot, Orbwalking.OrbwalkingMode Mode, int defMana = 0) { var mmMenu = mainMenu.Children.FirstOrDefault( m => m.Name.ToLower().Contains( $"iseriesr.{ObjectManager.Player.ChampionName.ToLower()}.{Mode.ToString().ToLower()}.mm")); if (mmMenu == null) { mmMenu = mainMenu.AddManaManagerMenu(Mode); } return mmMenu.AddSlider( $"iseriesr.{ObjectManager.Player.ChampionName.ToLower()}.{Mode.ToString().ToLower()}.mm.{slot.ToString().ToLower()}", $"{slot} Mana {Mode}", defMana, 0, 100); }
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 MenuItem AddSkill(this Menu mainMenu, SpellSlot slot, Orbwalking.OrbwalkingMode Mode, bool defaultValue = true, int defMana = 20, bool addMM = true) { if (addMM) { mainMenu.AddManaManager(slot, Mode, defMana); } return mainMenu.AddBool($"iseriesr.{ObjectManager.Player.ChampionName.ToLower()}.{Mode.ToString().ToLower()}.{slot.ToString().ToLower()}", $"Use {slot}", defaultValue); }
public static void Initialize(Menu menu, Orbwalking.OrbwalkingMode mode) { menu.AddMItem(mode.ToString(), new Slider(ManaSettings[mode]), (sender, args) => ManaSettings[mode] = args.GetNewValue<Slider>().Value).ProcStoredValueChanged<Slider>(); }
public static void DongerSkill(this Menu menu, Skills skill, Orbwalking.OrbwalkingMode mode) { var vhrname = string.Format("dz191.vhr.{0}.use{1}", mode.ToString().ToLower(), skill.ToString().ToLower()); var pradaname = string.Format("useprada{0}", skill.ToString().ToLower()); menu.Item(vhrname).SetValue(!HijackedMenu.Item(pradaname).GetValue<bool>()); }