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


C# Menu.Bool方法代码示例

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


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

示例1: Init

        internal static void Init()
        {
            LoadSpellData();

            Spells.RemoveAll(i => !HeroManager.Enemies.Any(
            a =>
            string.Equals(
                a.ChampionName,
                i.ChampionName,
                StringComparison.InvariantCultureIgnoreCase)));

            var evadeMenu = new Menu("Evade Targeted SkillShot", "EvadeTarget");
            {
                evadeMenu.Bool("W", "Use W");
                var aaMenu = new Menu("Auto Attack", "AA");
                {
                    aaMenu.Bool("B", "Basic Attack", false);
                    aaMenu.Slider("BHpU", "-> If Hp < (%)", 35);
                    aaMenu.Bool("C", "Crit Attack", false);
                    aaMenu.Slider("CHpU", "-> If Hp < (%)", 40);
                    evadeMenu.AddSubMenu(aaMenu);
                }
                foreach (var hero in
                    HeroManager.Enemies.Where(
                        i =>
                        Spells.Any(
                            a =>
                            string.Equals(
                                a.ChampionName,
                                i.ChampionName,
                                StringComparison.InvariantCultureIgnoreCase))))
                {
                    evadeMenu.AddSubMenu(new Menu("-> " + hero.ChampionName, hero.ChampionName.ToLowerInvariant()));
                }
                foreach (var spell in
                    Spells.Where(
                        i =>
                        HeroManager.Enemies.Any(
                            a =>
                            string.Equals(
                                a.ChampionName,
                                i.ChampionName,
                                StringComparison.InvariantCultureIgnoreCase))))
                {
                    ((Menu)evadeMenu.SubMenu(spell.ChampionName.ToLowerInvariant())).Bool(
                        spell.MissileName,
                        spell.MissileName + " (" + spell.Slot + ")",
                        false);
                }
            }
            Menu.AddSubMenu(evadeMenu);
            Game.OnUpdate += OnUpdateTarget;
            GameObject.OnCreate += ObjSpellMissileOnCreate;
            GameObject.OnDelete += ObjSpellMissileOnDelete;
        }
开发者ID:badao,项目名称:ProjectFiora,代码行数:55,代码来源:EvadeTargetedSkillShots.cs

示例2: Init

 internal static void Init()
 {
     LoadSpellData();
     Spells.RemoveAll(i => !HeroManager.Enemies.Any(
     a =>
     string.Equals(
         a.ChampionName,
         i.ChampionName,
         StringComparison.InvariantCultureIgnoreCase)));
     var evadeMenu = new Menu("Evade skill tướng không có skill định hướng", "Evade mục tiêu noneskillshot");
     {
         evadeMenu.Bool("W", "Dùng W");
         //var aaMenu = new Menu("Auto Attack", "AA");
         //{
         //    aaMenu.Bool("B", "Basic Attack");
         //    aaMenu.Slider("BHpU", "-> If Hp < (%)", 35);
         //    aaMenu.Bool("C", "Crit Attack");
         //    aaMenu.Slider("CHpU", "-> If Hp < (%)", 40);
         //    evadeMenu.AddSubMenu(aaMenu);
         //}
         foreach (var hero in
             HeroManager.Enemies.Where(
                 i =>
                 Spells.Any(
                     a =>
                     string.Equals(
                         a.ChampionName,
                         i.ChampionName,
                         StringComparison.InvariantCultureIgnoreCase))))
         {
             evadeMenu.AddSubMenu(new Menu("-> " + hero.ChampionName, hero.ChampionName.ToLowerInvariant()));
         }
         foreach (var spell in
             Spells.Where(
                 i =>
                 HeroManager.Enemies.Any(
                     a =>
                     string.Equals(
                         a.ChampionName,
                         i.ChampionName,
                         StringComparison.InvariantCultureIgnoreCase))))
         {
             evadeMenu.SubMenu(spell.ChampionName.ToLowerInvariant()).Bool(
                 spell.ChampionName + spell.Slot,
                 spell.ChampionName + " (" + spell.Slot + ")",
                 false);
         }
     }
     Menu.AddSubMenu(evadeMenu);
     Game.OnUpdate += OnUpdateDashes;
     Obj_AI_Hero.OnProcessSpellCast += Obj_AI_Hero_OnProcessSpellCast;
 }
开发者ID:bachtuyet,项目名称:Assem,代码行数:52,代码来源:EvadeTargetedNoMissile.cs

