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


C# Menu.AddManaManager方法代码示例

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


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

示例1: OnLoad

 public void OnLoad(Menu menu)
 {
     if (!DZAIO.IsDebug)
     {
         Game.PrintChat("Kayle is still WIP. :)");
         return;
     }
     var cName = ObjectManager.Player.ChampionName;
     var comboMenu = new Menu(cName + " - Combo", "Combo");
     comboMenu.AddModeMenu(Mode.Combo, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E, SpellSlot.R }, new[] { true, true, true, true });
     comboMenu.AddManaManager(Mode.Combo, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E, SpellSlot.R }, new[] { 30, 35, 20, 5 });
     menu.AddSubMenu(comboMenu);
     var harrassMenu = new Menu(cName + " - Harrass", "Harrass");
     harrassMenu.AddModeMenu(Mode.Harrass, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E }, new[] { true, true, false });
     harrassMenu.AddManaManager(Mode.Harrass, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E }, new[] { 30, 35, 20 });
     menu.AddSubMenu(harrassMenu);
     var farmMenu = new Menu(cName + " - Farm", "Farm");
     farmMenu.AddModeMenu(Mode.Farm, new[] { SpellSlot.Q }, new[] { true });
     farmMenu.AddManaManager(Mode.Farm, new[] { SpellSlot.Q }, new[] { 40 });
     menu.AddSubMenu(farmMenu);
     var miscMenu = new Menu(cName + " - Misc", "Misc");
     {
         miscMenu.AddItem(new MenuItem("AntiGPW", "W AntiGapcloser").SetValue(true));
         miscMenu.AddItem(new MenuItem("AntiGPE", "E AntiGapcloser").SetValue(true));
     }
 }
开发者ID:GodLS,项目名称:LSharpWIP,代码行数:26,代码来源:Kayle.cs

示例2: OnLoad

        public void OnLoad(Menu menu)
        {
            if (!DZAIO.IsDebug)
            {
                Game.PrintChat("Vel'Koz is still WIP. :)");
                return;
            }
            var cName = ObjectManager.Player.ChampionName;
            var comboMenu = new Menu(cName + " - Combo", "dzaio.velkoz.combo");
            comboMenu.AddModeMenu(Mode.Combo, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E, SpellSlot.R }, new[] { true, true, true, true });

            comboMenu.AddManaManager(Mode.Combo, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E, SpellSlot.R }, new[] { 30, 35, 20, 5 });

            var skillOptionMenu = new Menu("Skill Options", "dzaio.velkoz.combo.skilloptions");
            comboMenu.AddSubMenu(skillOptionMenu);

            menu.AddSubMenu(comboMenu);
            var harrassMenu = new Menu(cName + " - Harrass", "dzaio.velkoz.harass");
            harrassMenu.AddModeMenu(Mode.Harrass, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E }, new[] { true, true, false });
            harrassMenu.AddManaManager(Mode.Harrass, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E }, new[] { 30, 35, 20 });
            menu.AddSubMenu(harrassMenu);
            var farmMenu = new Menu(cName + " - Farm", "dzaio.velkoz.farm");
            farmMenu.AddModeMenu(Mode.Farm, new[] { SpellSlot.E }, new[] { false });
            farmMenu.AddManaManager(Mode.Farm, new[] { SpellSlot.E }, new[] { 35 });
            menu.AddSubMenu(farmMenu);
            var miscMenu = new Menu(cName + " - Misc", "dzaio.velkoz.misc");
            {
            }
            miscMenu.AddHitChanceSelector();
            menu.AddSubMenu(miscMenu);
            var drawMenu = new Menu(cName + " - Drawings", "dzaio.velkoz.drawing");
            drawMenu.AddDrawMenu(_spells, Color.Aquamarine);
            menu.AddSubMenu(drawMenu);
        }
开发者ID:DZ191,项目名称:LeagueSharp,代码行数:34,代码来源:VelKoz.cs

示例3: OnLoad

        public void OnLoad(Menu menu)
        {
            var cName = ObjectManager.Player.ChampionName;
            var comboMenu = new Menu(cName + " - Combo", "dzaio.caitlyn.combo");
            comboMenu.AddModeMenu(Mode.Combo, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E, SpellSlot.R }, new[] { true, true, true, true });

            comboMenu.AddManaManager(Mode.Combo, new[] { SpellSlot.Q,SpellSlot.W, SpellSlot.E, SpellSlot.R }, new[] { 30, 30, 30, 5 });

            var skillOptionMenu = new Menu("Skill Options", "dzaio.caitlyn.combo.skilloptions");
            comboMenu.AddSubMenu(skillOptionMenu);

            menu.AddSubMenu(comboMenu);
            var harrassMenu = new Menu(cName + " - Harrass", "dzaio.caitlyn.harass");
            harrassMenu.AddModeMenu(Mode.Harrass, new[] { SpellSlot.Q }, new[] { true });
            harrassMenu.AddManaManager(Mode.Harrass, new[] { SpellSlot.Q }, new[] { 30 });
            menu.AddSubMenu(harrassMenu);
            var farmMenu = new Menu(cName + " - Farm", "dzaio.caitlyn.farm");
            farmMenu.AddModeMenu(Mode.Laneclear, new[] { SpellSlot.Q }, new[] { false });
            farmMenu.AddManaManager(Mode.Laneclear, new[] { SpellSlot.Q }, new[] { 35 });
            farmMenu.AddItem(
                new MenuItem("dzaio.caitlyn.farm.minminionsq", "Min. Minions for Q").SetValue(new Slider(3, 1, 6)));
            menu.AddSubMenu(farmMenu);
            var miscMenu = new Menu(cName + " - Misc", "dzaio.caitlyn.misc");
            {
                miscMenu.AddItem(new MenuItem("dzaio.caitlyn.antigp", "E Anti Gapcloser").SetValue(true));
                miscMenu.AddItem(new MenuItem("dzaio.caitlyn.interrupt", "W Interrupter").SetValue(true));
                miscMenu.AddItem(new MenuItem("dzaio.caitlyn.dashtomouse", "Dash to mouse").SetValue(new KeyBind("S".ToCharArray()[0],KeyBindType.Press)));
                miscMenu.AddItem(new MenuItem("dzaio.caitlyn.manualr", "Manual R").SetValue(new KeyBind("Z".ToCharArray()[0], KeyBindType.Press)));
            }
            miscMenu.AddHitChanceSelector();
            menu.AddSubMenu(miscMenu);
            var drawMenu = new Menu(cName + " - Drawings", "dzaio.caitlyn.drawing");
            drawMenu.AddDrawMenu(_spells, Color.Aquamarine);
            menu.AddSubMenu(drawMenu);
        }
