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


C# Menu.AddHitChanceSelector方法代码示例

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


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

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

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

示例4: 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");
            skillOptionMenu.AddItem(new MenuItem("dzaio.caitlyin.combo.skilloptions.impq", "Cast Q Only Immobile/Dashing/Impaired").SetValue(false));
            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.eq", "EQ").SetValue(new KeyBind("M".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:ShineSharp,项目名称:LeagueSharp-5,代码行数:37,代码来源:Caitlyn.cs

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

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

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


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