示例#1
0
        /// <summary>
        /// TODO The init menu.
        /// </summary>
        private static void InitMenu()
        {
            Menu = new Menu("iDZed - Reloaded", "com.idz.zed", true);
            var tsMenu = new Menu("[iDZed] TargetSelector", "com.idz.zed.targetselector");

            TargetSelector.AddToMenu(tsMenu);
            Menu.AddSubMenu(tsMenu);
            new AssassinManager();

            var orbwalkMenu = new Menu("[iDZed] Orbwalker", "com.idz.zed.orbwalker");

            _orbwalker = new Orbwalking.Orbwalker(orbwalkMenu);
            Menu.AddSubMenu(orbwalkMenu);

            var comboMenu = new Menu("[iDZed] Combo", "com.idz.zed.combo");
            {
                comboMenu.AddItem(new MenuItem("com.idz.zed.combo.useq", "Use Q").SetValue(true));
                comboMenu.AddItem(
                    new MenuItem("com.idz.zed.combo.useqpred", "Q Prediction: On = slower, off = faster").SetValue(
                        false));
                comboMenu.AddItem(new MenuItem("com.idz.zed.combo.usew", "Use W").SetValue(true));
                comboMenu.AddItem(new MenuItem("com.idz.zed.combo.usee", "Use E").SetValue(true));
                comboMenu.AddItem(new MenuItem("com.idz.zed.combo.user", "Use R").SetValue(true));
                comboMenu.AddItem(new MenuItem("com.idz.zed.combo.swapw", "Swap W For Follow").SetValue(false));
                comboMenu.AddItem(new MenuItem("com.idz.zed.combo.swapr", "Swap R On kill").SetValue(true));
                comboMenu.AddItem(
                    new MenuItem("com.idz.zed.combo.mode", "Combo Mode").SetValue(
                        new StringList(new[] { "Line Mode", "Triangle Mode" })));
            }

            var dontUlt = new Menu("Don't Ult", "com.idz.zed.combo.dontult");

            {
                foreach (var source in HeroManager.Enemies.Where(x => x.IsValid))
                {
                    dontUlt.AddItem(new MenuItem("dontult:" + source.ChampionName, "Disable: " + source.ChampionName).SetValue(false));
                }
            }
            comboMenu.AddSubMenu(dontUlt);

            Menu.AddSubMenu(comboMenu);

            var harassMenu = new Menu("[iDZed] Harass", "com.idz.zed.harass");

            {
                harassMenu.AddItem(new MenuItem("com.idz.zed.harass.useHarass", "Use Harass").SetValue(true));
                harassMenu.AddItem(
                    new MenuItem("com.idz.zed.harass.toggle", "Toggle Long Harass").SetValue(
                        new KeyBind("T".ToCharArray()[0], KeyBindType.Toggle)));
                harassMenu.AddItem(
                    new MenuItem("com.idz.zed.harass.harassMode", "Harass Mode").SetValue(
                        new StringList(new[] { "Q-E", "W-E-Q", "W-Q-E" })));
            }

            Menu.AddSubMenu(harassMenu);

            var lastHitMenu = new Menu("[iDZed] LastHit", "com.idz.zed.lasthit");

            {
                lastHitMenu.AddItem(new MenuItem("com.idz.zed.lasthit.useQ", "Use Q in LastHit").SetValue(true));
                lastHitMenu.AddItem(new MenuItem("com.idz.zed.lasthit.useE", "Use E in LastHit").SetValue(true));
            }

            Menu.AddSubMenu(lastHitMenu);

            var laneclearMenu = new Menu("[iDZed] Laneclear", "com.idz.zed.laneclear");

            {
                laneclearMenu.AddItem(new MenuItem("com.idz.zed.laneclear.useQ", "Use Q in laneclear").SetValue(true));
                laneclearMenu.AddItem(
                    new MenuItem("com.idz.zed.laneclear.qhit", "Min minions for Q").SetValue(new Slider(3, 1, 10)));
                laneclearMenu.AddItem(new MenuItem("com.idz.zed.laneclear.useE", "Use E in laneclear").SetValue(true));
                laneclearMenu.AddItem(
                    new MenuItem("com.idz.zed.laneclear.ehit", "Min minions for E").SetValue(new Slider(3, 1, 10)));
            }

            Menu.AddSubMenu(laneclearMenu);

            var drawMenu = new Menu("[iDZed] Drawing", "com.idz.zed.drawing");

            {
                foreach (var slot in _spells.Select(entry => entry.Key))
                {
                    drawMenu.AddItem(
                        new MenuItem(
                            "com.idz.zed.drawing.draw" + GetStringFromSpellSlot(slot),
                            "Draw " + GetStringFromSpellSlot(slot) + " Range").SetValue(new Circle(true, Color.Aqua)));
                }

                drawMenu.AddItem(new MenuItem("drawShadows", "Draw Shadows").SetValue(true));
            }

            Menu.AddSubMenu(drawMenu);

            var fleeMenu = new Menu("[iDZed] Flee", "com.idz.zed.flee");

            {
                fleeMenu.AddItem(
                    new MenuItem("fleeActive", "Flee Key").SetValue(
                        new KeyBind("P".ToCharArray()[0], KeyBindType.Press)));
                fleeMenu.AddItem(new MenuItem("autoEFlee", "Auto E when fleeing").SetValue(true));
            }

            Menu.AddSubMenu(fleeMenu);

            var miscMenu = new Menu("[iDZed] Misc", "com.idz.zed.misc");

            {
                miscMenu.AddItem(new MenuItem("energyManagement", "Use Energy Management").SetValue(true));
                miscMenu.AddItem(new MenuItem("safetyChecks", "Check Safety for shadow swapping").SetValue(true));
                miscMenu.AddItem(
                    new MenuItem("com.idz.zed.misc.hitchance", "Q Hitchance").SetValue(
                        new StringList(new[] { "Low", "Medium", "High", "Very High" }, 2)));
                miscMenu.AddItem(new MenuItem("checkQWE", "Check Other Spells before ult").SetValue(true));
            }

            Menu.AddSubMenu(miscMenu);

            ItemManager.OnLoad(Menu);
            ZedEvader.OnLoad(Menu);

            Menu.AddToMainMenu();
        }