开发者ID:GodLS,项目名称:LSharpWIP,代码行数:35,代码来源:Caitlyn.cs

示例4: OnLoad

        public void OnLoad(Menu menu)
        {
            var cName = ObjectManager.Player.ChampionName;
            var comboMenu = new Menu(cName + " - Combo", "dzaio.lux.combo");
            comboMenu.AddModeMenu(Mode.Combo, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E, SpellSlot.R }, new[] { true, true, true, true });

            comboMenu.AddManaManager(Mode.Combo, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E, SpellSlot.R }, new[] { 30, 35, 20, 5 });

            var skillOptionMenu = new Menu("Skill Options", "dzaio.lux.combo.skilloptions");
           skillOptionMenu.AddItem(new MenuItem("dzaio.lux.combo.skilloptions.eafterr", "Detonate E After R").SetValue(true));
           comboMenu.AddSubMenu(skillOptionMenu);

            menu.AddSubMenu(comboMenu);
            var harrassMenu = new Menu(cName + " - Harrass", "dzaio.lux.harrass");
            harrassMenu.AddModeMenu(Mode.Harrass, new[] { SpellSlot.Q, SpellSlot.E }, new[] { true, false });
            harrassMenu.AddManaManager(Mode.Harrass, new[] { SpellSlot.Q, SpellSlot.E }, new[] { 30, 20 });
            menu.AddSubMenu(harrassMenu);
            var farmMenu = new Menu(cName + " - Farm", "dzaio.lux.farm");
            farmMenu.AddModeMenu(Mode.Laneclear, new[] { SpellSlot.E }, new[] { false });
            farmMenu.AddManaManager(Mode.Laneclear, new[] { SpellSlot.E }, new[] { 35 });
            menu.AddSubMenu(farmMenu);
            var miscMenu = new Menu(cName + " - Misc", "dzaio.lux.misc");
            {
                miscMenu.AddItem(new MenuItem("dzaio.lux.misc.antigapcloserq", "Q AntiGapcloser").SetValue(true));
            }
            miscMenu.AddHitChanceSelector();
            menu.AddSubMenu(miscMenu);
            var drawMenu = new Menu(cName + " - Draw", "dzaio.lux.draw");
            drawMenu.AddDrawMenu(_spells,Color.LightCoral);
            menu.AddSubMenu(drawMenu);

        }
开发者ID:luizssn,项目名称:LeagueSharp,代码行数:32,代码来源:Lux.cs

示例5: OnLoad

        public void OnLoad(Menu menu)
        {
            var cName = ObjectManager.Player.ChampionName;
            var comboMenu = new Menu(cName + " - Combo", "dzaio.graves.combo");
            comboMenu.AddModeMenu(Mode.Combo, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E, SpellSlot.R }, new[] { true, true, true, true });
            comboMenu.AddManaManager(Mode.Combo, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E, SpellSlot.R }, new[] { 30, 35, 20, 5 });
            var comboOptions = new Menu("Skills Options", "dzaio.graves.combo.skilloptions");
            {
                comboOptions.AddItem(new MenuItem("dzaio.graves.combo.minwenemiesc", "Only W if hit x enemies").SetValue(new Slider(2, 1, 5)));
                comboOptions.AddItem(new MenuItem("dzaio.graves.combo.emaxrange", "E Distance").SetValue(new Slider(350, 1, 425)));
                comboOptions.AddItem(new MenuItem("dzaio.graves.combo.ecancel", "Use E to cancel Q & R animation").SetValue(true));
            }
            comboMenu.AddSubMenu(comboOptions);
            menu.AddSubMenu(comboMenu);
            var harrassMenu = new Menu(cName + " - Harrass", "dzaio.graves.harass");
            harrassMenu.AddModeMenu(Mode.Harrass, new[] { SpellSlot.Q, SpellSlot.W }, new[] { true, true });
            harrassMenu.AddManaManager(Mode.Harrass, new[] { SpellSlot.Q, SpellSlot.W }, new[] { 30, 35 });
            harrassMenu.AddItem(new MenuItem("dzaio.graves.harass.minwenemiesh", "Only W if hit x enemies").SetValue(new Slider(2, 1, 5)));
            menu.AddSubMenu(harrassMenu);
            var farmMenu = new Menu(cName + " - Farm", "dzaio.graves.farm");
            farmMenu.AddModeMenu(Mode.Farm, new[] { SpellSlot.Q }, new[] { true });
            farmMenu.AddManaManager(Mode.Farm, new[] { SpellSlot.Q }, new[] { 40 });
            menu.AddSubMenu(farmMenu);
            var miscMenu = new Menu(cName + " - Misc", "GravesMisc");
            {
                miscMenu.AddItem(new MenuItem("dzaio.graves.misc.antigpw", "W AntiGapcloser").SetValue(true));
                miscMenu.AddItem(new MenuItem("dzaio.graves.misc.antigpe", "E AntiGapcloser").SetValue(true));
                miscMenu.AddItem(new MenuItem("dzaio.graves.misc.manualr", "Manual R").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));
            }
            miscMenu.AddHitChanceSelector();
            menu.AddSubMenu(miscMenu);

            var drawMenu = new Menu(cName + " - Drawings", "dzaio.graves.drawings");
            drawMenu.AddDrawMenu(_spells, Color.LightSalmon);

            menu.AddSubMenu(drawMenu);

        }
开发者ID:ShineSharp,项目名称:LeagueSharp-5,代码行数:38,代码来源:Graves.cs

