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


C# Menu.AddModeMenu方法代码示例

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


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

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

示例2: OnLoad

        public void OnLoad(Menu menu)
        {
            var comboMenu = new Menu(ObjectManager.Player.ChampionName + ": Combo", "dzaio.champion.vladimir.combo");
            {
                comboMenu.AddModeMenu(ModesMenuExtensions.Mode.Combo, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E, SpellSlot.R }, new[] { true, true, true, true });
                comboMenu.AddSlider("dzaio.champion.vladimir.combo.r.min", "Min Enemies for R", 2, 1, 5);
                menu.AddSubMenu(comboMenu);
            }

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

            var farmMenu = new Menu(ObjectManager.Player.ChampionName + ": Farm", "dzaio.champion.vladimir.farm");
            {
                farmMenu.AddModeMenu(ModesMenuExtensions.Mode.Laneclear, new[] { SpellSlot.Q }, new[] { true });
                farmMenu.AddSlider("dzaio.champion.vladimir.farm.mana", "Min Mana % for Farm", 30, 0, 100);
                menu.AddSubMenu(farmMenu);
            }

            var extraMenu = new Menu(ObjectManager.Player.ChampionName + ": Extra", "dzaio.champion.vladimir.extra");
            {
                extraMenu.AddBool("dzaio.champion.vladimir.extra.antigapcloser", "W Antigapcloser (Important Gapclosers)", true);
                extraMenu.AddSlider("dzaio.champion.vladimir.extra.w.antigpdelay", "W Antigapcloser Delay", 120, 0, 350);
                extraMenu.AddBool("dzaio.champion.vladimir.extra.autoQKS", "Q KS", true);
            }

            Variables.Spells[SpellSlot.Q].SetTargetted(0.25f, 2000f);
            Variables.Spells[SpellSlot.R].SetSkillshot(0.25f, 175, 700, false, SkillshotType.SkillshotCircle);

        }
开发者ID:DZ191,项目名称:LeagueSharp,代码行数:34,代码来源:Vladimir.cs

示例3: CreateMenu

        private static void CreateMenu()
        {
            Menu = new Menu("iDzKatarina", "com.idzkatarina", true);

            Menu tsMenu = new Menu("Katarina - Target Selector", "com.idzkatarina.ts");
            TargetSelector.AddToMenu(tsMenu);
            Menu.AddSubMenu(tsMenu);

            Menu orbMenu = new Menu("Katarina - Orbwalker", "com.idzkatarina.orbwalker");
            _orbwalker = new Orbwalking.Orbwalker(orbMenu);
            Menu.AddSubMenu(orbMenu);

            Menu comboMenu = new Menu("Katarina - Combo", "com.idzkatarina.combo");
            comboMenu.AddModeMenu(
                Mode.Combo, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E, SpellSlot.R },
                new[] { true, true, true, true });
            Menu.AddSubMenu(comboMenu);

            Menu harassMenu = new Menu("Katarina - Harass", "com.idzkatarina.harass");
            harassMenu.AddModeMenu(
                Mode.Harass, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E }, new[] { true, false, false });
            Menu.AddSubMenu(harassMenu);

            Menu skillOptions = new Menu("Katarina - Skill Options", "com.idzkatarina.skilloptions");
            skillOptions.AddItem(new MenuItem("procQ", "Always try to proc Q").SetValue(false));
            Menu.AddSubMenu(skillOptions);

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

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

示例5: OnLoad

        public void OnLoad(Menu menu)
        {
            var comboMenu = new Menu(ObjectManager.Player.ChampionName + ": Combo", "dzaio.champion.trundle.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.trundle.harrass");
            {
                mixedMenu.AddModeMenu(ModesMenuExtensions.Mode.Harrass, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E}, new[] { true, true, true });
                mixedMenu.AddSlider("dzaio.champion.trundle.mixed.mana", "Min Mana % for Harass", 30, 0, 100);
                menu.AddSubMenu(mixedMenu);
            }

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

                farmMenu.AddSlider("dzaio.champion.trundle.farm.mana", "Min Mana % for Farm", 30, 0, 100);
                menu.AddSubMenu(farmMenu);
            }

            var extraMenu = new Menu(ObjectManager.Player.ChampionName + ": Extra", "dzaio.champion.trundle.extra");
            {
                extraMenu.AddBool("dzaio.champion.trundle.extra.interrupter", "Interrupter (E)", true);
                extraMenu.AddBool("dzaio.champion.trundle.extra.antigapcloser", "Antigapcloser (E)", true);
                extraMenu.AddBool("dzaio.champion.trundle.extra.qks", "Q For KS", true);
            }
        }
开发者ID:DZ191,项目名称:LeagueSharp,代码行数:33,代码来源:Trundle.cs

