예제 #1
0
 /// <summary>
 /// Initializes the menu
 /// </summary>
 public override void InitializeMenu()
 {
     FirstMenuName = "Name of the addon";
     //There are a bunch of examples on how to create checkboxes and sliders really easy
     //Obs: You can use the MenuIds(Preset) or Ints as a uniqueID
     //ComboMenu
     ComboMenu.AddGroupLabel("-:Combo Spells:-");
     ComboMenu.CreateCheckBox("- Use Q", MenuIds.ComboUseQ);
     ComboMenu.CreateCheckBox("- Use W", MenuIds.ComboUseW);
     ComboMenu.CreateCheckBox("- Use E", MenuIds.ComboUseE);
     ComboMenu.CreateCheckBox("- Use R", 8);
     //HarassMenu
     HarassMenu.AddGroupLabel("-:Harass Spells:-");
     HarassMenu.CreateCheckBox("- Use Q", MenuIds.HarassUseQ);
     HarassMenu.CreateCheckBox("- Use W", MenuIds.HarassUseW);
     HarassMenu.CreateCheckBox("- Use E", MenuIds.HarassUseE);
     HarassMenu.CreateCheckBox("- Use R", MenuIds.HarassUseR);
     HarassMenu.AddGroupLabel("-:Harass Settings:-");
     HarassMenu.CreateSlider("It will use harass spells only if mana is greater than ({0}%)", MenuIds.HarassMana);
     HarassMenu.AddGroupLabel("-:AutoHarass Spells:-");
     HarassMenu.CreateCheckBox("- Use Q", MenuIds.AutoHarassUseQ);
     HarassMenu.CreateCheckBox("- Use W", MenuIds.AutoHarassUseW);
     HarassMenu.CreateCheckBox("- Use E", MenuIds.AutoHarassUseE);
     HarassMenu.CreateCheckBox("- Use R", MenuIds.AutoHarassUseR);
     HarassMenu.AddGroupLabel("-:AutoHarass Settings:-");
     HarassMenu.CreateSlider("It will use harass spells only if mana is greater than ({0}%)", MenuIds.AutoHarassMana);
     //LaneClearMenu
     LaneClearMenu.AddGroupLabel("-:Laneclear Spells:-");
     LaneClearMenu.CreateCheckBox("- Use Q", 9);
     LaneClearMenu.CreateCheckBox("- Use W", 10);
     LaneClearMenu.CreateCheckBox("- Use E", 11);
     LaneClearMenu.CreateCheckBox("- Use R", 12);
     LaneClearMenu.AddGroupLabel("-:Laneclear Settings:-");
     LaneClearMenu.CreateSlider("It will use laneclear spells only if mana is greater than ({0}%)", 30);
     //LastHitMenu
     LastHitMenu.AddGroupLabel("-:Lasthit Spells:-");
     LastHitMenu.CreateCheckBox("- Use Q", 13);
     LastHitMenu.CreateCheckBox("- Use W", 14);
     LastHitMenu.CreateCheckBox("- Use E", 15);
     LastHitMenu.CreateCheckBox("- Use R", 16);
     LastHitMenu.AddGroupLabel("-:Lasthit Settings:-");
     LastHitMenu.CreateSlider("It will use lasthit spells only if mana is greater than ({0}%)", 30);
     //FleeMenu
     FleeMenu.AddGroupLabel("-:Flee Spells:-");
     FleeMenu.CreateCheckBox("- Use Q", MenuIds.FleeUseQ);
     FleeMenu.CreateCheckBox("- Use W", MenuIds.FleeUseW);
     FleeMenu.CreateCheckBox("- Use E", MenuIds.FleeUseE);
     FleeMenu.CreateCheckBox("- Use R", MenuIds.FleeUseR);
     FleeMenu.AddGroupLabel("-:Flee Settings:-");
     FleeMenu.CreateSlider("It will use flee spells only if mana is greater than ({0}%)", 30);
     //MiscMenu
     MiscMenu.AddGroupLabel("-:Misc Spells:-");
     MiscMenu.CreateCheckBox("- Use X on gapclosers spells", MenuIds.MiscUseGapcloser);
     MiscMenu.CreateCheckBox("- Use X on interruptables spells", MenuIds.MiscUseInterrupt);
     MiscMenu.AddGroupLabel("-:Misc Settings:-");
     MiscMenu.CreateSlider("It will use misc spells only if mana is greater than ({0}%)", 30);
 }