示例6: OnLoad

        public void OnLoad(Menu menu)
        {
            var cName = ObjectManager.Player.ChampionName;

            var comboMenu = new Menu(cName + " - Combo", "dzaio.zilean.combo");
            comboMenu.AddModeMenu(Mode.Combo, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E, SpellSlot.R }, new[] { true, true, true, true });
            comboMenu.AddManaManager(Mode.Combo, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E, SpellSlot.R }, new[] { 30, 35, 20, 5 });
            

            menu.AddSubMenu(comboMenu);

            var harrassMenu = new Menu(cName + " - Harrass", "dzaio.zilean.harass");
            harrassMenu.AddModeMenu(Mode.Harrass, new[] { SpellSlot.Q, SpellSlot.W }, new[] { true, true });
            harrassMenu.AddManaManager(Mode.Harrass, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E }, new[] { 30, 35, 20 });

            menu.AddSubMenu(harrassMenu);

            var farmMenu = new Menu(cName + " - Farm", "dzaio.zilean.farm");
            farmMenu.AddModeMenu(Mode.Farm, new[] { SpellSlot.Q }, new[] { true });
            farmMenu.AddManaManager(Mode.Farm, new[] { SpellSlot.Q }, new[] { 40 });

            menu.AddSubMenu(farmMenu);

            var miscMenu = new Menu(cName + " - Misc", "dzaio.zilean.misc");
            {
                miscMenu.AddItem(new MenuItem("dzaio.champion.zilean.antigpe", "E AntiGapcloser").SetValue(true));
                miscMenu.AddItem(new MenuItem("dzaio.champion.zilean.autoult", "Auto Ult").SetValue(true));
                miscMenu.AddItem(new MenuItem("dzaio.champion.zilean.autoult.mana", "Auto Ult Mana %").SetValue(new Slider(10)));
            }

            var drawMenu = new Menu(cName + " - Drawings", "dzaio.champion.zilean.drawings");
            drawMenu.AddDrawMenu(_spells,Color.LightCoral);

            menu.AddNoUltiMenu(true);

            menu.AddSubMenu(drawMenu);
        }
开发者ID:ShineSharp,项目名称:LeagueSharp-5,代码行数:37,代码来源:Zilean.cs

示例7: SetUpMenu

        /// <summary>
        /// Sets up the Menu
        /// </summary>
        private static void SetUpMenu()
        {
            Menu = new Menu("VayneHunter Reborn", "VHR", true);

            var owMenu = new Menu("[VHR] Orbwalker", "dz191.vhr.orbwalker");
            Orbwalker = new Orbwalking.Orbwalker(owMenu);
            Menu.AddSubMenu(owMenu);

               // var tgMenu = new Menu("[VHR] Target Selector", "dz191.vhr.targetselector");
            //TargetSelector.AddToMenu(tgMenu);
            //Menu.AddSubMenu(tgMenu);
            CustomTargetSelector.OnLoad(Menu);

            var comboMenu = new Menu("[VHR] Combo", "dz191.vhr.combo");
            comboMenu.AddModeMenu(Mode.Combo, new[] { SpellSlot.Q, SpellSlot.E, SpellSlot.R }, new[] { true, true, false });
            comboMenu.AddManaManager(Mode.Combo, new[] { SpellSlot.Q, SpellSlot.E, SpellSlot.R }, new[] { 0, 0, 0 });
            comboMenu.AddItem(new MenuItem("dz191.vhr.combo.r.minenemies", "Min R Enemies").SetValue(new Slider(2, 1, 5)));
            Menu.AddSubMenu(comboMenu);

            var harassMenu = new Menu("[VHR] Harass", "dz191.vhr.harass");
            harassMenu.AddModeMenu(Mode.Harrass, new[] { SpellSlot.Q, SpellSlot.E }, new[] { true, true });
            harassMenu.AddManaManager(Mode.Harrass, new[] { SpellSlot.Q, SpellSlot.E }, new[] { 25, 20 });
            Menu.AddSubMenu(harassMenu);

            var farmMenu = new Menu("[VHR] Farm", "dz191.vhr.farm");
            farmMenu.AddModeMenu(Mode.Farm, new[] { SpellSlot.Q }, new[] { true, true });
            farmMenu.AddManaManager(Mode.Farm, new[] { SpellSlot.Q }, new[] { 40 });
            Menu.AddSubMenu(farmMenu);

            var miscMenu = new Menu("[VHR] Misc", "dz191.vhr.misc");
            var miscQMenu = new Menu("Misc - Tumble", "dz191.vhr.misc.tumble");
            {
                miscQMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.qlogic", "Q Logic").SetValue(new StringList(new[] { "Normal", "Away from enemies" })));
                miscQMenu.AddItem(new MenuItem("dz191.vhr.misc.tumble.smartq", "Try to QE First").SetValue(false));
                miscQMenu.AddItem(new MenuItem("dz191.vhr.misc.tumble.noaastealth", "Don't AA while stealthed").SetValue(false));
                miscQMenu.AddItem(new MenuItem("dz191.vhr.misc.tumble.noqenemies", "Don't Q into enemies").SetValue(false));
                miscQMenu.AddItem(new MenuItem("dz191.vhr.misc.tumble.dynamicqsafety", "Dynamic Q Safety Distance").SetValue(false));
                miscQMenu.AddItem(new MenuItem("dz191.vhr.misc.tumble.qspam", "Ignore Q checks").SetValue(false));
                miscQMenu.AddItem(new MenuItem("dz191.vhr.misc.tumble.qinrange", "Q In Range if Enemy Health < Q+AA Dmg").SetValue(true));
                miscQMenu.AddItem(new MenuItem("dz191.vhr.misc.tumble.walltumble", "Tumble Over Wall (WallTumble)").SetValue(new KeyBind("Y".ToCharArray()[0], KeyBindType.Press)));
                miscQMenu.AddItem(new MenuItem("dz191.vhr.misc.tumble.mirin", "Enable this if you're Mirin").SetValue(false));
            }

            var miscEMenu = new Menu("Misc - Condemn", "dz191.vhr.misc.condemn");
            {
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.condemnmethod", "Condemn Method").SetValue(new StringList(new[] { "VH Reborn", "Marksman/Gosu", "VH Rework" })));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.pushdistance", "E Push Distance").SetValue(new Slider(375, 350, 500)));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.enextauto", "E Next Auto").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Toggle)));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.onlystuncurrent", "Only stun current target").SetValue(false));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.autoe", "Auto E").SetValue(false));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.eks", "Smart E Ks").SetValue(false));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.noeaa", "Don't E if Target can be killed in X AA").SetValue(new Slider(1, 0, 4)));

                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.trinketbush", "Trinket Bush on Condemn").SetValue(true));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.ethird", "E 3rd proc in Harass").SetValue(false));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.lowlifepeel", "Peel with E when low").SetValue(false));

                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.condemnturret", "Try to Condemn to turret").SetValue(false));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.condemnflag", "Condemn to J4 flag").SetValue(true));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.noeturret", "No E Under enemy turret").SetValue(true));
            }

            var miscGeneralSubMenu = new Menu("Misc - General", "dz191.vhr.misc.general");
            {
                miscGeneralSubMenu.AddItem(new MenuItem("dz191.vhr.misc.general.antigp", "Anti Gapcloser")).SetValue(true);
                miscGeneralSubMenu.AddItem(new MenuItem("dz191.vhr.misc.general.interrupt", "Interrupter").SetValue(true));
                miscGeneralSubMenu.AddItem(new MenuItem("dz191.vhr.misc.general.antigpdelay", "Anti Gapcloser Delay (ms)")).SetValue(new Slider(0,0,1000));
                miscGeneralSubMenu.AddItem(new MenuItem("dz191.vhr.misc.general.specialfocus", "Focus targets with 2 W marks").SetValue(false));
                miscGeneralSubMenu.AddItem(new MenuItem("dz191.vhr.misc.general.reveal", "Stealth Reveal (Pink Ward)").SetValue(false));
                miscGeneralSubMenu.AddItem(new MenuItem("dz191.vhr.misc.general.disablemovement", "Disable Orbwalker Movement").SetValue(false));
                miscGeneralSubMenu.AddItem(new MenuItem("dz191.vhr.misc.general.permashow", "PermaShow").SetShared().SetValue(true)).ValueChanged += (s, args) =>
                {
                    if (args.GetNewValue<bool>())
                    {
                        Menu.Item("dz191.vhr.misc.condemn.enextauto").Permashow(true, "E Next Auto");
                    }
                    else
                    {
                        Menu.Item("dz191.vhr.misc.condemn.enextauto").Permashow(false);
                    }
                };
            }
            miscMenu.AddSubMenu(miscQMenu);
            miscMenu.AddSubMenu(miscEMenu);
            miscMenu.AddSubMenu(miscGeneralSubMenu);
            Menu.AddSubMenu(miscMenu);

            AntiGP.BuildMenu(Menu);

            var drawMenu = new Menu("[VHR] Drawing", "dz191.vhr.drawing");
            drawMenu.AddDrawMenu(_spells, Color.Red);
            drawMenu.AddItem(new MenuItem("dz191.vhr.drawing.drawstun", "Draw Stunnable").SetValue(true));
            drawMenu.AddItem(new MenuItem("dz191.vhr.drawing.drawspots", "Draw Spots").SetValue(true));
            Menu.AddSubMenu(drawMenu);

            Menu.AddItem(new MenuItem("dz191.vhr.info", "VHR by Corey KappaHD v." + Assembly.GetExecutingAssembly().GetName().Version));

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

