예제 #1
0
파일: Program.cs 프로젝트: joyhck/OKTW-EB
        public static void CreateConfigMenu()
        {
            ConfigMenu = MainMenu.AddMenu("SAutoCarry - Azir", "Azir");
            ConfigMenu.AddLabel("This is a very complicated addon that conflicts with the target selector of EB.");
            ConfigMenu.AddLabel("1. Just ignore EB's Target Selector.");

            comboMenu = ConfigMenu.AddSubMenu("Combo", "SAutoCarry.Azir.Combo");
            comboMenu.Add("SAutoCarry.Azir.Combo.UseQ", new CheckBox("Use Q"));
            comboMenu.Add("SAutoCarry.Azir.Combo.UseQOnlyOutOfAA", new CheckBox("Use Q Only When Enemy out of range"));
            comboMenu.Add("SAutoCarry.Azir.Combo.UseQAlwaysMaxRange", new CheckBox("Always Cast Q To Max Range", false));
            comboMenu.Add("SAutoCarry.Azir.Combo.UseQWhenNoWAmmo", new CheckBox("Use Q When Out of W Ammo", false));
            comboMenu.Add("SAutoCarry.Azir.Combo.UseW", new CheckBox("Use W"));
            comboMenu.Add("SAutoCarry.Azir.Combo.UseE", new CheckBox("Use E If target is killable"));
            comboMenu.Add("SAutoCarry.Azir.Combo.UseR", new CheckBox("Use R"));
            comboMenu.Add("SAutoCarry.Azir.Combo.RMinHit", new Slider("Min R Hit", 1, 1, 5));
            comboMenu.Add("SAutoCarry.Azir.Combo.RMinHP", new Slider("Use R whenever my health < ", 20, 0, 100));

            harassMenu = ConfigMenu.AddSubMenu("Harass", "SAutoCarry.Azir.Harass");
            harassMenu.Add("SAutoCarry.Azir.Harass.UseQ", new CheckBox("Use Q"));
            harassMenu.Add("SAutoCarry.Azir.Harass.UseW", new CheckBox("Use W"));
            harassMenu.Add("SAutoCarry.Azir.Harass.MaxSoldier", new Slider("Max Soldier Count", 1, 1, 3));
            harassMenu.Add("SAutoCarry.Azir.Harass.ManaPercent", new Slider("Min. Mana Percent", 40, 0, 100));
            harassMenu.Add("SAutoCarry.Azir.Harass.Toggle", new KeyBind("Toggle Harass", false, KeyBind.BindTypes.PressToggle, 'J'));

            laneClearMenu = ConfigMenu.AddSubMenu("LaneClear", "SAutoCarry.Azir.LaneClear");
            laneClearMenu.Add("SAutoCarry.Azir.LaneClear.UseQ", new CheckBox("Use Q"));
            laneClearMenu.Add("SAutoCarry.Azir.LaneClear.MinQMinion", new Slider("Q Min. Minions", 3, 1, 5));
            laneClearMenu.Add("SAutoCarry.Azir.LaneClear.UseW", new CheckBox("Use W"));
            laneClearMenu.Add("SAutoCarry.Azir.LaneClear.Toggle", new KeyBind("Toggle Spellfarm", false, KeyBind.BindTypes.PressToggle, 'L'));
            laneClearMenu.Add("SAutoCarry.Azir.LaneClear.ManaPercent", new Slider("Min. Mana Percent", 40, 0, 100));

            miscMenu = ConfigMenu.AddSubMenu("Misc", "SAutoCarry.Azir.Misc");
            miscMenu.Add("SAutoCarry.Azir.Misc.Jump", new KeyBind("Jump To Cursor (Always Jumps Max Range)", false, KeyBind.BindTypes.HoldActive, 'G'));
            miscMenu.Add("SAutoCarry.Azir.Misc.JumpEQ", new KeyBind("Jump To Cursor (Jumps with juke)", false, KeyBind.BindTypes.HoldActive, 'A'));
            miscMenu.Add("SAutoCarry.Azir.Misc.Insec", new KeyBind("Insec Selected Target", false, KeyBind.BindTypes.HoldActive, 'T'));
            miscMenu.Add("SAutoCarry.Azir.Misc.WQKillSteal", new CheckBox("Use W->Q to KillSteal"));
            miscMenu.Add("SAutoCarry.Azir.Misc.BlockR", new CheckBox("Block R if wont hit anyone"));

            antiGapMenu = ConfigMenu.AddSubMenu("AntiGapCloser (R)", "SAutoCarry.Azir.Misc.AntiGapCloser");
            foreach (var enemy in HeroManager.Enemies)
            {
                if (AntiGapcloser.Spells.Any(p => p.ChampionName == enemy.ChampionName))
                {
                    var spells = AntiGapcloser.Spells.Where(p => p.ChampionName == enemy.ChampionName);
                    foreach (var gapcloser in spells)
                    {
                        antiGapMenu.Add("SAutoCarry.Azir.Misc.AntiGapCloser." + gapcloser.SpellName, new CheckBox(String.Format("{0} ({1})", gapcloser.ChampionName, gapcloser.Slot), false));
                    }
                }
            }
            antiGapMenu.Add("SAutoCarry.Azir.Misc.AntiGapCloser.Enable", new CheckBox("Enabled"));
        }