예제 #2
0
        public void AddMultipleCheckBox(Spell.SpellBase spell, List <MenuCheckBox> menus)
        {
            var spellSlot = spell.Slot.ToString()[spell.Slot.ToString().Length - 1];

            foreach (var m in menus)
            {
                var lenghtChampName = Player.Instance.ChampionName.Length;
                switch (m.Menuu.UniqueMenuId.Remove(0, 6 + lenghtChampName))
                {
                case ComboMenuID:
                    ComboMenu.CreateCheckBox("- Use " + spellSlot, ComboMenuID + spellSlot, m.DefaultValue);
                    break;

                case HarassMenuID:
                    HarassMenu.CreateCheckBox("- Use " + spellSlot, HarassMenuID + spellSlot, m.DefaultValue);
                    break;

                case AutoHarassMenuID:
                    AutoHarassMenu.CreateCheckBox("- Use " + spellSlot, AutoHarassMenuID + spellSlot, m.DefaultValue);
                    break;

                case LaneMenuID:
                    LaneClearMenu.CreateCheckBox("- Use " + spellSlot, LaneMenuID + spellSlot, m.DefaultValue);
                    break;

                case LastMenuID:
                    LastHitMenu.CreateCheckBox("- Use " + spellSlot, LastMenuID + spellSlot, m.DefaultValue);
                    break;

                case FleeMenuID:
                    FleeMenu.CreateCheckBox("- Use " + spellSlot, FleeMenuID + spellSlot, m.DefaultValue);
                    break;

                case KillstealMenuID:
                    KillStealMenu.CreateCheckBox("- Use " + spellSlot, KillstealMenuID + spellSlot, m.DefaultValue);
                    break;

                case DrawMenuID:
                    DrawMenu.CreateCheckBox("- Draw " + spellSlot, DrawMenuID + spellSlot, m.DefaultValue);
                    break;
                }
            }
        }