示例8: CreateMenu

        /// <summary>
        ///     TODO The create menu.
        /// </summary>
        private static void CreateMenu()
        {
            Menu = new Menu("iDzLucian", "com.idzlucian", true);

            var orbMenu = new Menu("Lucian - Orbwalker", "com.idzlucian.orbwalker");
            orbwalker = new Orbwalking.Orbwalker(orbMenu);
            Menu.AddSubMenu(orbMenu);

            var tsMenu = new Menu("Lucian - Target Selector", "com.idzlucian.ts");
            TargetSelector.AddToMenu(tsMenu);
            Menu.AddSubMenu(tsMenu);

            var comboMenu = new Menu("Lucian - Combo", "com.idzlucian.combo");
            comboMenu.AddModeMenu(
                Mode.Combo, 
                new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E }, 
                new[] { true, true, false, false });
            comboMenu.AddManaManager(Mode.Combo, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E }, new[] { 35, 35, 25 });

            var skillOptionsCombo = new Menu("Skill Options", "com.idzlucian.combo.skilloptions");
            {
                skillOptionsCombo.AddItem(
                    new MenuItem("com.idzlucian.skilloptions.weave", "Spell Weaving").SetValue(true));
                skillOptionsCombo.AddItem(
                    new MenuItem("com.idzlucian.combo.useextendedq", "Use Extended Q Combo").SetValue(true));
                skillOptionsCombo.AddItem(
                    new MenuItem("com.idzlucian.harass.useextendedq", "Use Extended Q Harass").SetValue(true));
                skillOptionsCombo.AddItem(new MenuItem("com.idzlucian.combo.useEQSteal", "Use EQ KS").SetValue(true));
            }

            comboMenu.AddSubMenu(skillOptionsCombo);

            Menu.AddSubMenu(comboMenu);

            var harassMenu = new Menu("Lucian - Harass", "com.idzlucian.harass");
            harassMenu.AddModeMenu(Mode.Harass, new[] { SpellSlot.Q, SpellSlot.W }, new[] { true, true });
            harassMenu.AddManaManager(Mode.Harass, new[] { SpellSlot.Q, SpellSlot.W }, new[] { 35, 35 });

            // harassMenu.AddItem(
            // new MenuItem("com.idzlucian.harass.useextendedq", "Use Extended Q Harass").SetValue(true));
            Menu.AddSubMenu(harassMenu);

            var farmMenu = new Menu("Lucian - Farm", "com.idzlucian.farm");
            farmMenu.AddModeMenu(Mode.Laneclear, new[] { SpellSlot.Q }, new[] { true });
            farmMenu.AddManaManager(Mode.Laneclear, new[] { SpellSlot.Q }, new[] { 35 });
            var farmOptions = new Menu("Farm Options", "com.idzlucian.farm.farm");
            {
                farmOptions.AddItem(
                    new MenuItem("com.idzlucian.farm.q.lc.minhit", "Min Minions for Q LC").SetValue(new Slider(2, 1, 6)));
            }

            farmMenu.AddSubMenu(farmOptions);

            Menu.AddSubMenu(farmMenu);

            var miscMenu = new Menu("Lucian - Misc", "com.idzlucian.misc");
            {
                miscMenu.AddHitChanceSelector();
                miscMenu.AddItem(
                    new MenuItem("com.idzlucian.misc.antigpe", "Use E Against enemy gapclosers").SetValue(false));
                miscMenu.AddItem(new MenuItem("com.idzlucian.misc.debug", "Debug").SetValue(false));
            }
            var noExtQOnMenu = new Menu("Misc - Don't Use Extended Q Harass On", "com.idzlucian.misc.noextq");
            {
                foreach (var Hero in HeroManager.Enemies)
                {
                    noExtQOnMenu.AddItem(
                        new MenuItem(
                            "com.idzlucian.misc.noextq." + Hero.ChampionName.ToLowerInvariant(), Hero.ChampionName).SetValue(false));
                }
            }
            Menu.AddSubMenu(miscMenu);
            Cleanser.OnLoad();

            Menu.AddToMainMenu();
        }
