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


C# Menu.AddBool方法代码示例

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


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

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

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

示例3: ComboMenu

 public override void ComboMenu(Menu config)
 {
     config.AddBool("Combo.Q", "浣跨敤 Q", true);
     config.AddBool("Combo.E", "浣跨敤 E", true);
     config.AddBool("Combo.R", "浣跨敤 R", true);
     config.AddSlider("Combo.R.Count", "鏁屼汉鏁伴噺浣跨敤澶ф嫑", 3, 0, 5);
 }
开发者ID:lanyi777,项目名称:CN,代码行数:7,代码来源:Zyra.cs

示例4: InterruptMenu

        public override void InterruptMenu(Menu config)
        {
            config.AddBool("Gapcloser.Q", "浣跨敤 Q 闃茬獊杩涖劎", true);
            config.AddBool("Gapcloser.R", "浣跨敤 R 闃茬獊杩涖劎", false);

            config.AddBool("Interrupt.R", "浣跨敤 R 鎵撴柇", true);
        }
开发者ID:lanyi777,项目名称:CN,代码行数:7,代码来源:Braum.cs

示例5: InterruptMenu

        public override void InterruptMenu(Menu config)
        {
            config.AddBool("Gapcloser.Q", "浣跨敤 Q 闃茬獊杩涖劎", true);

            config.AddBool("Interrupt.Q", "浣跨敤 Q 鎵撴柇", true);
            config.AddBool("Interrupt.E", "浣跨敤 E 鎵撴柇", true);
        }
开发者ID:lanyi777,项目名称:CN,代码行数:7,代码来源:Fiddlesticks.cs

示例6: HarassMenu

 public override void HarassMenu(Menu config)
 {
     config.AddBool("HarassQ", "浣跨敤 Q", true);
     config.AddBool("HarassW", "浣跨敤 W 鏁戦槦鍙嬨劎", true);
     config.AddBool("HarassE", "浣跨敤 E", true);
     config.AddSlider("HarassHealthE", "濡傛灉鐩爣琛€閲忎綆浜庛劎", 20, 1, 100);
 }
开发者ID:lanyi777,项目名称:CN,代码行数:7,代码来源:Thresh.cs

示例7: Game_OnGameLoad

        private static void Game_OnGameLoad(EventArgs args)
        {
            Menu = new Menu("AutoKill", "AutoKill", true);
            Menu.AddBool("Ignite", "Cast Ignite");
            Menu.AddBool("Smite", "Cast Smite");
            Menu.AddBool("AA", "Use AutoAttack");

            Menu.AddToMainMenu();

            var igniteSlot = Player.GetSpellSlot("summonerdot");

            if (igniteSlot.IsValid())
            {
                Ignite = new Spell(igniteSlot, 600);
                Ignite.SetTargetted(.172f, 20);
            }

            var smite = Player.Spellbook.Spells.FindAll(h => h.Name.ToLower().Contains("smite")).FirstOrDefault();

            if (smite != null && smite.Slot.IsValid())
            {
                Smite = new Spell(smite.Slot, 760);
                Smite.SetTargetted(.333f, 20);
            }

            Game.OnUpdate += Game_OnGameUpdate;
        }
开发者ID:StopMotionCuber,项目名称:LeagueSharp-1,代码行数:27,代码来源:Program.cs

示例8: ComboMenu

 public override void ComboMenu(Menu config)
 {
     config.AddBool("ComboQ", "浣跨敤 Q", true);
     config.AddBool("ComboW", "浣跨敤 WQ", true);
     config.AddBool("ComboE", "浣跨敤 E", true);
     config.AddSlider("ComboHealthR", "鍋ュ悍鎭㈠", 20, 1, 100);
 }
开发者ID:lanyi777,项目名称:CN,代码行数:7,代码来源:Alistar.cs

示例9: OnLoad

        /// <summary>
        /// The init point of the class
        /// </summary>
        public static void OnLoad()
        {
            var RootMenu = Variables.Menu;
            var moduleMenu = new Menu("HUD!", "dz191.dza.hud").SetFontStyle(FontStyle.Bold, SharpDX.Color.Red);
            {
                moduleMenu.AddBool("dz191.dza.hud.show", "Show HUD").SetTooltip("Shows the DZAwareness Helper hud").ValueChanged += (sender, args) =>
                {
                    /**Dispose of the sprites*/ 
                    if (args.GetNewValue<bool>())
                    {
                        //InitSprites(true);
                        //ImageLoader.InitSprites();
                    }
                    else
                    {
                        //HudVariables.HudSprite.Remove();
                        //ImageLoader.RemoveSprites();
                        //HudVariables.ExpandShrinkButton.Remove();
                    }
                };
                moduleMenu.AddBool("dz191.dza.hud.draggable", "Draggable", true).SetTooltip("If ON = You can Drag the HUD. If OFF = Hud is fixed.");
                moduleMenu.AddSlider("dz191.dza.hud.x", "HUD X", new Tuple<int, int, int>(20, 0, Drawing.Direct3DDevice.Viewport.Width)).SetTooltip("Hud X Position (You can drag it)");
                moduleMenu.AddSlider("dz191.dza.hud.y", "HUD Y", new Tuple<int, int, int>(Drawing.Direct3DDevice.Viewport.Height - HudVariables.CroppedHeight - 20, 0, Drawing.Direct3DDevice.Viewport.Height)).SetTooltip("Hud Y Position (You can drag it)");
                RootMenu.AddSubMenu(moduleMenu);
            }

            InitSprites();

            Game.OnWndProc += OnWndProc;
        }
开发者ID:luizssn,项目名称:LeagueSharp,代码行数:33,代码来源:HudDisplay.cs

示例10: ComboMenu

 public override void ComboMenu(Menu config)
 {
     config.AddBool("ComboQ", "Use Q", true);
     config.AddBool("ComboW", "Use W", true);
     config.AddBool("ComboE", "Use E", true);
     config.AddBool("ComboR", "Use R1", true);
 }
开发者ID:alstjr0006,项目名称:Experimental,代码行数:7,代码来源:Irelia.cs

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

示例12: ComboMenu

 public override void ComboMenu(Menu config)
 {
     config.AddBool("Combo.Q", "Use Q", true);
     config.AddBool("Combo.W", "Use W", true);
     config.AddBool("Combo.R", "Use R", true);
     config.AddSlider("Combo.R.Health", "Health to Ult", 15, 1, 100);
 }
开发者ID:654955321,项目名称:HY_Recommend,代码行数:7,代码来源:Janna.cs

示例13: ComboMenu

 public override void ComboMenu(Menu config)
 {
     config.AddBool("Combo.Q", "浣跨敤 Q", true);
     config.AddBool("Combo.W", "浣跨敤 W", true);
     config.AddBool("Combo.E", "浣跨敤 E", true);
     config.AddSlider("Combo.Q.Health", "Consume below %HP", 50, 1, 100);
 }
开发者ID:lanyi777,项目名称:CN,代码行数:7,代码来源:Nunu.cs

示例14: ComboMenu

 public override void ComboMenu(Menu config)
 {
     config.AddBool("ComboQ", "Use Q", true);
     config.AddBool("ComboW", "Use W", true);
     config.AddBool("ComboR", "Use R", true);
     config.AddSlider("ComboCountR", "Targets in range to Ult", 2, 1, 5);
 }
开发者ID:amanditateamuh,项目名称:LeagueSharp,代码行数:7,代码来源:Blitzcrank.cs

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


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