示例#1
0
 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;
 }
示例#2
0
        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);
        }
示例#3
0
 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;
 }
示例#4
0
        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);
        }
示例#5
0
 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>();
 }
示例#6
0
 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>());
 }