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


C# Menu.AddStringList方法代码示例

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


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

示例1: LanguageAdaptor

        /// <summary>
        /// Initializes a new instance of the <see cref="LanguageAdaptor"/> class.
        /// </summary>
        public LanguageAdaptor()
        {
            var builtStringArray = Languages.Select(language => language.GetLanguage()).ToArray();

            var LanguageMenu = new Menu("[SOLO] Language", "solo.vayne.language");
            {
                LanguageMenu.AddStringList("solo.vayne.language.current", "Language:", builtStringArray);
                LanguageMenu.AddBool("solo.vayne.language.select", "Select!").ValueChanged += delegate
                {
                    var language = GetCurrentlySelectedLanguage();
                    if (language != null)
                    {
                        ChangeLanguage(language);
                    }
                    
                    LeagueSharp.Common.Utility.DelayAction.Add(250, () =>
                    {
                        LanguageMenu.Item("solo.vayne.language.select").SetValue(false);
                        Game.PrintChat(
                            $"<b>[<font color='#009aff'>SOLO</font>] Changed language to <font color='#009aff'>{GetCurrentlySelectedLanguage().GetLanguage()}</font></b>");
                    });
                };
            }
            Variables.Menu.AddSubMenu(LanguageMenu);
        }
开发者ID:luizssn,项目名称:LeagueSharp,代码行数:28,代码来源:LanguageAdaptor.cs

示例2: CreateMenu

 /// <summary>
 /// Creates the menu.
 /// </summary>
 public override void CreateMenu()
 {
     try
     {
         var RootMenu = Variables.Menu;
         moduleMenu = RootMenu.AddSubMenu("Wards Tracker", "dz191.dza.ward");
         {
             moduleMenu.AddBool("dz191.dza.ward.track", "Track wards");
             moduleMenu.AddKeybind("dz191.dza.ward.extrainfo", "Show Extra informations", new Tuple<uint, KeyBind.BindTypes>('Z', KeyBind.BindTypes.HoldActive));
             moduleMenu.AddStringList("dz191.dza.ward.type", "Drawing Type", new []{"Circle", "Polygon"}, 1);
             moduleMenu.AddSlider("dz191.dza.ward.sides", "Sides of Polygon (Higher = Laggier)", new Tuple<int, int, int>(4, 3, 12));
         }
     }
     catch (Exception e)
     {
         LogHelper.AddToLog(new LogItem("WardTracker_Base", e));
     }
 }
开发者ID:CainWolf,项目名称:PortAIO,代码行数:21,代码来源:WardTrackerBase.cs

示例3: CreateMenu

 /// <summary>
 /// Creates the menu.
 /// </summary>
 public override void CreateMenu()
 {
     try
     {
         var RootMenu = Variables.Menu;
         var moduleMenu = new Menu("Wards Tracker", "dz191.dza.ward");
         {
             moduleMenu.AddBool("dz191.dza.ward.track", "Track wards").SetTooltip("Tracks Wards, Pinks, Shrooms etc.");
             moduleMenu.AddKeybind("dz191.dza.ward.extrainfo", "Show Extra informations", new Tuple<uint, KeyBindType>('Z', KeyBindType.Press)).SetTooltip("Click the button and hover a ward polygon for more info.");
             moduleMenu.AddStringList("dz191.dza.ward.type", "Drawing Type", new []{"Circle", "Polygon"}, 1).SetTooltip("The drawing type.");
             moduleMenu.AddSlider("dz191.dza.ward.sides", "Sides of Polygon (Higher = Laggier)", new Tuple<int, int, int>(4, 3, 12)).SetTooltip("The sides of the polygon the wards have drawn around.");
             RootMenu.AddSubMenu(moduleMenu);
         }
     }
     catch (Exception e)
     {
         LogHelper.AddToLog(new LogItem("WardTracker_Base", e));
     }
 }
开发者ID:luizssn,项目名称:LeagueSharp,代码行数:22,代码来源:WardTrackerBase.cs