예제 #3
0
        public override void InitializeMenu()
        {
            AddMultipleCheckBox(Q,
                                new List <MenuCheckBox>
            {
                new MenuCheckBox(ComboMenu),
                new MenuCheckBox(HarassMenu, false),
                new MenuCheckBox(LaneClearMenu, false),
                new MenuCheckBox(JungleClearMenu),
                new MenuCheckBox(DrawMenu)
            });
            AddMultipleCheckBox(W,
                                new List <MenuCheckBox>
            {
                new MenuCheckBox(ComboMenu),
                new MenuCheckBox(HarassMenu),
                new MenuCheckBox(AutoHarassMenu, false),
                new MenuCheckBox(LaneClearMenu),
                new MenuCheckBox(JungleClearMenu),
                new MenuCheckBox(LastHitMenu),
                new MenuCheckBox(FleeMenu),
                new MenuCheckBox(KillStealMenu),
                new MenuCheckBox(DrawMenu)
            });
            AddMultipleCheckBox(E,
                                new List <MenuCheckBox>
            {
                new MenuCheckBox(DrawMenu, false)
            });
            AddMultipleCheckBox(R,
                                new List <MenuCheckBox>
            {
                new MenuCheckBox(ComboMenu),
                new MenuCheckBox(FleeMenu, false),
                new MenuCheckBox(KillStealMenu),
                new MenuCheckBox(DrawMenu, false)
            });

            ComboMenu.CreateSlider("Use R if the target leave {1} range", 48, 400, 100, 2000);
            ComboMenu.AddSeparator();
            ComboMenu.AddGroupLabel("Mode Switcher");
            ComboMenu.AddLabel("Burst Mode = R -> W -> Q");
            ComboMenu.AddLabel("Normal Mode = Q -> W -> (??) R");
            ComboMenu.CreateKeybind("Change mode by key", 49, 'T').OnValueChange += ModeSwitch;

            LaneClearMenu.CreateCheckBox("Prioritize Harass over Mode", 50, false);

            LastHitMenu.CreateCheckBox("Prioritize Harass over Mode", 51, false);

            FleeMenu.CreateSlider("Use R if enemy is near {1} range", 52, 1200, 100, 2000);

            MiscMenu.AddSeparator();
            MiscMenu.AddGroupLabel("AntiGapcloser - Interrupter settings:");
            MiscMenu.CreateCheckBox("Use AntiGapcloser", MenuIds.MiscUseGapcloser);
            MiscMenu.CreateCheckBox("Use W", 53);
            MiscMenu.CreateCheckBox("Use R", 54);

            MiscMenu.AddSeparator();
            MiscMenu.CreateCheckBox("Use Interrupter", MenuIds.MiscUseInterrupt);
            MiscMenu.CreateCheckBox("Use R", 55);

            MiscMenu.AddSeparator();
            MiscMenu.CreateCheckBox("AutoSpells on CC", 56);
            MiscMenu.CreateCheckBox("AutoSpells on Events", 57);
            MiscMenu.CreateCheckBox("Use Auto W", 58);
            MiscMenu.CreateCheckBox("Use W on Stunned Enemies", 59);
            MiscMenu.CreateCheckBox("Use W on Snared Enemies", 60);
            MiscMenu.CreateCheckBox("Use W on Feared Enemies", 61);
            MiscMenu.CreateCheckBox("Use W on Taunted Enemy", 62);
            MiscMenu.CreateCheckBox("Use W on Suppressed Enemy", 63);
            MiscMenu.CreateCheckBox("Use W on Charmed Enemies", 64);
            MiscMenu.CreateCheckBox("Use Auto R", 65);
            MiscMenu.CreateCheckBox("Use R on Stunned Enemies", 66, false);
            MiscMenu.CreateCheckBox("Use R on Snared Enemies", 67, false);
            MiscMenu.CreateCheckBox("Use R on Feared Enemies", 68, false);
            MiscMenu.CreateCheckBox("Use R on Taunted Enemy", 69, false);
            MiscMenu.CreateCheckBox("Use R on Suppressed Enemy", 70, false);
            MiscMenu.CreateCheckBox("Use R on Charmed Enemies", 71, false);
        }