开发者ID:firas500,项目名称:LSharpDZiJava,代码行数:79,代码来源:iDZLucian.cs

示例9: CreateMenu

        /// <summary>
        ///     Creats the menu for the specified champion using Asuna's MenuHelper Class
        /// </summary>
        private void CreateMenu()
        {
            Menu = new Menu("iDzEzreal", "com.iezreal", true);

            var tsMenu = new Menu("Ezreal - Target Selector", "com.iezreal.ts");
            TargetSelector.AddToMenu(tsMenu);
            Menu.AddSubMenu(tsMenu);

            var orbMenu = new Menu("Ezreal - Orbwalker", "com.iezreal.orbwalker");
            _orbwalker = new Orbwalking.Orbwalker(orbMenu);
            Menu.AddSubMenu(orbMenu);

            var comboMenu = new Menu("Ezreal - Combo", "com.iezreal.combo");
            comboMenu.AddModeMenu(
                Mode.Combo, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.R }, new[] { true, true, true });
            comboMenu.AddManaManager(Mode.Combo, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.R }, new[] { 35, 35, 10 });
            Menu.AddSubMenu(comboMenu);

            var harassMenu = new Menu("Ezreal - Harass", "com.iezreal.harass");
            harassMenu.AddModeMenu(Mode.Harass, new[] { SpellSlot.Q, SpellSlot.W }, new[] { true, false });
            harassMenu.AddManaManager(Mode.Harass, new[] { SpellSlot.Q, SpellSlot.W }, new[] { 35, 20 });
            Menu.AddSubMenu(harassMenu);

            //TODO skilloptions
            var skillOptions = new Menu("Ezreal - Skill Options", "com.iezreal.skilloptions");
            skillOptions.AddItem(new MenuItem("autoQ", "Auto Q Immobile").SetValue(false));
            skillOptions.AddItem(new MenuItem("rMin", "Min Hit for R").SetValue(new Slider(3, 0, 5)));
            var rangeOptions = new Menu("Range Settings", "com.iezreal.skilloptions.range");
            {
                rangeOptions.AddItem(new MenuItem("qRange", "Min Q Range").SetValue(new Slider(900, 0, 1150)));
                rangeOptions.AddItem(new MenuItem("wRange", "Min W Range").SetValue(new Slider(800, 0, 1000)));
                rangeOptions.AddItem(new MenuItem("rRange", "Min R Range").SetValue(new Slider(2000, 0, 5000)));
            }
            skillOptions.AddSubMenu(rangeOptions);
            Menu.AddSubMenu(skillOptions);

            var farmMenu = new Menu("Ezreal - Farm", "com.iezreal.farm");
            var laneclear = new Menu("Laneclear", "com.iezreal.farm.lc");
            {
                laneclear.AddModeMenu(Mode.Laneclear, new[] { SpellSlot.Q, SpellSlot.R }, new[] { true, false });
                laneclear.AddManaManager(Mode.Laneclear, new[] { SpellSlot.Q, SpellSlot.R }, new[] { 35, 35 });
                laneclear.AddItem(
                    new MenuItem("com.iezreal.farm.r.lc.minhit", "Min Minions hit for R").SetValue(
                        new Slider(10, 1, 20)));
            }
            //
            var lasthit = new Menu("Lasthit", "com.iezreal.farm.lh");
            {
                lasthit.AddModeMenu(Mode.Lasthit, new[] { SpellSlot.Q }, new[] { true });
                lasthit.AddManaManager(Mode.Lasthit, new[] { SpellSlot.Q }, new[] { 35 });
            }
            var jungleClear = new Menu("Jungleclear", "com.iezreal.farm.jc");
            {
                jungleClear.AddItem(new MenuItem("com.iezreal.farm.jc.useQ", "Use Q Jungleclear").SetValue(true));
            }
            farmMenu.AddSubMenu(laneclear);
            farmMenu.AddSubMenu(lasthit);
            farmMenu.AddSubMenu(jungleClear);
            Menu.AddSubMenu(farmMenu);

            var miscMenu = new Menu("Ezreal - Misc", "com.iezreal.misc");
            miscMenu.AddHitChanceSelector();
            miscMenu.AddItem(new MenuItem("com.iezreal.misc.debug", "Debug").SetValue(false));
            Menu.AddSubMenu(miscMenu);

            var drawMenu = new Menu("Ezreal - Draw", "com.iezreal.drawing");
            drawMenu.AddDrawMenu(_spells, System.Drawing.Color.DarkRed);
            Menu.AddSubMenu(drawMenu);

            Menu.AddToMainMenu();
        }
开发者ID:firas500,项目名称:LSharpDZiJava,代码行数:74,代码来源:iEzrealReworked.cs