示例4: OnLoad

        public void OnLoad(Menu menu)
        {
            var comboMenu = new Menu(ObjectManager.Player.ChampionName + ": Combo", "dzaio.champion.orianna.combo");
            {
                comboMenu.AddModeMenu(ModesMenuExtensions.Mode.Combo, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E, SpellSlot.R }, new[] { true, true, true, true });
                //comboMenu.AddNoUltiMenu(false);
                menu.AddSubMenu(comboMenu);
            }

            var mixedMenu = new Menu(ObjectManager.Player.ChampionName + ": Mixed", "dzaio.champion.orianna.harrass");
            {
                mixedMenu.AddModeMenu(ModesMenuExtensions.Mode.Harrass, new[] { SpellSlot.Q, SpellSlot.W }, new[] { true, true, true });
                mixedMenu.AddSlider("dzaio.champion.orianna.mixed.mana", "Min Mana % for Harass", 30, 0, 100);
                menu.AddSubMenu(mixedMenu);
            }

            var farmMenu = new Menu(ObjectManager.Player.ChampionName + ": Farm", "dzaio.champion.orianna.farm");
            {
                farmMenu.AddModeMenu(ModesMenuExtensions.Mode.Laneclear, new[] { SpellSlot.Q, SpellSlot.W }, new[] { true, true });

                farmMenu.AddSlider("dzaio.champion.orianna.farm.w.min", "Min Minions for W", 2, 1, 6);
                farmMenu.AddSlider("dzaio.champion.orianna.farm.mana", "Min Mana % for Farm", 30, 0, 100);
                menu.AddSubMenu(farmMenu);
            }

            var extraMenu = new Menu(ObjectManager.Player.ChampionName + ": Extra", "dzaio.champion.orianna.extra");
            {
                extraMenu.AddStringList("dzaio.champion.orianna.extra.interrupter.mode", "Interrupter Mode", new []{"Q->R", "Only R"});
                extraMenu.AddBool("dzaio.champion.orianna.extra.interrupter", "Interrupter", true);
            }

            Variables.Spells[SpellSlot.Q].SetSkillshot(0f, 110f, 1425f, false, SkillshotType.SkillshotLine);
            Variables.Spells[SpellSlot.E].SetSkillshot(0.25f, 80f, 1700f, true, SkillshotType.SkillshotLine);
            CommandQueue.InitEvents();
            BallManager = new PetManager();
            BallManager.OnLoad();
        }
开发者ID:DZ191,项目名称:LeagueSharp,代码行数:37,代码来源:Orianna.cs

示例5: 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

示例6: 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

示例7: 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

示例8: Generate

        public static void Generate()
        {
            Variables.Menu = new Menu("iDZEzreal 3.0", "ezreal", true);
            var rootMenu = Variables.Menu;
            var owMenu = new Menu("[Ez] Orbwalker", "ezreal.orbwalker");
            {
                Variables.Orbwalker = new Orbwalking.Orbwalker(owMenu);
                rootMenu.AddSubMenu(owMenu);
            }

            var comboMenu = new Menu("[Ez] Combo", "ezreal.combo");
            {
                comboMenu.AddBool("ezreal.combo.q", "Use Q", true);
                comboMenu.AddBool("ezreal.combo.w", "Use W", true);
                comboMenu.AddBool("ezreal.combo.r", "Use R", true);
                comboMenu.AddSlider("ezreal.combo.r.min", "Min Enemies", 2, 1, 5);
                rootMenu.AddSubMenu(comboMenu);
            }

            var mixedMenu = new Menu("[Ez] Harass", "ezreal.mixed");
            {
                mixedMenu.AddBool("ezreal.mixed.q", "Use Q", true);
                mixedMenu.AddBool("ezreal.mixed.w", "Use W", true);
                mixedMenu.AddSlider("ezreal.mixed.mana", "Min Mana", 45, 0, 100);
                rootMenu.AddSubMenu(mixedMenu);
            }

            var farmMenu = new Menu("[Ez] Farm", "ezreal.farm");
            {
                farmMenu.AddBool("ezreal.farm.q", "Use Q", true);
                rootMenu.AddSubMenu(farmMenu);
            }

            var miscMenu = new Menu("[Ez] Misc", "ezreal.misc");
            {
                miscMenu.AddStringList("ezreal.misc.hitchance", "Hitchance",
                    new[] {"Low", "Medium", "High", "Very High"}, 3);
                miscMenu.AddBool("ezreal.misc.gapcloser", "Anti Gap Closer", true);
                miscMenu.AddBool("ezreal.misc.selfWE", "Self W/E - Beta AF", true);
                miscMenu.AddKeybind("ezreal.misc.semimanualr", "Semimanual R", new Tuple<uint, KeyBindType>('U', KeyBindType.Press));

                rootMenu.AddSubMenu(miscMenu);
            }

            var moduleMenu = new Menu("[Ez] Modules", "ezreal.modules");
            {
                foreach (var module in Variables.Modules)
                {
                    moduleMenu.AddBool("ezreal.modules." + module.GetName().ToLowerInvariant(), "" + module.GetName());
                }
                rootMenu.AddSubMenu(moduleMenu);
            }

            var drawingsMenu = new Menu("[Ez] Drawings", "ezreal.drawings");
            {
                drawingsMenu.AddBool("ezreal.drawings.q", "Q Draw", true);
                drawingsMenu.AddBool("ezreal.drawings.w", "W Draw", true);

                rootMenu.AddSubMenu(drawingsMenu);
            }
            rootMenu.AddToMainMenu();
        }
开发者ID:DZ191,项目名称:LeagueSharp,代码行数:62,代码来源:MenuGenerator.cs


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