当前位置: 首页>>代码示例>>C#>>正文


C# Menu.AddManaLimiter方法代码示例

本文整理汇总了C#中LeagueSharp.Common.Menu.AddManaLimiter方法的典型用法代码示例。如果您正苦于以下问题:C# Menu.AddManaLimiter方法的具体用法?C# Menu.AddManaLimiter怎么用?C# Menu.AddManaLimiter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在LeagueSharp.Common.Menu的用法示例。


在下文中一共展示了Menu.AddManaLimiter方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnLoad

        public static void OnLoad()
        {
            var RootMenu = Variables.Menu;

            var OWMenu = new Menu("[VHR] Orbwalker", "dz191.vhr.orbwalker");
            {
                Variables.Orbwalker = new Orbwalking.Orbwalker(OWMenu);
                RootMenu.AddSubMenu(OWMenu);
            }

            var TSMenu = new Menu("[VHR] TS", "dz191.vhr.ts");
            {
                TargetSelector.AddToMenu(TSMenu);
                RootMenu.AddSubMenu(TSMenu);
            }

            var comboMenu = new Menu("[VHR] Combo", "dz191.vhr.combo");
            {
                var manaMenu = new Menu("Mana Manager", "dz191.vhr.combo.mm");
                {
                    manaMenu.AddManaLimiter(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.Combo);
                    manaMenu.AddManaLimiter(Enumerations.Skills.E, Orbwalking.OrbwalkingMode.Combo);
                    manaMenu.AddManaLimiter(Enumerations.Skills.R, Orbwalking.OrbwalkingMode.Combo);

                    comboMenu.AddSubMenu(manaMenu);
                }

                comboMenu.AddSkill(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.Combo);
                comboMenu.AddSkill(Enumerations.Skills.E, Orbwalking.OrbwalkingMode.Combo);
                comboMenu.AddSkill(Enumerations.Skills.R, Orbwalking.OrbwalkingMode.Combo, false);

                comboMenu.AddSlider("dz191.vhr.combo.r.minenemies", "Min. R Enemies", new Tuple<int, int, int>(2, 1, 5)).SetTooltip("Minimum enemies in range for R");
                comboMenu.AddBool("dz191.vhr.combo.q.2wstacks", "Only Q if 2W Stacks on Target").SetTooltip("Will Q for 3rd proc only. Enable if you want AA AA Q AA");

                RootMenu.AddSubMenu(comboMenu);
            }

            var harassMenu = new Menu("[VHR] Harass", "dz191.vhr.mixed");
            {
                var manaMenu = new Menu("Mana Manager", "dz191.vhr.mixed.mm");
                {
                    manaMenu.AddManaLimiter(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.Mixed);
                    manaMenu.AddManaLimiter(Enumerations.Skills.E, Orbwalking.OrbwalkingMode.Mixed);

                    harassMenu.AddSubMenu(manaMenu);
                }

                harassMenu.AddSkill(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.Mixed);
                harassMenu.AddSkill(Enumerations.Skills.E, Orbwalking.OrbwalkingMode.Mixed);

                harassMenu.AddBool("dz191.vhr.mixed.q.2wstacks", "Only Q if 2W Stacks on Target").SetTooltip("Will Q for 3rd proc only. Enable if you want AA AA Q AA");
                harassMenu.AddBool("dz191.vhr.mixed.ethird", "Use E for Third Proc").SetTooltip("Uses E for 3rd W proc. Enable if you want AA Q AA E");

                RootMenu.AddSubMenu(harassMenu);
            }

            var farmMenu = new Menu("[VHR] Farm", "dz191.vhr.farm");
            {
                farmMenu.AddSkill(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.LaneClear).SetTooltip("Q Laneclear");
                farmMenu.AddManaLimiter(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.LaneClear, 45, true);
                farmMenu.AddSkill(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.LastHit);
                farmMenu.AddManaLimiter(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.LastHit, 45, true).SetTooltip("Q Lasthit");
                farmMenu.AddBool("dz191.vhr.farm.condemnjungle", "Use E to condemn jungle mobs", true).SetTooltip("Use Condemn against jungle creeps");
                farmMenu.AddBool("dz191.vhr.farm.qjungle", "Use Q against jungle mobs", true).SetTooltip("Use Tumble in the Jungle");

                RootMenu.AddSubMenu(farmMenu);
            }

            var miscMenu = new Menu("[VHR] Misc", "dz191.vhr.misc");
            {
                var miscQMenu = new Menu("Misc - Q (Tumble)", "dz191.vhr.misc.tumble");
                {
                    miscQMenu.AddStringList("dz191.vhr.misc.condemn.qlogic", "Q Logic", new[] { "Reborn", "Normal", "Kite melees", "Kurisu" }).SetTooltip("The Tumble Method. Reborn = Safest & Besto");
                    miscQMenu.AddBool("dz191.vhr.mixed.mirinQ", "Q to Wall when Possible (Mirin Mode)", true).SetTooltip("Will Q to walls when possible for really fast bursts!");
                    miscQMenu.AddBool("dz191.vhr.misc.tumble.smartq", "Try to QE when possible").SetTooltip("Will try to do the Tumble + Condemn combo when possible"); //Done
                    miscQMenu.AddKeybind("dz191.vhr.misc.tumble.noaastealthex", "Don't AA while stealthed", new Tuple<uint, KeyBindType>('K', KeyBindType.Toggle)).SetTooltip("Will not AA while you are in Ult+Q"); //Done
                    miscQMenu.AddBool("dz191.vhr.misc.tumble.noqenemies", "Don't Q into enemies").SetTooltip("If true it will not Q into 2 or more enemies"); //done
                    miscQMenu.AddBool("dz191.vhr.misc.tumble.dynamicqsafety", "Use dynamic Q Safety Distance").SetTooltip("Use the enemy AA range as the 'Don't Q into enemies' safety distance?"); //done
                    miscQMenu.AddBool("dz191.vhr.misc.tumble.qspam", "Ignore Q checks").SetTooltip("Ignores 'Safe Q' and 'Don't Q into enemies' checks"); //Done
                    miscQMenu.AddBool("dz191.vhr.misc.tumble.qinrange", "Q For KS", true).SetTooltip("Uses Q to KS by Qing in range if you can kill with Q + AA"); //Done

                    miscQMenu.AddText("dz191.vhr.misc.tumble.walltumble.warning", "Click and hold Walltumble")
                        .SetFontStyle(FontStyle.Bold, SharpDX.Color.Red);
                    miscQMenu.AddText("dz191.vhr.misc.tumble.walltumble.warning.2",
                        "It will walk to the nearest Tumble spot and Tumble")
                        .SetFontStyle(FontStyle.Bold, SharpDX.Color.Red);
                    miscQMenu.AddKeybind("dz191.vhr.misc.tumble.walltumble", "Tumble Over Wall (WallTumble)",
                        new Tuple<uint, KeyBindType>('Y', KeyBindType.Press)).SetTooltip("DISABLED! (For security reasons)! Tumbles over wall.");

                    miscMenu.AddSubMenu(miscQMenu);
                }

                var miscEMenu = new Menu("Misc - E (Condemn)", "dz191.vhr.misc.condemn");
                {
                    miscEMenu.AddStringList("dz191.vhr.misc.condemn.condemnmethod", "Condemn Method",
                        new[] { "VH Revolution", "VH Reborn", "Marksman/Gosu", "Shine#" }).SetTooltip("The condemn method. Recommended: Revolution > Shine/Reborn > Marksman");

                    miscEMenu.AddSlider("dz191.vhr.misc.condemn.pushdistance", "E Push Distance",
                        new Tuple<int, int, int>(420, 350, 470)).SetTooltip("The E Knockback distance the script uses. Recommended: 400-430");

//.........这里部分代码省略.........
开发者ID:hero20071104,项目名称:LeagueSharp,代码行数:101,代码来源:MenuGenerator.cs

示例2: OnLoad

        public static void OnLoad()
        {
            var RootMenu = Variables.Menu;

            comboMenu = RootMenu.AddSubMenu("[VHR] Combo", "dz191.vhr.combo");
            comboMenu.AddGroupLabel("Mana Manager");
            comboMenu.AddManaLimiter(Enumerations.Skills.Q, "combo");
            comboMenu.AddManaLimiter(Enumerations.Skills.E, "combo");
            comboMenu.AddManaLimiter(Enumerations.Skills.R, "combo");
            comboMenu.AddSeparator();
            comboMenu.AddSkill(Enumerations.Skills.Q, "combo");
            comboMenu.AddSkill(Enumerations.Skills.E, "combo");
            comboMenu.AddSkill(Enumerations.Skills.R, "combo", false);
            comboMenu.AddSeparator();
            comboMenu.Add("dz191.vhr.combo.r.minenemies", new Slider("Min. R Enemies", 2, 1, 5));
            comboMenu.Add("dz191.vhr.combo.q.2wstacks", new CheckBox("Only Q if 2W Stacks on Target", false));

            harassMenu = RootMenu.AddSubMenu("[VHR] Harass", "dz191.vhr.mixed");
            harassMenu.AddGroupLabel("Mana Manager");
            harassMenu.AddManaLimiter(Enumerations.Skills.Q, "harass");
            harassMenu.AddManaLimiter(Enumerations.Skills.E, "harass");
            harassMenu.AddSeparator();
            harassMenu.AddSkill(Enumerations.Skills.Q, "harass");
            harassMenu.AddSkill(Enumerations.Skills.E, "harass");
            harassMenu.AddSeparator();
            harassMenu.Add("dz191.vhr.mixed.q.2wstacks", new CheckBox("Only Q if 2W Stacks on Target"));
            harassMenu.Add("dz191.vhr.mixed.ethird", new CheckBox("Use E for Third Proc"));

            farmMenu = RootMenu.AddSubMenu("[VHR] Farm", "dz191.vhr.farm");
            farmMenu.AddSkill(Enumerations.Skills.Q, "laneclear");
            farmMenu.AddManaLimiter(Enumerations.Skills.Q, "laneclear", 45, true);
            farmMenu.AddSeparator();
            farmMenu.AddSkill(Enumerations.Skills.Q, "lasthit");
            farmMenu.AddManaLimiter(Enumerations.Skills.Q, "lasthit", 45, true);
            farmMenu.AddSeparator();
            farmMenu.Add("dz191.vhr.farm.condemnjungle", new CheckBox("Use E to condemn jungle mobs", true));
            farmMenu.Add("dz191.vhr.farm.qjungle", new CheckBox("Use Q against jungle mobs", true));

            miscMenu = RootMenu.AddSubMenu("[VHR] Misc", "dz191.vhr.misc");
            miscMenu.AddGroupLabel("Misc - Q (Tumble)");
            miscMenu.Add("dz191.vhr.misc.condemn.qlogic", new ComboBox("Q Logic", 0, "Reborn", "Normal", "Kite melees", "Kurisu"));
            miscMenu.Add("dz191.vhr.mixed.mirinQ", new CheckBox("Q to Wall when Possible (Mirin Mode)", true));
            miscMenu.Add("dz191.vhr.misc.tumble.smartq", new CheckBox("Try to QE when possible"));
            miscMenu.Add("dz191.vhr.misc.tumble.noaastealthex", new KeyBind("Don't AA while stealthed", false, KeyBind.BindTypes.PressToggle, 'K'));
            miscMenu.Add("dz191.vhr.misc.tumble.noaastealthex.hp", new Slider("Only if HP % < x", 35, 0, 100));
            miscMenu.Add("dz191.vhr.misc.tumble.ijava", new CheckBox("iJava Stealth")); //Done
            miscMenu.Add("dz191.vhr.misc.tumble.noaastealth.duration", new Slider("Duration to wait (iJava Only)", 700, 0, 1000));
            miscMenu.Add("dz191.vhr.misc.tumble.noqenemies", new CheckBox("Don't Q into enemies"));
            miscMenu.Add("dz191.vhr.misc.tumble.noqenemies.old", new CheckBox("Use Old Don't Q into enemies"));
            miscMenu.Add("dz191.vhr.misc.tumble.dynamicqsafety", new CheckBox("Use dynamic Q Safety Distance"));
            miscMenu.Add("dz191.vhr.misc.tumble.qspam", new CheckBox("Ignore Q checks"));
            miscMenu.Add("dz191.vhr.misc.tumble.qinrange", new CheckBox("Q For KS", true));
            miscMenu.Add("dz191.vhr.misc.tumble.noaa.enemies", new Slider("Min Enemies for No AA Stealth", 3, 2, 5));
            miscMenu.AddSeparator();
            miscMenu.AddGroupLabel("Misc - E (Condemn)");
            miscMenu.Add("dz191.vhr.misc.condemn.condemnmethod", new ComboBox("Condemn Method", 0, "VH Revolution", "VH Reborn", "Marksman/Gosu", "Shine#"));
            miscMenu.Add("dz191.vhr.misc.condemn.pushdistance", new Slider("E Push Distance", 420, 350, 470));
            miscMenu.Add("dz191.vhr.misc.condemn.accuracy", new Slider("Accuracy (Revolution Only)", 45, 1, 65));
            miscMenu.Add("dz191.vhr.misc.condemn.enextauto", new KeyBind("E Next Auto", false, KeyBind.BindTypes.PressToggle, 'T'));
            miscMenu.Add("dz191.vhr.misc.condemn.flashcondemn", new KeyBind("Condemn -> Flash", false, KeyBind.BindTypes.HoldActive, 'W'));
            miscMenu.Add("dz191.vhr.misc.condemn.onlystuncurrent", new CheckBox("Only stun current target"));
            miscMenu.Add("dz191.vhr.misc.condemn.autoe", new CheckBox("Auto E"));
            miscMenu.Add("dz191.vhr.misc.condemn.eks", new CheckBox("Smart E KS"));
            miscMenu.Add("dz191.vhr.misc.condemn.noeaa", new Slider("Don't E if Target can be killed in X AA", 1, 0, 4));
            miscMenu.Add("dz191.vhr.misc.condemn.trinketbush", new CheckBox("Trinket Bush on Condemn", true));
            miscMenu.Add("dz191.vhr.misc.condemn.lowlifepeel", new CheckBox("Peel with E when low health"));
            miscMenu.Add("dz191.vhr.misc.condemn.condemnflag", new CheckBox("Condemn to J4 flag", true));
            miscMenu.Add("dz191.vhr.misc.condemn.noeturret", new CheckBox("No E Under enemy turret"));
            miscMenu.Add("dz191.vhr.misc.condemn.repelflash", new CheckBox("Use E on Enemy Flashes"));
            miscMenu.Add("dz191.vhr.misc.condemn.repelkindred", new CheckBox("Use E to push enemies out of kindred ult"));
            miscMenu.AddSeparator();
            miscMenu.AddGroupLabel("Misc - General");
            miscMenu.Add("dz191.vhr.misc.general.antigp", new CheckBox("Anti Gapcloser"));
            miscMenu.Add("dz191.vhr.misc.general.interrupt", new CheckBox("Interrupter", true));
            miscMenu.Add("dz191.vhr.misc.general.antigpdelay", new Slider("Anti Gapcloser Delay (ms)", 0, 0, 1000));
            miscMenu.Add("dz191.vhr.misc.general.specialfocus", new CheckBox("Focus targets with 2 W marks"));
            miscMenu.Add("dz191.vhr.misc.general.reveal", new CheckBox("Stealth Reveal (Pink Ward / Lens)"));
            miscMenu.Add("dz191.vhr.misc.general.disablemovement", new CheckBox("Disable Orbwalker Movement", false));
            miscMenu.Add("dz191.vhr.misc.general.disableattk", new CheckBox("Disable Orbwalker Attack", false));

            drawMenu = RootMenu.AddSubMenu("[VHR] Drawings", "dz191.vhr.draw");
            drawMenu.Add("dz191.vhr.draw.spots", new CheckBox("Draw Spots", false));
            drawMenu.Add("dz191.vhr.draw.range", new CheckBox("Draw Enemy Ranges", false));
            drawMenu.Add("dz191.vhr.draw.condemn", new CheckBox("Draw Condemn Rectangles", false));
            drawMenu.Add("dz191.vhr.draw.qpos", new CheckBox("Reborn Q Position (Debug)", false));

            //  CustomAntigapcloser.BuildMenu(RootMenu);
            DZLib.Core.DZAntigapcloser.BuildMenu(RootMenu, "[VHR] AntiGapclosers List", "dz191.vhr.agplist");
        }
开发者ID:yashine59fr,项目名称:PortAIO,代码行数:89,代码来源:MenuGenerator.cs

示例3: OnLoad

        public static void OnLoad()
        {
            var RootMenu = Variables.Menu;

            var OWMenu = new Menu("[VHR] Orbwalker", "dz191.vhr.orbwalker");
            {
                Variables.Orbwalker = new Orbwalking.Orbwalker(OWMenu);
                RootMenu.AddSubMenu(OWMenu);
            }

            var TSMenu = new Menu("[VHR] TS", "dz191.vhr.ts");
            {
                TargetSelector.AddToMenu(TSMenu);
                RootMenu.AddSubMenu(TSMenu);
            }

            var comboMenu = new Menu("[VHR] Combo", "dz191.vhr.combo");
            {
                var manaMenu = new Menu("Mana Manager", "dz191.vhr.combo.mm");
                {
                    manaMenu.AddManaLimiter(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.Combo);
                    manaMenu.AddManaLimiter(Enumerations.Skills.E, Orbwalking.OrbwalkingMode.Combo);
                    manaMenu.AddManaLimiter(Enumerations.Skills.R, Orbwalking.OrbwalkingMode.Combo);

                    comboMenu.AddSubMenu(manaMenu);
                }

                comboMenu.AddSkill(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.Combo);
                comboMenu.AddSkill(Enumerations.Skills.E, Orbwalking.OrbwalkingMode.Combo);
                comboMenu.AddSkill(Enumerations.Skills.R, Orbwalking.OrbwalkingMode.Combo, false);

                comboMenu.AddSlider("dz191.vhr.combo.r.minenemies", "Min R Enemies", new Tuple<int, int, int>(2, 1, 5));
                comboMenu.AddBool("dz191.vhr.combo.q.2wstacks","Only Q if 2W Stacks on Target");

                RootMenu.AddSubMenu(comboMenu);
            }

            var harassMenu = new Menu("[VHR] Harass", "dz191.vhr.mixed");
            {
                var manaMenu = new Menu("Mana Manager", "dz191.vhr.mixed.mm");
                {
                    manaMenu.AddManaLimiter(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.Mixed);
                    manaMenu.AddManaLimiter(Enumerations.Skills.E, Orbwalking.OrbwalkingMode.Mixed);

                    harassMenu.AddSubMenu(manaMenu);
                }

                harassMenu.AddSkill(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.Mixed);
                harassMenu.AddSkill(Enumerations.Skills.E, Orbwalking.OrbwalkingMode.Mixed);

                harassMenu.AddBool("dz191.vhr.mixed.q.2wstacks", "Only Q if 2W Stacks on Target");
                harassMenu.AddBool("dz191.vhr.mixed.ethird", "Use E for Third Proc");
                harassMenu.AddBool("dz191.vhr.mixed.mirinQ","Q to Wall when Possible (Mirin Mode)", true);

                RootMenu.AddSubMenu(harassMenu);
            }

            var farmMenu = new Menu("[VHR] Farm", "dz191.vhr.farm");
            {
                farmMenu.AddSkill(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.LaneClear);
                farmMenu.AddManaLimiter(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.LaneClear, 45, true);
                farmMenu.AddSkill(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.LastHit);
                farmMenu.AddManaLimiter(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.LastHit, 45, true);
                farmMenu.AddBool("dz191.vhr.farm.condemnjungle","Use E to condemn jungle mobs", true);

                RootMenu.AddSubMenu(farmMenu);
            }

            var miscMenu = new Menu("[VHR] Misc", "dz191.vhr.misc");
            {
                var miscQMenu = new Menu("Misc - Q (Tumble)", "dz191.vhr.misc.tumble");
                {
                    miscQMenu.AddStringList("dz191.vhr.misc.condemn.qlogic", "Q Logic", new[] {"Normal", "Kite melees", "Kurisu"});
                    miscQMenu.AddBool("dz191.vhr.misc.tumble.smartq", "Try to QE when possible"); //Done
                    miscQMenu.AddKeybind("dz191.vhr.misc.tumble.noaastealth", "Don't AA while stealthed", new Tuple<uint, KeyBindType>('K', KeyBindType.Toggle)); //Done
                    miscQMenu.AddBool("dz191.vhr.misc.tumble.noqenemies", "Don't Q into enemies"); //done
                    miscQMenu.AddBool("dz191.vhr.misc.tumble.dynamicqsafety", "Use dynamic Q Safety Distance"); //done
                    miscQMenu.AddBool("dz191.vhr.misc.tumble.qspam", "Ignore Q checks"); //Done
                    miscQMenu.AddBool("dz191.vhr.misc.tumble.qinrange", "Q For KS", true); //Done

                    miscQMenu.AddText("dz191.vhr.misc.tumble.walltumble.warning", "Click and hold Walltumble")
                        .SetFontStyle(FontStyle.Bold, SharpDX.Color.Red);
                    miscQMenu.AddText("dz191.vhr.misc.tumble.walltumble.warning.2",
                        "It will walk to the nearest Tumble spot and Tumble")
                        .SetFontStyle(FontStyle.Bold, SharpDX.Color.Red);
                    miscQMenu.AddKeybind("dz191.vhr.misc.tumble.walltumble", "Tumble Over Wall (WallTumble)",
                        new Tuple<uint, KeyBindType>('Y', KeyBindType.Press));

                    miscMenu.AddSubMenu(miscQMenu);
                }

                var miscEMenu = new Menu("Misc - E (Condemn)", "dz191.vhr.misc.condemn");
                {
                    miscEMenu.AddStringList("dz191.vhr.misc.condemn.condemnmethod", "Condemn Method",
                        new[] {"VH Revolution", "VH Reborn", "Marksman/Gosu", "Shine#"});

                    miscEMenu.AddSlider("dz191.vhr.misc.condemn.pushdistance", "E Push Distance",
                        new Tuple<int, int, int>(395, 350, 470));

                    miscEMenu.AddSlider("dz191.vhr.misc.condemn.accuracy", "Accuracy (Revolution Only)",
//.........这里部分代码省略.........
开发者ID:DZ191,项目名称:LeagueSharp_InDev,代码行数:101,代码来源:MenuGenerator.cs

示例4: OnLoad

        public static void OnLoad()
        {
            var RootMenu = Variables.Menu;

            var OWMenu = new Menu("[VHR] Orbwalker", "dz191.vhr.orbwalker");
            {
                Variables.Orbwalker = new Orbwalking.Orbwalker(OWMenu);
                RootMenu.AddSubMenu(OWMenu);
            }

            var TSMenu = new Menu("[VHR] TS", "dz191.vhr.ts");
            {
                TargetSelector.AddToMenu(TSMenu);
                RootMenu.AddSubMenu(TSMenu);
            }

            var comboMenu = new Menu("[VHR] Combo", "dz191.vhr.combo");
            {
                var manaMenu = new Menu("Mana Manager", "dz191.vhr.combo.mm");
                {
                    manaMenu.AddManaLimiter(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.Combo);
                    manaMenu.AddManaLimiter(Enumerations.Skills.E, Orbwalking.OrbwalkingMode.Combo);
                    manaMenu.AddManaLimiter(Enumerations.Skills.R, Orbwalking.OrbwalkingMode.Combo);
                    
                    comboMenu.AddSubMenu(manaMenu);
                }

                comboMenu.AddSkill(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.Combo);
                comboMenu.AddSkill(Enumerations.Skills.E, Orbwalking.OrbwalkingMode.Combo);
                comboMenu.AddSkill(Enumerations.Skills.R, Orbwalking.OrbwalkingMode.Combo, false);

                comboMenu.AddSlider("dz191.vhr.combo.r.minenemies", "Min. R Enemies", new Tuple<int, int, int>(2, 1, 5)).SetTooltip("Minimum enemies in range for R");
                comboMenu.AddBool("dz191.vhr.combo.q.2wstacks", "Only Q if 2W Stacks on Target").SetTooltip("Will Q for 3rd proc only. Enable if you want AA AA Q AA");

                RootMenu.AddSubMenu(comboMenu);
            }

            var harassMenu = new Menu("[VHR] Harass", "dz191.vhr.mixed");
            {
                var manaMenu = new Menu("Mana Manager", "dz191.vhr.mixed.mm");
                {
                    manaMenu.AddManaLimiter(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.Mixed);
                    manaMenu.AddManaLimiter(Enumerations.Skills.E, Orbwalking.OrbwalkingMode.Mixed);
                    
                    harassMenu.AddSubMenu(manaMenu);
                }

                harassMenu.AddSkill(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.Mixed);
                harassMenu.AddSkill(Enumerations.Skills.E, Orbwalking.OrbwalkingMode.Mixed);

                harassMenu.AddBool("dz191.vhr.mixed.q.2wstacks", "Only Q if 2W Stacks on Target").SetTooltip("Will Q for 3rd proc only. Enable if you want AA AA Q AA");
                harassMenu.AddBool("dz191.vhr.mixed.ethird", "Use E for Third Proc").SetTooltip("Uses E for 3rd W proc. Enable if you want AA Q AA E");

                RootMenu.AddSubMenu(harassMenu);
            }

            var farmMenu = new Menu("[VHR] Farm", "dz191.vhr.farm");
            {
                farmMenu.AddSkill(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.LaneClear).SetTooltip("Q Laneclear");
                farmMenu.AddManaLimiter(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.LaneClear, 45, true);
                farmMenu.AddSkill(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.LastHit).SetTooltip("Q Lasthit");
                farmMenu.AddManaLimiter(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.LastHit, 45, true);
                farmMenu.AddBool("dz191.vhr.farm.condemnjungle", "Use E to condemn jungle mobs", true).SetTooltip("Use Condemn against jungle creeps");
                farmMenu.AddBool("dz191.vhr.farm.qjungle", "Use Q against jungle mobs", true).SetTooltip("Use Tumble in the Jungle");

                RootMenu.AddSubMenu(farmMenu);
            }

            var miscMenu = new Menu("[VHR] Misc", "dz191.vhr.misc");
            {
                var miscQMenu = new Menu("Misc - Q (Tumble)", "dz191.vhr.misc.tumble");
                {
                    miscQMenu.AddStringList("dz191.vhr.misc.condemn.qlogic", "Q Logic", new[] { "Reborn", "Normal", "Kite melees", "Kurisu" }).SetTooltip("The Tumble Method. Reborn = Safest & Besto");
                    miscQMenu.AddBool("dz191.vhr.mixed.mirinQ", "Q to Wall when Possible (Mirin Mode)", true).SetTooltip("Will Q to walls when possible for really fast bursts!");
                    miscQMenu.AddBool("dz191.vhr.misc.tumble.smartq", "Try to QE when possible").SetTooltip("Will try to do the Tumble + Condemn combo when possible"); //Done
                    miscQMenu.AddKeybind("dz191.vhr.misc.tumble.noaastealthex", "Don't AA while stealthed", new Tuple<uint, KeyBindType>('K', KeyBindType.Toggle)).SetTooltip("Will not AA while you are in Ult+Q"); //Done
                    miscQMenu.AddSlider("dz191.vhr.misc.tumble.noaastealthex.hp", "^ Only if HP % < x", new Tuple<int, int, int>(35, 0, 100)).SetTooltip("If true it will not Q into 2 or more enemies"); //done
                    miscQMenu.AddBool("dz191.vhr.misc.tumble.ijava", "iJava Stealth").SetTooltip("If you are not iJava, Don't press me :^)"); //Done
                    miscQMenu.AddSlider("dz191.vhr.misc.tumble.noaastealth.duration", "Duration to wait (iJava Only)", new Tuple<int, int, int>(700, 0, 1000));
                    miscQMenu.AddBool("dz191.vhr.misc.tumble.noqenemies", "Don't Q into enemies").SetTooltip("If true it will not Q into 2 or more enemies"); //done
                    miscQMenu.AddBool("dz191.vhr.misc.tumble.noqenemies.old", "Use Old Don't Q into enemies").SetTooltip("Uses the old algorithm."); //done
                    miscQMenu.AddBool("dz191.vhr.misc.tumble.dynamicqsafety", "Use dynamic Q Safety Distance").SetTooltip("Use the enemy AA range as the 'Don't Q into enemies' safety distance?"); //done
                    miscQMenu.AddBool("dz191.vhr.misc.tumble.qspam", "Ignore Q checks").SetTooltip("Ignores 'Safe Q' and 'Don't Q into enemies' checks"); //Done
                    miscQMenu.AddBool("dz191.vhr.misc.tumble.qinrange", "Q For KS", true).SetTooltip("Uses Q to KS by Qing in range if you can kill with Q + AA"); //Done
                    miscQMenu.AddSlider(
                        "dz191.vhr.misc.tumble.noaa.enemies", "Min Enemies for No AA Stealth",
                        new Tuple<int, int, int>(3, 2, 5));
                    miscQMenu.AddBool("dz191.vhr.misc.tumble.autoQR", "Automatically use Q after R", true).SetTooltip("Automatically uses Q after R if enabled"); //Done

                    miscMenu.AddSubMenu(miscQMenu);
                }

                var miscEMenu = new Menu("Misc - E (Condemn)", "dz191.vhr.misc.condemn");
                {
                    miscEMenu.AddStringList("dz191.vhr.misc.condemn.condemnmethod", "Condemn Method",
                        new[] { "VH Revolution", "VH Reborn", "Marksman/Gosu", "Shine#" }).SetTooltip("The condemn method. Recommended: Revolution > Shine/Reborn > Marksman");

                    miscEMenu.AddSlider("dz191.vhr.misc.condemn.pushdistance", "E Push Distance",
                        new Tuple<int, int, int>(420, 350, 470)).SetTooltip("The E Knockback distance the script uses. Recommended: 400-430");

//.........这里部分代码省略.........
开发者ID:DZ191,项目名称:LeagueSharp,代码行数:101,代码来源:MenuGenerator.cs


注:本文中的LeagueSharp.Common.Menu.AddManaLimiter方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。