예제 #4
0
        public override void InitializeMenu()
        {
            AddMultipleCheckBox(Q,
                new List<MenuCheckBox>
                {
                    new MenuCheckBox(ComboMenu),
                    new MenuCheckBox(HarassMenu),
                    new MenuCheckBox(AutoHarassMenu),
                    new MenuCheckBox(LaneClearMenu),
                    new MenuCheckBox(JungleClearMenu),
                    new MenuCheckBox(LastHitMenu),
                    new MenuCheckBox(FleeMenu),
                    new MenuCheckBox(KillStealMenu),
                    new MenuCheckBox(DrawMenu)
                });
            AddMultipleCheckBox(W,
                new List<MenuCheckBox>
                {
                    new MenuCheckBox(ComboMenu),
                    new MenuCheckBox(HarassMenu),
                    new MenuCheckBox(AutoHarassMenu, false),
                    new MenuCheckBox(LaneClearMenu),
                    new MenuCheckBox(JungleClearMenu),
                    new MenuCheckBox(LastHitMenu),
                    new MenuCheckBox(FleeMenu),
                    new MenuCheckBox(KillStealMenu),
                    new MenuCheckBox(DrawMenu)
                });
            AddMultipleCheckBox(E,
                new List<MenuCheckBox>
                {
                    new MenuCheckBox(ComboMenu),
                    new MenuCheckBox(HarassMenu),
                    new MenuCheckBox(AutoHarassMenu, false),
                    new MenuCheckBox(LaneClearMenu, false),
                    new MenuCheckBox(JungleClearMenu),
                    new MenuCheckBox(DrawMenu)
                });
            AddMultipleCheckBox(R,
                new List<MenuCheckBox>
                {
                    new MenuCheckBox(ComboMenu),
                    new MenuCheckBox(DrawMenu, false)
                });

            FirstMenu.AddGroupLabel("Official plugin of OKTR- One Key To Report");

            ComboMenu.CreateSlider("Use E if under {1} HP %", 48, 40);

            HarassMenu.CreateSlider("Use E if under {1} HP %", 49, 40);
            AutoHarassMenu.CreateSlider("Use E if under {1} HP %", 50, 40);

            LaneClearMenu.CreateSlider("Use E if under {1} HP %", 51, 40);
            LaneClearMenu.CreateCheckBox("Prioritize Harass over Mode", 52, false);

            JungleClearMenu.CreateSlider("Use E if under {1} HP %", 53, 40);

            LastHitMenu.CreateCheckBox("Prioritize Harass over Mode", 53, false);

            MiscMenu.AddSeparator();
            MiscMenu.AddGroupLabel("AntiGapcloser - Interrupter settings:");
            MiscMenu.CreateCheckBox("Use AntiGapcloser", MenuIds.MiscUseGapcloser);
            MiscMenu.CreateCheckBox("Use Q", 54);
            MiscMenu.CreateCheckBox("Use W", 55);

            MiscMenu.AddSeparator();
            MiscMenu.CreateCheckBox("Use Interrupter", MenuIds.MiscUseInterrupt);
            MiscMenu.CreateCheckBox("Use Q", 56);
            MiscMenu.CreateCheckBox("Use W", 57);

            MiscMenu.CreateCheckBox("AutoSpells on CC", 58);
            MiscMenu.CreateCheckBox("AutoSpells on Events", 59);
            MiscMenu.CreateCheckBox("Use Auto Q", 60, false);
            MiscMenu.CreateCheckBox("Use Q on Stunned Enemies", 61, false);
            MiscMenu.CreateCheckBox("Use Q on Snared Enemies", 62, false);
            MiscMenu.CreateCheckBox("Use Q on Feared Enemies", 63, false);
            MiscMenu.CreateCheckBox("Use Q on Taunted Enemy", 64, false);
            MiscMenu.CreateCheckBox("Use Q on Suppressed Enemy", 65, false);
            MiscMenu.CreateCheckBox("Use Q on Charmed Enemies", 66, false);

            MiscMenu.CreateCheckBox("Use Auto W", 67, false);
            MiscMenu.CreateCheckBox("Use W on Stunned Enemies", 68, false);
            MiscMenu.CreateCheckBox("Use W on Snared Enemies", 69, false);
            MiscMenu.CreateCheckBox("Use W on Feared Enemies", 70, false);
            MiscMenu.CreateCheckBox("Use W on Taunted Enemy", 71, false);
            MiscMenu.CreateCheckBox("Use W on Suppressed Enemy", 72, false);
            MiscMenu.CreateCheckBox("Use W on Charmed Enemies", 73, false);
        }