示例#2
0
文件: Zed.cs 项目: wade1990/PortAIO
        /// <summary>
        /// TODO The init menu.
        /// </summary>
        private static void InitMenu()
        {
            Menu = new Menu("iDZed - Reworked", "com.idz.zed", true);

            // ReSharper disable once ObjectCreationAsStatement
            new AssassinManager();

            var orbwalkMenu = new Menu(":: Orbwalker", "com.idz.zed.orbwalker");

            _orbwalker = new Orbwalking.Orbwalker(orbwalkMenu);
            Menu.AddSubMenu(orbwalkMenu);

            var comboMenu = new Menu(":: Combo", "com.idz.zed.combo");

            {
                comboMenu.AddItem(new MenuItem("com.idz.zed.combo.useq", "Use Q").SetValue(true));
                comboMenu.AddItem(
                    new MenuItem("com.idz.zed.combo.useqpred", "Q Prediction: On = slower, off = faster").SetValue(
                        false));
                comboMenu.AddItem(new MenuItem("com.idz.zed.combo.usew", "Use W").SetValue(true));
                comboMenu.AddItem(new MenuItem("com.idz.zed.combo.usee", "Use E").SetValue(true));
                comboMenu.AddItem(new MenuItem("com.idz.zed.combo.user", "Use R").SetValue(true));
                comboMenu.AddItem(new MenuItem("com.idz.zed.combo.swapw", "Swap W For Follow").SetValue(false));
                comboMenu.AddItem(new MenuItem("com.idz.zed.combo.swapr", "Swap R On kill").SetValue(true));
                comboMenu.AddItem(
                    new MenuItem("com.idz.zed.combo.mode", "Combo Mode").SetValue(
                        new StringList(new[] { "Line Mode", "Triangle Mode" })));
            }
            Menu.AddSubMenu(comboMenu);

            var harassMenu = new Menu(":: Harass", "com.idz.zed.harass");

            {
                harassMenu.AddItem(new MenuItem("com.idz.zed.harass.useHarass", "Use Harass").SetValue(true));
                harassMenu.AddItem(new MenuItem("fast.harass", "Q Prediction: On = slower, off = faster").SetValue(false));
                harassMenu.AddItem(
                    new MenuItem("com.idz.zed.harass.harassMode", "Harass Mode").SetValue(
                        new StringList(new[] { "W-E-Q" })));
            }

            Menu.AddSubMenu(harassMenu);

            var lastHitMenu = new Menu(":: LastHit", "com.idz.zed.lasthit");

            {
                lastHitMenu.AddItem(new MenuItem("com.idz.zed.lasthit.useQ", "Use Q in LastHit").SetValue(true));
                lastHitMenu.AddItem(new MenuItem("com.idz.zed.lasthit.useE", "Use E in LastHit").SetValue(true));
            }

            Menu.AddSubMenu(lastHitMenu);

            var laneclearMenu = new Menu(":: Laneclear", "com.idz.zed.laneclear");

            {
                laneclearMenu.AddItem(new MenuItem("com.idz.zed.laneclear.useQ", "Use Q in laneclear").SetValue(true));
                laneclearMenu.AddItem(
                    new MenuItem("com.idz.zed.laneclear.qhit", "Min minions for Q").SetValue(new Slider(3, 1, 10)));
                laneclearMenu.AddItem(new MenuItem("com.idz.zed.laneclear.useE", "Use E in laneclear").SetValue(true));
                laneclearMenu.AddItem(
                    new MenuItem("com.idz.zed.laneclear.ehit", "Min minions for E").SetValue(new Slider(3, 1, 10)));
            }

            Menu.AddSubMenu(laneclearMenu);

            var drawMenu = new Menu(":: Drawing", "com.idz.zed.drawing");

            {
                foreach (var slot in _spells.Select(entry => entry.Key))
                {
                    drawMenu.AddItem(
                        new MenuItem(
                            "com.idz.zed.drawing.draw" + GetStringFromSpellSlot(slot),
                            "Draw " + GetStringFromSpellSlot(slot) + " Range").SetValue(new Circle(true, Color.Aqua)));
                }

                drawMenu.AddItem(new MenuItem("drawShadows", "Draw Shadows").SetValue(true));
            }

            Menu.AddSubMenu(drawMenu);

            var fleeMenu = new Menu(":: Flee", "com.idz.zed.flee");

            {
                fleeMenu.AddItem(
                    new MenuItem("fleeActive", "Flee Key").SetValue(
                        new KeyBind("P".ToCharArray()[0], KeyBindType.Press)));
                fleeMenu.AddItem(new MenuItem("autoEFlee", "Auto E when fleeing").SetValue(true));
            }

            Menu.AddSubMenu(fleeMenu);

            var miscMenu = new Menu(":: Misc", "com.idz.zed.misc");

            {
                miscMenu.AddItem(new MenuItem("energyManagement", "Use Energy Management").SetValue(true));
                miscMenu.AddItem(new MenuItem("safetyChecks", "Check Safety for shadow swapping").SetValue(true));
                miscMenu.AddItem(
                    new MenuItem("com.idz.zed.misc.hitchance", "Q Hitchance").SetValue(
                        new StringList(new[] { "Low", "Medium", "High", "Very High" }, 2)));
                miscMenu.AddItem(new MenuItem("checkQWE", "Check Other Spells before ult").SetValue(true));
            }

            Menu.AddSubMenu(miscMenu);

            ItemManager.OnLoad(Menu);
            ZedEvader.OnLoad(Menu);

            Menu.AddToMainMenu();
        }