示例3: Init

 internal static void Init()
 {
     LoadSpellData();
     Spells.RemoveAll(i => !HeroManager.Enemies.Any(
                     a =>
                     string.Equals(
                         a.ChampionName,
                         i.ChampionName,
                         StringComparison.InvariantCultureIgnoreCase)));
     var evadeMenu = new Menu("Khóa 1 vài kỹ năng", "Evade khác");
     {
         evadeMenu.Bool("W", "Dùng W");
         foreach (var hero in
             HeroManager.Enemies.Where(
                 i =>
                 Spells.Any(
                     a =>
                     string.Equals(
                         a.ChampionName,
                         i.ChampionName,
                         StringComparison.InvariantCultureIgnoreCase))))
         {
             evadeMenu.AddSubMenu(new Menu("-> " + hero.ChampionName, hero.ChampionName.ToLowerInvariant()));
         }
         foreach (var spell in
             Spells.Where(
                 i =>
                 HeroManager.Enemies.Any(
                     a =>
                     string.Equals(
                         a.ChampionName,
                         i.ChampionName,
                         StringComparison.InvariantCultureIgnoreCase))))
         {
             ((Menu)evadeMenu.SubMenu(spell.ChampionName.ToLowerInvariant())).Bool(
                 spell.ChampionName + spell.Slot,
                 spell.ChampionName + " (" + (spell.Slot == SpellSlot.Unknown ? "Passive" : spell.Slot.ToString()) + ")",
                 false);
         }
     }
     Menu.AddSubMenu(evadeMenu);
     Game.OnUpdate += Game_OnUpdate;
     GameObject.OnCreate += GameObject_OnCreate;
     GameObject.OnDelete += GameObject_OnDelete;
     Obj_AI_Hero.OnProcessSpellCast += Obj_AI_Hero_OnProcessSpellCast;
     Obj_AI_Hero.OnPlayAnimation += Obj_AI_Hero_OnPlayAnimation;
     CustomEvents.Unit.OnDash += Unit_OnDash;
 }
开发者ID:bachtuyet,项目名称:Assem,代码行数:48,代码来源:EvadeOthers.cs

示例4: CreateMenu

 public static void CreateMenu()
 {
     var evadeMenu = new LeagueSharp.Common.Menu("Evade Skillshot", "Evade");
     {
         evadeMenu.Separator("Credit: Evade#");
         var evadeSpells = new LeagueSharp.Common.Menu("Spells", "Spells");
         {
             foreach (
                 var spell in
                     EvadeSpellDatabase.Spells)
             {
                 var subMenu = new LeagueSharp.Common.Menu(
                     string.Format("{0} ({1})", spell.Name, spell.Slot), spell.Name);
                 {
                     //if (spell.UnderTower)
                     //{
                     subMenu.Bool(spell.Slot + "Tower", "Under Tower", false);
                     //}
                     //if (spell.ExtraDelay)
                     //{
                     subMenu.Slider(spell.Slot + "Delay", "Extra Delay", 100, 0, 150);
                     //}
                     subMenu.Slider("DangerLevel", "If Danger Level >=", 3, 1, 5);
                     //if (spell.IsTargetted && spell.ValidTargets.Contains(SpellValidTargets.AllyWards))
                     //{
                     //    subMenu.Bool("WardJump", "Ward Jump");
                     //}
                     subMenu.Bool("Enabled", "Enabled");
                 }
                 evadeSpells.AddSubMenu(subMenu);
             }
             evadeMenu.AddSubMenu(evadeSpells);
         }
         //foreach (var hero in
         //    HeroManager.Enemies.Where(
         //        i =>
         //        SpellDatabase.Spells.Any(
         //            a =>
         //            string.Equals(a.ChampionName, i.ChampionName, StringComparison.InvariantCultureIgnoreCase)))
         //    )
         //{
         //    evadeMenu.AddSubMenu(new LeagueSharp.Common.Menu(hero.ChampionName.ToLowerInvariant(), "-> " + hero.ChampionName));
         //}
         foreach (var spell in
             SpellDatabase.Spells.Where(
                 i =>
                 HeroManager.Enemies.Any(
                     a =>
                     string.Equals(a.ChampionName, i.ChampionName, StringComparison.InvariantCultureIgnoreCase)))
             )
         {
             var subMenu = new LeagueSharp.Common.Menu(string.Format("{0} ({1})", spell.SpellName, spell.Slot), spell.SpellName);
             {
                 subMenu.Slider("DangerLevel", "Danger Level", spell.DangerValue, 1, 5);
                 subMenu.Bool("IsDangerous", "Is Dangerous", spell.IsDangerous);
                 subMenu.Bool("DisableFoW", "Disable FoW Dodging", false);
                 subMenu.Bool("Draw", "Draw",false);
                 subMenu.Bool("Enabled", "Enabled",false /*!spell.DisabledByDefault*/);
                 ((LeagueSharp.Common.Menu)evadeMenu.SubMenu(spell.ChampionName.ToLowerInvariant())).AddSubMenu(subMenu);
             }
         }
         evadeMenu.Bool("DrawStatus", "Draw Evade Status");
         evadeMenu.KeyBind("Enabled", "Enabled", Keys.K, KeyBindType.Toggle);
         evadeMenu.KeyBind("OnlyDangerous", "Dodge Only Dangerous", Keys.Space);
     }
     FioraProject.Program.Menu.AddSubMenu(evadeMenu);
 }
开发者ID:bachtuyet,项目名称:Assem,代码行数:67,代码来源:Config.cs


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