示例6: OnLoad

        public void OnLoad(Menu menu)
        {
            var comboMenu = new Menu(ObjectManager.Player.ChampionName + ": Combo", "dzaio.champion.bard.combo");
            {
                comboMenu.AddModeMenu(ModesMenuExtensions.Mode.Combo, new[] { SpellSlot.Q, SpellSlot.R }, new[] { true, true });
                comboMenu.AddSlider("dzaio.champion.bard.combo.r.min", "Min Enemies for R", 2, 1, 5);

                menu.AddSubMenu(comboMenu);
            }

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

            var extraMenu = new Menu(ObjectManager.Player.ChampionName + ": Extra", "dzaio.champion.bard.extra");
            {
                extraMenu.AddBool("dzaio.champion.bard.extra.interrupter", "Interrupter (Q)", true);
                extraMenu.AddBool("dzaio.champion.bard.extra.antigapcloser", "Antigapcloser (Q)", true);
                extraMenu.AddBool("dzaio.champion.bard.extra.autoQ", "Auto Q Stunned / Rooted", true);
                extraMenu.AddBool("dzaio.champion.bard.extra.autoQKS", "Auto Q KS", true);
                extraMenu.AddBool("dzaio.champion.bard.extra.supportmode", "Support Mode", true);
                extraMenu.AddKeybind("dzaio.champion.bard.extra.fleemode", "Flee Mode", new Tuple<uint, KeyBindType>('Z', KeyBindType.Press));
            }

            Variables.Spells[SpellSlot.Q].SetSkillshot(0.25f, 100, 1600, false, SkillshotType.SkillshotLine);
            Variables.Spells[SpellSlot.E].SetSkillshot(0.25f, 60, 1200, true, SkillshotType.SkillshotLine);
        }
开发者ID:DZ191,项目名称:LeagueSharp,代码行数:30,代码来源:Bard.cs

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

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

示例9: OnLoad

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

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

            var farmMenu = new Menu(ObjectManager.Player.ChampionName + ": Farm", "dzaio.champion.sivir.farm");
            {
                farmMenu.AddModeMenu(ModesMenuExtensions.Mode.Laneclear, new[] { SpellSlot.Q, SpellSlot.W }, new[] { true, true });
                farmMenu.AddSlider("dzaio.champion.sivir.farm.q.min", "Min Minions for Q", 4, 1, 6);
                farmMenu.AddSlider("dzaio.champion.sivir.farm.mana", "Min Mana % for Farm", 30, 0, 100);
                menu.AddSubMenu(farmMenu);
            }

            var extraMenu = new Menu(ObjectManager.Player.ChampionName + ": Extra", "dzaio.champion.sivir.extra");
            {
                extraMenu.AddBool("dzaio.champion.sivir.extra.autoE", "E Shield", true);
                extraMenu.AddSlider("dzaio.champion.sivir.extra.autoE.Delay", "E Shield Delay", 120, 0, 350);
                extraMenu.AddBool("dzaio.champion.sivir.extra.autoQKS", "Q KS", true);
                extraMenu.AddBool("dzaio.champion.sivir.extra.autoQRoot", "Q Root/Slow/Dash", true);
            }

            Variables.Spells[SpellSlot.Q].SetSkillshot(0.25f, 90f, 1350f, false, SkillshotType.SkillshotLine);
        }
开发者ID:DZ191,项目名称:LeagueSharp,代码行数:33,代码来源:Sivir.cs

示例10: OnLoad

        public void OnLoad(Menu menu)
        {
            var comboMenu = new Menu(ObjectManager.Player.ChampionName + ": Combo", "dzaio.champion.kalista.combo");
            {
                comboMenu.AddModeMenu(ModesMenuExtensions.Mode.Combo, new[] { SpellSlot.Q, SpellSlot.E, SpellSlot.R }, new[] { true, true, true });
                comboMenu.AddSlider("dzaio.champion.kalista.combo.e.stacks", "Min E Stacks", 6, 1, 10);
                //comboMenu.AddNoUltiMenu(false);
                menu.AddSubMenu(comboMenu);
            }

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

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

                farmMenu.AddSlider("dzaio.champion.kalista.farm.e.min", "Min Minions for E", 3, 1, 6);
                farmMenu.AddSlider("dzaio.champion.kalista.farm.mana", "Min Mana % for Farm", 30, 0, 100);
                menu.AddSubMenu(farmMenu);
            }

            var extraMenu = new Menu(ObjectManager.Player.ChampionName + ": Extra", "dzaio.champion.kalista.extra");
            {
                extraMenu.AddBool("dzaio.champion.kalista.extra.antigapcloser", "Antigapcloser (Q)", true);
                extraMenu.AddBool("dzaio.champion.kalista.extra.autoQ", "Auto Q Stunned / Rooted", true);
                extraMenu.AddBool("dzaio.champion.kalista.kalista.autoEKS", "Auto E KS", true);
                extraMenu.AddBool("dzaio.champion.kalista.kalista.autoESlow", "Auto E for Slow (With Reset on Minion)", true);
                extraMenu.AddBool("dzaio.champion.kalista.kalista.autoEDeath", "Auto E when about to die", true);
                extraMenu.AddBool("dzaio.champion.kalista.kalista.autoESteal", "Auto E to steal Drake and Baron", true);
                extraMenu.AddBool("dzaio.champion.kalista.kalista.autoRSoul", "Auto R to save Soulbound", true);
                extraMenu.AddKeybind("dzaio.champion.kalista.kalista.wallJump", "Wall Jump", new Tuple<uint, KeyBindType>('Z', KeyBindType.Press));
            }

            Variables.Spells[SpellSlot.Q].SetSkillshot(0.25f, 40f, 1200f, true, SkillshotType.SkillshotLine);
            Variables.Spells[SpellSlot.R].SetSkillshot(0.50f, 1500, float.MaxValue, false, SkillshotType.SkillshotCircle);

        }