예제 #5
0
        public override void InitializeMenu()
        {
            AddMultipleCheckBox(Q,
                                new List <MenuCheckBox>
            {
                new MenuCheckBox(ComboMenu),
                new MenuCheckBox(HarassMenu),
                new MenuCheckBox(AutoHarassMenu),
                new MenuCheckBox(LaneClearMenu),
                new MenuCheckBox(JungleClearMenu),
                new MenuCheckBox(LastHitMenu),
                new MenuCheckBox(FleeMenu),
                new MenuCheckBox(KillStealMenu),
                new MenuCheckBox(DrawMenu)
            });
            AddMultipleCheckBox(W,
                                new List <MenuCheckBox>
            {
                new MenuCheckBox(ComboMenu),
                new MenuCheckBox(HarassMenu),
                new MenuCheckBox(AutoHarassMenu, false),
                new MenuCheckBox(LaneClearMenu),
                new MenuCheckBox(JungleClearMenu),
                new MenuCheckBox(KillStealMenu),
                new MenuCheckBox(DrawMenu)
            });
            AddMultipleCheckBox(E,
                                new List <MenuCheckBox>
            {
                new MenuCheckBox(ComboMenu),
                new MenuCheckBox(HarassMenu),
                new MenuCheckBox(AutoHarassMenu, false),
                new MenuCheckBox(LaneClearMenu, false),
                new MenuCheckBox(JungleClearMenu),
                new MenuCheckBox(LastHitMenu, false),
                new MenuCheckBox(FleeMenu),
                new MenuCheckBox(KillStealMenu),
                new MenuCheckBox(DrawMenu)
            });
            AddMultipleCheckBox(R,
                                new List <MenuCheckBox>
            {
                new MenuCheckBox(ComboMenu),
                new MenuCheckBox(LaneClearMenu, false),
                new MenuCheckBox(JungleClearMenu, false),
                new MenuCheckBox(LastHitMenu),
                new MenuCheckBox(FleeMenu, false),
                new MenuCheckBox(KillStealMenu),
                new MenuCheckBox(DrawMenu)
            });

            FirstMenu.AddGroupLabel("Official plugin of OKTR- One Key To Report");

            ComboMenu.AddGroupLabel("Mode Switcher");
            ComboMenu.AddLabel("Burst Mode = R -> E -> W -> Q");
            ComboMenu.AddLabel("Normal Mode = Q -> W -> E -> R");
            ComboMenu.CreateComboBox("Switch your Combo Mode", "combo.Switcher", new[] { "Burst Mode", "Normal Mode" });

            LaneClearMenu.CreateCheckBox("Prioritize Harass over Mode", 48, false);

            LastHitMenu.CreateCheckBox("Prioritize Harass over Mode", 49, false);

            MiscMenu.AddSeparator();
            MiscMenu.AddGroupLabel("AntiGapcloser - Interrupter settings:");
            MiscMenu.CreateCheckBox("Use AntiGapcloser", MenuIds.MiscUseGapcloser);
            MiscMenu.CreateCheckBox("Use Q", 50);
            MiscMenu.CreateCheckBox("Use E", 51);
            MiscMenu.CreateCheckBox("Use R", 52, false);

            MiscMenu.AddSeparator();
            MiscMenu.CreateCheckBox("Use Interrupter", MenuIds.MiscUseInterrupt);
            MiscMenu.CreateCheckBox("Use E", 53);

            MiscMenu.CreateCheckBox("AutoSpells on CC", 54);
            MiscMenu.CreateCheckBox("AutoSpells on Events", 55);
            MiscMenu.CreateCheckBox("Use Auto Q", 56, false);
            MiscMenu.CreateCheckBox("Use Q on Stunned Enemies", 57, false);
            MiscMenu.CreateCheckBox("Use Q on Snared Enemies", 58, false);
            MiscMenu.CreateCheckBox("Use Q on Feared Enemies", 59, false);
            MiscMenu.CreateCheckBox("Use Q on Taunted Enemy", 60, false);
            MiscMenu.CreateCheckBox("Use Q on Suppressed Enemy", 61, false);
            MiscMenu.CreateCheckBox("Use Q on Charmed Enemies", 62, false);

            MiscMenu.CreateCheckBox("Use Auto E", 63, false);
            MiscMenu.CreateCheckBox("Use E on Stunned Enemies", 64, false);
            MiscMenu.CreateCheckBox("Use E on Snared Enemies", 65, false);
            MiscMenu.CreateCheckBox("Use E on Feared Enemies", 66, false);
            MiscMenu.CreateCheckBox("Use E on Taunted Enemy", 67, false);
            MiscMenu.CreateCheckBox("Use E on Suppressed Enemy", 68, false);
            MiscMenu.CreateCheckBox("Use E on Charmed Enemies", 69, false);
        }