示例10: OnLoad

        public void OnLoad(Menu menu)
        {
            var cName = ObjectManager.Player.ChampionName;
            var comboMenu = new Menu(cName + " - Combo", "dzaio.cassiopeia.combo");
            comboMenu.AddModeMenu(Mode.Combo, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E, SpellSlot.R }, new[] { true, true, true, true });

            comboMenu.AddManaManager(Mode.Combo, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E, SpellSlot.R }, new[] { 30, 35, 20, 5 });

            var skillOptionMenu = new Menu("Skill Options", "dzaio.cassiopeia.combo.skilloptions");
            {
                skillOptionMenu.AddItem(new MenuItem("dzaio.cassiopeia.combo.skilloptions.minwenemies", "Min W Enemies").SetValue(new Slider(2, 1, 5)));
                skillOptionMenu.AddItem(new MenuItem("dzaio.cassiopeia.combo.skilloptions.onlywnotpoison", "Only W if not poisoned").SetValue(true));
                skillOptionMenu.AddItem(new MenuItem("dzaio.cassiopeia.combo.skilloptions.minrenemiesf", "Min R Enemies Facing").SetValue(new Slider(2, 1, 5)));
                skillOptionMenu.AddItem(new MenuItem("dzaio.cassiopeia.combo.skilloptions.minrenemiesnf", "Min R Enemies Not facing").SetValue(new Slider(3, 1, 5)));
            }
            comboMenu.AddSubMenu(skillOptionMenu);

            menu.AddSubMenu(comboMenu);
            var harrassMenu = new Menu(cName + " - Harrass", "dzaio.cassiopeia.harass");
            harrassMenu.AddModeMenu(Mode.Harrass, new[] { SpellSlot.Q, SpellSlot.E }, new[] { true, true });
            harrassMenu.AddManaManager(Mode.Harrass, new[] { SpellSlot.Q, SpellSlot.E }, new[] { 30, 20 });

            var autoHarrassMenu = new Menu("AutoHarass", "dzaio.cassiopeia.harass.autoharass");
            {
                autoHarrassMenu.AddItem(new MenuItem("dzaio.cassiopeia.harass.useqah", "Use Auto Q").SetValue(false));
                autoHarrassMenu.AddItem(new MenuItem("dzaio.cassiopeia.harass.qmanaah", "Auto Q Mana").SetValue(new Slider(25)));
            }
            harrassMenu.AddSubMenu(autoHarrassMenu);
            menu.AddSubMenu(harrassMenu);

            var farmMenu = new Menu(cName + " - Farm", "dzaio.cassiopeia.farm");
            farmMenu.AddModeMenu(Mode.Laneclear, new[] { SpellSlot.Q,SpellSlot.W,SpellSlot.E }, new[] { false,false,false });
            farmMenu.AddManaManager(Mode.Laneclear, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E}, new[] { 35,35,35 });
            farmMenu.AddItem(new MenuItem("dzaio.cassiopeia.farm.minminions", "Min. Minions for Q/W").SetValue(new Slider(2, 1, 5)));
            menu.AddSubMenu(farmMenu);
            var miscMenu = new Menu(cName + " - Misc", "dzaio.cassiopeia.misc");
            {
                miscMenu.AddItem(new MenuItem("dzaio.cassiopeia.misc.aacombo", "Use AA Combo").SetValue(true));
                miscMenu.AddItem(new MenuItem("dzaio.cassiopeia.misc.antigp", "Anti Gapcloser R").SetValue(true));
                miscMenu.AddItem(new MenuItem("dzaio.cassiopeia.misc.interrupter", "R Interrupter").SetValue(true));
                miscMenu.AddItem(new MenuItem("dzaio.cassiopeia.misc.autorturret", "Auto R enemy under tower").SetValue(false));
                miscMenu.AddItem(new MenuItem("dzaio.cassiopeia.misc.autorlow", "Auto R lifesaver").SetValue(true));
                miscMenu.AddItem(new MenuItem("dzaio.cassiopeia.misc.blockr", "Block R if no hit").SetValue(true));
            }
            miscMenu.AddHitChanceSelector();
            var humanizerMenu = new Menu("Humanizer", "dzaio.cassiopeia.misc.humanizer");
            {
                humanizerMenu.AddItem(new MenuItem("dzaio.cassiopeia.misc.humanizer.edelay", "E Delay").SetValue(new Slider(300,0, 1500)));
                humanizerMenu.AddItem(new MenuItem("dzaio.cassiopeia.misc.humanizer.lcdelay", "Laneclear Delay").SetValue(new Slider(300, 0, 1000)));
                humanizerMenu.AddItem(new MenuItem("dzaio.cassiopeia.misc.humanizer.disableaalc", "Disable AA Laneclear").SetValue(false));
            }
            miscMenu.AddSubMenu(humanizerMenu);
            menu.AddSubMenu(miscMenu);
            var ksMenu = new Menu(cName + " - Killsteal", "dzaio.cassiopeia.killsteal");
            {
                ksMenu.AddItem(new MenuItem("dzaio.cassiopeia.killsteal.useq", "Use Q KS").SetValue(true));
                ksMenu.AddItem(new MenuItem("dzaio.cassiopeia.killsteal.usee", "Use E KS").SetValue(true));
                ksMenu.AddItem(new MenuItem("dzaio.cassiopeia.killsteal.eksmode", "E KS Mode").SetValue(new StringList(new []{"If Poisoned","Always"})));
            }
            menu.AddSubMenu(ksMenu);

            var drawMenu = new Menu(cName + " - Drawings", "dzaio.cassiopeia.drawing");
            drawMenu.AddDrawMenu(_spells,Color.Aquamarine);

            menu.AddSubMenu(drawMenu);
            Game.PrintChat("<b><font color='#FF0000'>[DZAIO]</font></b> <b><font color='#00FF00'>{0}</font></b> loaded! <font color='#FFFFFF'> </font>", "PennyCassio");
        }
开发者ID:GodLS,项目名称:LSharpWIP,代码行数:67,代码来源:Cassiopeia.cs