예제 #2
0
        public void CreateConfigMenu()
        {
            ConfigMenu = MainMenu.AddMenu("SAutoCarry - Veigar", "Veigar");
            ConfigMenu.AddLabel("This is a very complicated addon that conflicts with the target selector of EB.");
            ConfigMenu.AddLabel("1. Just ignore EB's Target Selector.");

            combo = ConfigMenu.AddSubMenu("Combo", "SAutoCarry.Veigar.Combo");
            combo.Add("SAutoCarry.Veigar.Combo.UseQ", new CheckBox("Use Q"));
            combo.Add("SAutoCarry.Veigar.Combo.UseW", new CheckBox("Use W"));
            combo.Add("SAutoCarry.Veigar.Combo.UseE", new CheckBox("Use E"));
            combo.Add("SAutoCarry.Veigar.Combo.UseR", new CheckBox("Use R"));

            harass = ConfigMenu.AddSubMenu("Harass", "SAutoCarry.Veigar.Harass");
            harass.Add("SAutoCarry.Veigar.Harass.UseQ", new CheckBox("Use Q"));
            harass.Add("SAutoCarry.Veigar.Harass.UseW", new CheckBox("Use W"));
            harass.Add("SAutoCarry.Veigar.Harass.UseE", new CheckBox("Use E"));
            harass.Add("SAutoCarry.Veigar.Harass.Mana", new Slider("Min. Mana Percent", 60));

            laneclear = ConfigMenu.AddSubMenu("Lane/Jungle Clear", "SAutoCarry.Veigar.LaneClear");
            laneclear.Add("SAutoCarry.Veigar.LaneClear.UseQ", new CheckBox("Use Q"));
            laneclear.Add("SAutoCarry.Veigar.LaneClear.UseW", new CheckBox("Use W"));
            laneclear.Add("SAutoCarry.Veigar.LaneClear.MinW", new Slider("Min. Minions To W In Range", 4, 1, 12));
            laneclear.Add("SAutoCarry.Veigar.LaneClear.Mana", new Slider("Min. Mana Percent", 10));

            misc = ConfigMenu.AddSubMenu("Misc", "SAutoCarry.Veigar.Misc");
            misc.Add("SAutoCarry.Veigar.Misc.AutoQLastHit",
                     new KeyBind("Auto Q Last Hit", false, KeyBind.BindTypes.PressToggle, 'T'));
            misc.Add("SAutoCarry.Veigar.Misc.AntiGapcloseE", new CheckBox("Anti Gap Closer With E"));
            misc.Add("SAutoCarry.Veigar.Misc.AutoWImmobile", new CheckBox("Auto W Immobile Target"));

            autoUlt = ConfigMenu.AddSubMenu("Auto Ult Settings (Killable)", "SAutoCarry.Veigar.AutoR");
            foreach (var enemy in HeroManager.Enemies)
            {
                autoUlt.Add("SAutoCarry.Veigar.AutoR.DontUlt" + enemy.ChampionName,
                            new CheckBox(string.Format("Dont Auto Ult {0}", enemy.ChampionName), false));
            }
            autoUlt.Add("SAutoCarry.Veigar.AutoR.Enabled", new CheckBox("Enabled"));
        }