开发者ID:DZ191,项目名称:LeagueSharp,代码行数:42,代码来源:Kalista.cs

示例11: OnLoad

        public void OnLoad(Menu menu)
        {
            var comboMenu = new Menu(ObjectManager.Player.ChampionName + ": Combo", "dzaio.champion.veigar.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.veigar.harrass");
            {
                mixedMenu.AddModeMenu(ModesMenuExtensions.Mode.Harrass, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E }, new[] { true, true, true });
                mixedMenu.AddSlider("dzaio.champion.veigar.mixed.mana", "Min Mana % for Harass", 30, 0, 100);
                menu.AddSubMenu(mixedMenu);
            }

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

                farmMenu.AddBool("dzaio.champion.veigar.farm.w.kill", "Only Use W to kill Minions", false);
                farmMenu.AddSlider("dzaio.champion.veigar.farm.w.min", "Min Minions for W", 2, 1, 6);
                farmMenu.AddSlider("dzaio.champion.veigar.farm.mana", "Min Mana % for Farm", 30, 0, 100);
                menu.AddSubMenu(farmMenu);
            }

            var extraMenu = new Menu(ObjectManager.Player.ChampionName + ": Extra", "dzaio.champion.veigar.extra");
            {
                extraMenu.AddBool("dzaio.champion.veigar.extra.interrupter", "Interrupter (E)", true);
                extraMenu.AddBool("dzaio.champion.veigar.extra.antigapcloser", "Antigapcloser (E)", true);
                extraMenu.AddBool("dzaio.champion.veigar.extra.farmQ", "Auto Q Farm", true);
                extraMenu.AddBool("dzaio.champion.veigar.extra.autoW", "Auto W Stunned / Rooted", true);
                extraMenu.AddBool("dzaio.champion.veigar.extra.autoRKS", "Auto R KS", true);
            }

            Variables.Spells[SpellSlot.Q].SetSkillshot(0.25f, 65f, 1900f, false, SkillshotType.SkillshotLine);
            Variables.Spells[SpellSlot.W].SetSkillshot(1.25f, 190f, 0, false, SkillshotType.SkillshotCircle);
            Variables.Spells[SpellSlot.E].SetSkillshot(0.5f, 335f, 0, false, SkillshotType.SkillshotCircle);
        }
开发者ID:DZ191,项目名称:LeagueSharp,代码行数:39,代码来源:Veigar.cs

示例12: OnLoad

        public void OnLoad(Menu menu)
        {
            var comboMenu = new Menu(ObjectManager.Player.ChampionName + ": Combo", "dzaio.champion.ahri.combo");
            {
                comboMenu.AddModeMenu(ModesMenuExtensions.Mode.Combo, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E, SpellSlot.R }, new[] { true, true, true, true });
                comboMenu.AddBool("dzaio.champion.ahri.combo.waitforE", "Wait for charm", true);
                comboMenu.AddBool("dzaio.champion.ahri.combo.onlyInitR", "Only use First R (Only to initiate)", true);

                menu.AddSubMenu(comboMenu);
            }

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

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

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

            var extraMenu = new Menu(ObjectManager.Player.ChampionName + ": Extra", "dzaio.champion.ahri.extra");
            {
                extraMenu.AddBool("dzaio.champion.ahri.extra.interrupter", "Interrupter (E)", true);
                extraMenu.AddBool("dzaio.champion.ahri.extra.antigapcloser", "Antigapcloser (E)", true);
                extraMenu.AddBool("dzaio.champion.ahri.extra.autoQ", "Auto Q Stunned / Rooted", true);
                extraMenu.AddBool("dzaio.champion.ahri.extra.autoQKS", "Auto Q KS", true);
            }

            Variables.Spells[SpellSlot.Q].SetSkillshot(0.25f, 100, 1600, false, SkillshotType.SkillshotLine);
            Variables.Spells[SpellSlot.E].SetSkillshot(0.25f, 60, 1200, true, SkillshotType.SkillshotLine);
        }
开发者ID:DZ191,项目名称:LeagueSharp,代码行数:38,代码来源:Ahri.cs

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

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

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


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