예제 #6
0
        public override void InitializeMenu()
        {
            AddMultipleCheckBox(Q,
                                new List <MenuCheckBox>
            {
                new MenuCheckBox(ComboMenu),
                new MenuCheckBox(HarassMenu),
                new MenuCheckBox(AutoHarassMenu),
                new MenuCheckBox(LaneClearMenu),
                new MenuCheckBox(JungleClearMenu),
                new MenuCheckBox(LastHitMenu, false),
                new MenuCheckBox(KillStealMenu),
                new MenuCheckBox(DrawMenu)
            });
            AddMultipleCheckBox(W,
                                new List <MenuCheckBox>
            {
                new MenuCheckBox(ComboMenu),
                new MenuCheckBox(FleeMenu),
                new MenuCheckBox(DrawMenu)
            });
            AddMultipleCheckBox(E,
                                new List <MenuCheckBox>
            {
                new MenuCheckBox(ComboMenu),
                new MenuCheckBox(HarassMenu),
                new MenuCheckBox(AutoHarassMenu),
                new MenuCheckBox(LaneClearMenu),
                new MenuCheckBox(JungleClearMenu),
                new MenuCheckBox(LastHitMenu, false),
                new MenuCheckBox(KillStealMenu),
                new MenuCheckBox(DrawMenu)
            });
            AddMultipleCheckBox(R,
                                new List <MenuCheckBox>
            {
                new MenuCheckBox(ComboMenu),
                new MenuCheckBox(JungleClearMenu),
                new MenuCheckBox(LastHitMenu, false),
                new MenuCheckBox(FleeMenu, false),
                new MenuCheckBox(KillStealMenu),
                new MenuCheckBox(DrawMenu)
            });
            PlayerHasMana = false;

            FirstMenu.AddGroupLabel("Official plugin of OKTR- One Key To Report");

            ComboMenu.CreateCheckBox("Use R as GapCloser", 48, false);

            LaneClearMenu.CreateCheckBox("Prioritize Harass over Mode", 49, false);

            LastHitMenu.CreateCheckBox("Prioritize Harass over Mode", 50, false);

            KillStealMenu.CreateCheckBox("Use R for Jump & Kill", 51);


            MiscMenu.AddSeparator();
            MiscMenu.AddGroupLabel("AntiGapcloser - Interrupter settings:");
            MiscMenu.CreateCheckBox("Use AntiGapcloser", MenuIds.MiscUseGapcloser);
            MiscMenu.CreateCheckBox("Use W", 52);
            MiscMenu.CreateCheckBox("Use R", 53);

            MiscMenu.CreateCheckBox("AutoSpells on CC", 54);
            MiscMenu.CreateCheckBox("AutoSpells on Events", 55);
            MiscMenu.CreateCheckBox("Use Auto Q", 56, false);
            MiscMenu.CreateCheckBox("Use Q on Stunned Enemies", 57, false);
            MiscMenu.CreateCheckBox("Use Q on Snared Enemies", 58, false);
            MiscMenu.CreateCheckBox("Use Q on Feared Enemies", 59, false);
            MiscMenu.CreateCheckBox("Use Q on Taunted Enemy", 60, false);
            MiscMenu.CreateCheckBox("Use Q on Suppressed Enemy", 61, false);
            MiscMenu.CreateCheckBox("Use Q on Charmed Enemies", 62, false);

            MiscMenu.CreateCheckBox("Use Auto E", 63, false);
            MiscMenu.CreateCheckBox("Use E on Stunned Enemies", 64, false);
            MiscMenu.CreateCheckBox("Use E on Snared Enemies", 65, false);
            MiscMenu.CreateCheckBox("Use E on Feared Enemies", 66, false);
            MiscMenu.CreateCheckBox("Use E on Taunted Enemy", 67, false);
            MiscMenu.CreateCheckBox("Use E on Suppressed Enemy", 68, false);
            MiscMenu.CreateCheckBox("Use E on Charmed Enemies", 69, false);
            MiscMenu.CreateSlider("Energy Manager", 70, 60);
        }