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


C# Menu.AddSlider方法代码示例

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


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

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

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

        /// <summary>
        /// Creates the menu.
        /// </summary>
        public override void CreateMenu()
        {
            try
            {
                var RootMenu = Variables.Menu;
                var moduleMenu = new Menu("Gank Alerter", "dz191.dza.gank");
                {
                    moduleMenu.AddBool("dz191.dza.gank", "Gank Alerter", true);
                    moduleMenu.AddSlider("dz191.dza.gank.textsize", "Text Size", 26, 17, 52).SetTooltip("The text size of the Gank alert text (Requires F5 after change)");
                    moduleMenu.AddSlider("dz191.dza.gank.mindist", "Min. Distance", 1100, 300, 1800).SetTooltip("The Minimum detection distance");
                    moduleMenu.AddSlider("dz191.dza.gank.maxdist", "Max. Distance", 3500, 500, 6000).SetTooltip("The Maximum detection distance");

                    var ignoreMenu = new Menu("Ignore Champions", "dz191.dza.gank.ignore");
                    {
                        foreach (var hero in HeroManager.Enemies)
                        {
                            ignoreMenu.AddItem(
                                new MenuItem(
                                    $"dz191.dza.gank.ignore.{hero.ChampionName.ToLower()}",
                                    hero.ChampionName)).SetValue(false);
                        }
                        moduleMenu.AddSubMenu(ignoreMenu);
                    }
                    RootMenu.AddSubMenu(moduleMenu);
                }
            }
            catch (Exception e)
            {
                LogHelper.AddToLog(new LogItem("GankAlerter_Base", e));
            }

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

示例4: ComboMenu

 public override void ComboMenu(Menu config)
 {
     config.AddBool("ComboQ", "浣跨敤 Q", true);
     config.AddBool("ComboW", "浣跨敤 W", true);
     config.AddBool("ComboR", "浣跨敤 R", true);
     config.AddSlider("ComboCountR", "鍑犱釜鏁屼汉浣跨敤澶ф嫑", 2, 1, 5);
     config.AddSlider("ComboHealthW", "鍋ュ悍鎭㈠", 20, 1, 100);
 }
开发者ID:lanyi777,项目名称:CN,代码行数:8,代码来源:Nami.cs

示例5: ComboMenu

 public override void ComboMenu(Menu config)
 {
     config.AddBool("Combo.Q", "Use Q", true);
     config.AddSlider("Combo.Q.Range", "Minimum Range For Q", 800, 100, 900);
     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:HoesLeaguesharp,项目名称:LeagueSharp-1,代码行数:8,代码来源:Janna.cs

示例6: ComboMenu

 public override void ComboMenu(Menu config)
 {
     config.AddBool("ComboQ", "浣跨敤 Q", true);
     config.AddBool("ComboW", "浣跨敤 W", true);
     config.AddBool("ComboE", "浣跨敤 E", true);
     config.AddBool("ComboR", "浣跨敤 R", true);
     config.AddSlider("ComboCountR", "鍑犱釜鏁屼汉浣跨敤澶ф嫑", 2, 0, 5);
     config.AddSlider("ComboHealthR", "鍓╀綑琛€閲忓紑鍚ぇ鎷涖劎", 20, 1, 100);
 }
开发者ID:lanyi777,项目名称:CN,代码行数:9,代码来源:Template.cs

示例7: ComboMenu

 public override void ComboMenu(Menu config)
 {
     config.AddBool("ComboQ", "Use Q", true);
     config.AddBool("ComboQFollow", "Use Q Follow", true);
     config.AddBool("ComboW", "Use W for Engage", true);
     config.AddBool("ComboE", "Use E", true);
     config.AddSlider("ComboHealthE", "Push Targets away if low HP", 20, 1, 100);
     config.AddBool("ComboR", "Use R", true);
     config.AddSlider("ComboCountR", "Targets in range to Ult", 2, 1, 5);
 }
开发者ID:WolframA,项目名称:LeagueSharp,代码行数:10,代码来源:Thresh.cs

示例8: MiscMenu

        public override void MiscMenu(Menu config)
        {
            config.AddBool("GapcloserQ", "Use Q to Interrupt Gapcloser", true);
            config.AddBool("GapcloserE", "Use E to Interrupt Gapcloser", true);

            config.AddBool("AutoW", "Auto use W", true);
            config.AddSlider("AutoWPercent", "W Percent", 50, 1, 100);

            config.AddBool("AutoR", "Auto use R", true);
            config.AddSlider("AutoRPercent", "R Percent", 15, 1, 100);

            config.AddBool("InterruptE", "Use E to Interrupt Spells", true);
        }
开发者ID:werdbrian,项目名称:AIM-1,代码行数:13,代码来源:Soraka.cs

示例9: HarassMenu

 public override void HarassMenu(Menu config)
 {
     config.AddBool("Harass.Q", "Use Q", true);
     config.AddBool("Harass.W", "Use W", false);
     config.AddBool("Harass.E", "Use E", true);
     config.AddSlider("Harass.Q.Health", "Consume below %HP", 50, 1, 100);
 }
开发者ID:amanditateamuh,项目名称:LeagueSharp,代码行数:7,代码来源:Nunu.cs

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

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

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

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

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


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