示例11: SetUpMenu

        /// <summary>
        /// Sets up the Menu
        /// </summary>
        private static void SetUpMenu()
        {
            Menu = new Menu("VayneHunter Reborn", "VHR", true);

            var owMenu = new Menu("[VHR] Orbwalker", "dz191.vhr.orbwalker");
            Orbwalker = new Orbwalking.Orbwalker(owMenu);
            Menu.AddSubMenu(owMenu);

            // var tgMenu = new Menu("[VHR] Target Selector", "dz191.vhr.targetselector");
            //TargetSelector.AddToMenu(tgMenu);
            //Menu.AddSubMenu(tgMenu);
            CustomTargetSelector.OnLoad(Menu);

            var comboMenu = new Menu("[VHR] Combo", "dz191.vhr.combo");
            comboMenu.AddModeMenu(Mode.Combo, new[] { SpellSlot.Q, SpellSlot.E, SpellSlot.R }, new[] { true, true, false });
            comboMenu.AddManaManager(Mode.Combo, new[] { SpellSlot.Q, SpellSlot.E, SpellSlot.R }, new[] { 0, 0, 0 });
            comboMenu.AddItem(new MenuItem("dz191.vhr.combo.r.minenemies", "Min R Enemies").SetValue(new Slider(2, 1, 5)));
            Menu.AddSubMenu(comboMenu);

            var harassMenu = new Menu("[VHR] Harass", "dz191.vhr.harass");
            harassMenu.AddModeMenu(Mode.Harrass, new[] { SpellSlot.Q, SpellSlot.E }, new[] { true, true });
            harassMenu.AddManaManager(Mode.Harrass, new[] { SpellSlot.Q, SpellSlot.E }, new[] { 25, 20 });
            Menu.AddSubMenu(harassMenu);

            var farmMenu = new Menu("[VHR] Farm", "dz191.vhr.farm");
            farmMenu.AddModeMenu(Mode.Farm, new[] { SpellSlot.Q }, new[] { true, true });
            farmMenu.AddManaManager(Mode.Farm, new[] { SpellSlot.Q }, new[] { 40 });
            Menu.AddSubMenu(farmMenu);

            var miscMenu = new Menu("[VHR] Misc", "dz191.vhr.misc");
            var miscQMenu = new Menu("Misc - Tumble", "dz191.vhr.misc.tumble");
            {
                miscQMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.qlogic", "Q Logic").SetValue(new StringList(new[] { "Normal", "Kite melees" })));
                miscQMenu.AddItem(new MenuItem("dz191.vhr.misc.tumble.smartq", "Try to QE when possible").SetValue(false));
                miscQMenu.AddItem(new MenuItem("dz191.vhr.misc.tumble.noaastealth", "Don't AA while stealthed").SetValue(false));
                miscQMenu.AddItem(new MenuItem("dz191.vhr.misc.tumble.noqenemies", "Don't Q into enemies").SetValue(false));
                miscQMenu.AddItem(new MenuItem("dz191.vhr.misc.tumble.dynamicqsafety", "Use dynamic Q Safety Distance").SetValue(false));
                miscQMenu.AddItem(new MenuItem("dz191.vhr.misc.tumble.qspam", "Ignore Q checks").SetValue(false));
                miscQMenu.AddItem(new MenuItem("dz191.vhr.misc.tumble.qinrange", "Q For KS").SetValue(true));
                miscQMenu.AddItem(new MenuItem("dz191.vhr.misc.tumble.mirin", "Use old 'Don't Q into enemies' check (Mirin) ").SetValue(false));

                miscQMenu.AddItem(new MenuItem("dz191.vhr.misc.tumble.walltumble.warning", "Click and hold Walltumble").SetFontStyle(FontStyle.Bold, SharpDX.Color.Red));
                miscQMenu.AddItem(new MenuItem("dz191.vhr.misc.tumble.walltumble.warning.2", "It will walk to the nearest Tumble spot and Tumble").SetFontStyle(FontStyle.Bold, SharpDX.Color.Red));
                miscQMenu.AddItem(new MenuItem("dz191.vhr.misc.tumble.walltumble", "Tumble Over Wall (WallTumble)").SetValue(new KeyBind("Y".ToCharArray()[0], KeyBindType.Press)));
            }

            var miscEMenu = new Menu("Misc - Condemn", "dz191.vhr.misc.condemn");
            {
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.condemnmethod", "Condemn Method").SetValue(new StringList(new[] { "VH Revolution", "VH Reborn", "Marksman/Gosu", "VH Rework", "Shine#" })));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.pushdistance", "E Push Distance").SetValue(new Slider(395, 350, 470)));

                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.accuracy", "Accuracy (Revolution Only)").SetValue(new Slider(33, 1)));
                miscEMenu.AddItem(
                    new MenuItem("dz191.vhr.misc.condemn.asuna", ">>>        Asuna Condemn Settings™       <<<").SetFontStyle(FontStyle.Bold, SharpDX.Color.Yellow).SetValue(false))
                    .ValueChanged += (s, args) =>
                    {
                        if (args.GetNewValue<bool>())
                        {
                            Menu.Item("dz191.vhr.misc.condemn.condemnmethod").SetValue(
                            new StringList(
                                new[] {
                                    "VH Revolution",
                                    "VH Reborn",
                                    "Marksman/Gosu",
                                    "VH Rework",
                                    "Shine#"
                            }, 0));

                            Menu.Item("dz191.vhr.misc.condemn.accuracy").SetValue(new Slider(33, 1));
                            Menu.Item("dz191.vhr.misc.condemn.pushdistance").SetValue(new Slider(395, 350, 470));
                            Menu.Item("dz191.vhr.misc.general.antigp").SetValue(false);
                            LeagueSharp.Common.Utility.DelayAction.Add((int)(Game.Ping / 2f + 250f), () =>
                            {
                                Menu.Item("dz191.vhr.misc.condemn.asuna").SetValue(false);
                            });
                        }
                    };

                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.enextauto", "E Next Auto").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Toggle)));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.onlystuncurrent", "Only stun current target").SetValue(false));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.autoe", "Auto E").SetValue(false));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.eks", "Smart E KS").SetValue(false));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.noeaa", "Don't E if Target can be killed in X AA").SetValue(new Slider(1, 0, 4)));

                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.trinketbush", "Trinket Bush on Condemn").SetValue(true));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.ethird", "E 3rd proc in Harass").SetValue(false));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.lowlifepeel", "Peel with E when low health").SetValue(false));

                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.condemnturret", "Try to Condemn to turret").SetValue(false));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.condemnflag", "Condemn to J4 flag").SetValue(true));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.noeturret", "No E Under enemy turret").SetValue(false));
            }

            var miscGeneralSubMenu = new Menu("Misc - General", "dz191.vhr.misc.general");
            {
                miscGeneralSubMenu.AddItem(new MenuItem("dz191.vhr.misc.general.antigp", "Anti Gapcloser")).SetValue(false);
                miscGeneralSubMenu.AddItem(new MenuItem("dz191.vhr.misc.general.interrupt", "Interrupter").SetValue(true));
//.........这里部分代码省略.........
开发者ID:hieuseu1,项目名称:LeagueSharp,代码行数:101,代码来源:VayneHunterReborn.cs

示例12: OnLoad

        void OnLoad()
        {
            Menu = new Menu("VayneHunter Reborn","VHR",true);
            var owMenu = new Menu("VHR Orbwalker", "dz191.vhr.orbwalker");
            Orbwalker = new Orbwalking.Orbwalker(owMenu);
            Menu.AddSubMenu(owMenu);

            var tgMenu = new Menu("VHR Target Selector", "dz191.vhr.targetselector");
            TargetSelector.AddToMenu(tgMenu);
            Menu.AddSubMenu(tgMenu);

            var comboMenu = new Menu("[VHR] Combo", "dz191.vhr.combo");
            comboMenu.AddModeMenu(Mode.Combo,new []{SpellSlot.Q,SpellSlot.E,SpellSlot.R},new []{true,true,false});
            comboMenu.AddManaManager(Mode.Combo, new[] { SpellSlot.Q, SpellSlot.E, SpellSlot.R }, new[] { 25,20,20 });
            Menu.AddSubMenu(comboMenu);
            var harassMenu = new Menu("[VHR] Harass", "dz191.vhr.harass");
            harassMenu.AddModeMenu(Mode.Harrass, new[] { SpellSlot.Q, SpellSlot.E }, new[] { true, true });
            harassMenu.AddManaManager(Mode.Harrass, new[] { SpellSlot.Q, SpellSlot.E}, new[] { 25, 20 });
            Menu.AddSubMenu(harassMenu);
            var farmMenu = new Menu("[VHR] Farm", "dz191.vhr.farm");
            farmMenu.AddModeMenu(Mode.Farm, new[] { SpellSlot.Q}, new[] { true, true });
            farmMenu.AddManaManager(Mode.Farm, new[] { SpellSlot.Q }, new[] { 40 });
            Menu.AddSubMenu(farmMenu);

            var miscMenu = new Menu("[VHR] Misc", "dz191.vhr.misc");
            var miscQMenu = new Menu("Misc - Tumble", "dz191.vhr.misc.tumble");
            {
                miscQMenu.AddItem(new MenuItem("dz191.vhr.misc.tumble.smartq", "Try to QE First").SetValue(false));
                miscQMenu.AddItem(new MenuItem("dz191.vhr.misc.tumble.noqenemies", "Don't Q into enemies").SetValue(true));
                miscQMenu.AddItem(new MenuItem("dz191.vhr.misc.tumble.noaastealth", "Don't AA while stealthed").SetValue(false));
                miscQMenu.AddItem(new MenuItem("dz191.vhr.misc.tumble.walltumble", "Tumble Over Wall").SetValue(new KeyBind("Y".ToCharArray()[0],KeyBindType.Press)));
            }
            var miscEMenu = new Menu("Misc - Condemn", "dz191.vhr.misc.condemn");
            {
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.enextauto", "E Next Auto").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Toggle)));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.condemnmethod", "Condemn Method").SetValue(new StringList(new []{"VH Reborn","Marksman/Gosu"})));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.pushdistance", "E Push Dist").SetValue(new Slider(425, 400, 500)));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.condemnturret", "Try to Condemn to turret").SetValue(false));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.condemnflag", "Condemn to J4 flag").SetValue(true));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.autoe", "Auto E").SetValue(false));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.eks", "Smart E Ks").SetValue(true));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.ethird", "E 3rd proc in Harass").SetValue(false));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.noeturret", "No E Under enemy turret").SetValue(true));
                miscEMenu.AddItem(new MenuItem("dz191.vhr.misc.condemn.lowlifepeel", "Peel with E when low").SetValue(true));
            }
            var miscGeneralSubMenu = new Menu("Misc - General", "dz191.vhr.misc.general");
            {
                miscGeneralSubMenu.AddItem(new MenuItem("dz191.vhr.misc.general.antigp", "Anti Gapcloser")).SetValue(true);
                miscGeneralSubMenu.AddItem(new MenuItem("dz191.vhr.misc.general.interrupt", "Interrupter").SetValue(true));
                miscGeneralSubMenu.AddItem(new MenuItem("dz191.vhr.misc.general.specialfocus", "Focus targets with 2 W marks").SetValue(false));
            }
            miscMenu.AddSubMenu(miscQMenu);
            miscMenu.AddSubMenu(miscEMenu);
            miscMenu.AddSubMenu(miscGeneralSubMenu);
            Menu.AddSubMenu(miscMenu);

            var drawMenu = new Menu("[VHR] Drawing", "dz191.vhr.drawing");
            drawMenu.AddDrawMenu(_spells,Color.Red);
            drawMenu.AddItem(new MenuItem("dz191.vhr.drawing.drawstun", "Draw Stunnable").SetValue(true));
            drawMenu.AddItem(new MenuItem("dz191.vhr.drawing.drawspots", "Draw Spots").SetValue(true));
            Menu.AddSubMenu(drawMenu);

            Menu.AddToMainMenu();
            Game.PrintChat("<b><font color='#FF0000'>[VH]</font></b><font color='#FFFFFF'> Reborn loaded! Version: 4.0 </font>");
            SetUpEvents();
            SetUpSkills();
        }
开发者ID:GodLS,项目名称:LSharpWIP,代码行数:67,代码来源:VayneHunterReborn.cs


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