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


C# Spell.MenuColor方法代码示例

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


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

示例1: Game_OnGameLoad

        private static void Game_OnGameLoad(EventArgs args)
        {
            if (ObjectManager.Player.ChampionName != ChampionName)
            {
                return;
            }
            
            Q = new Spell(SpellSlot.Q, 1060f);
            Q.SetSkillshot(0.25f, 70f, 1800f, true, SkillshotType.SkillshotLine);

            W = new Spell(SpellSlot.W, 670f);
            E = new Spell(SpellSlot.E, 430f);
            R = new Spell(SpellSlot.R, 375f);

            igniteSlot = ObjectManager.Player.GetSpellSlot("SummonerDot");
            flashSlot = ObjectManager.Player.GetSpellSlot("SummonerFlash");
            SmiteDamageSlot = ObjectManager.Player.GetSpellSlot(SmitetypeDmg());
            SmiteHpSlot = ObjectManager.Player.GetSpellSlot(SmitetypeHp());

            Config = new Menu("Lee is Back!", "Lee Is Back", true).SetFontStyle(FontStyle.Regular, SharpDX.Color.GreenYellow);

            Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));
            Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking"));
            Orbwalker.SetAttack(true);

            new AssassinManager().Initialize();
            new GameItems().Initialize();
            MenuKeys = new Menu("Keys", "Keys").SetFontStyle(FontStyle.Regular, SharpDX.Color.IndianRed);
            {
                MenuKeys.AddItem(new MenuItem("Insec", "Insec")).SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press)).SetFontStyle(FontStyle.Regular, SharpDX.Color.Aquamarine);
                MenuKeys.AddItem(new MenuItem("Flee.Active.Ward", "Ward Jump")).SetValue(new KeyBind("A".ToCharArray()[0], KeyBindType.Press)).SetFontStyle(FontStyle.Regular, SharpDX.Color.IndianRed);
                MenuKeys.AddItem(new MenuItem("Flee.Active.QW", "Flee [Q / W]")).SetValue(new KeyBind("G".ToCharArray()[0], KeyBindType.Press)).SetFontStyle(FontStyle.Regular, SharpDX.Color.IndianRed);
                MenuKeys.AddItem(new MenuItem("Combo.Active", "Combo!")).SetValue(new KeyBind(Config.Item("Orbwalk").GetValue<KeyBind>().Key, KeyBindType.Press)).SetFontStyle(FontStyle.Regular, SharpDX.Color.Yellow);
                MenuKeys.AddItem(new MenuItem("Combo.WardJump", "Combo + Ward Jump to Far Enemy")).SetValue(new KeyBind("Z".ToCharArray()[0], KeyBindType.Press)).SetFontStyle(FontStyle.Regular, SharpDX.Color.Yellow);
                MenuKeys.AddItem(new MenuItem("Harass.QW", "Harass: Hit with Q -> Run with W:")).SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press)).SetFontStyle(FontStyle.Regular, SharpDX.Color.Aqua);
                Config.AddSubMenu(MenuKeys);
            }

            MenuInsec = new Menu("Insec Settings", "MenuInsec").SetFontStyle(FontStyle.Regular, SharpDX.Color.Yellow);
            {
                var str = new[] {"Don't Insec", "Insec If Enemy Alone", "Just Ward", "Ward + Flash (If need)"};
                foreach (var e in HeroManager.Enemies)
                {
                    MenuInsec.AddItem(new MenuItem("Insec." + e.ChampionName, e.ChampionName).SetValue(new StringList(str, 2)));
                }

                MenuInsec.AddItem(new MenuItem("Insec.Draw", "Draw Insec Last Position")).SetValue(new Circle(true, Color.Aqua));
                MenuInsec.AddItem(new MenuItem("Insec.Status", "Show Enemy Insec Status")).SetValue(true);
                
                Config.AddSubMenu(MenuInsec);
            }

            MenuFlee = new Menu("Flee / Ward Jump", "Flee");
            {
                Config.AddSubMenu(MenuFlee);
                ModeFlee.Initialize();
            }

            MenuKickWave = new Menu("R: Multiple Target", "RKickWave");
            {
                MenuKickWave.AddItem(new MenuItem("Combo.R.UseRKickWaveForKill", "R Multiple Target: For Killable Enemy!")).SetValue(true).SetFontStyle(FontStyle.Regular, R.MenuColor());
                MenuKickWave.AddItem(new MenuItem("Combo.R.UseRKickWaveForDamage", "R Multiple Target: If it'll Hit Enemy Count >")).SetValue(new StringList(new[] { "No", ">=2 target", ">=3 target", ">=4 target" }, 2)).SetFontStyle(FontStyle.Regular, R.MenuColor());
                MenuKickWave.AddItem(new MenuItem("Combo.R.UseRKickWaveUseWard", "Use WardJump for Cast Position")).SetValue(true).SetFontStyle(FontStyle.Regular, R.MenuColor());
                MenuKickWave.AddItem(new MenuItem("Draw.Custom", "Custom Draw").SetValue(new Slider(500, 0, 2500)));
                Config.AddSubMenu(MenuKickWave);
            }

            MenuCombo = new Menu("Combo", "Combo");
            {
                MenuCombo.AddItem(new MenuItem("Combo.SmiteQ", "Combo: Smite + Q")).SetValue(new StringList(new[] {"Off", "On"}, 1));
                MenuCombo.AddItem(new MenuItem("Combo.WJumpQ", "Combo: W + Q for the Far Enemy")).SetValue(new StringList(new[] {"Off", "On"}, 1));
                MenuCombo.AddItem(new MenuItem("UseSmitecombo", "Combo: Smite to Enemy")).SetValue(true);

                MenuCombo.AddItem(new MenuItem("Combo.W.UseNormal", "W: Normal Attack")).SetValue(false).SetFontStyle(FontStyle.Regular, W.MenuColor());
                MenuCombo.AddItem(new MenuItem("Combo.W.JumpToEnemyFoot", "W: Jump to the Enemy's Foot").SetValue(new StringList(new[] { "Off", "Use Ward", "Use Ally Minion/Champion", "Both" }, 2))).SetFontStyle(FontStyle.Regular, W.MenuColor()); ;
                Config.AddSubMenu(MenuCombo);
            }

            MenuHarass = new Menu("Harass", "Harass");
            {
                MenuHarass.AddItem(new MenuItem("Harass.Q", "Q:")).SetValue(new StringList(new[] {"Off", "Just Q1", "Q1 + Q2"}, 1));
                MenuHarass.AddItem(new MenuItem("Harass.E", "E:")).SetValue(new StringList(new[] {"Off", "Manual: Just on Harass Mode", "Auto: If Can Hit to Enemy"}));
                
                MenuHarass.AddItem(new MenuItem("Harass.Items", "Use Tiamat/Hydra")).SetValue(true);
                //                    menuHarass.AddItem(new MenuItem("UseQ1Har", "Use Q1 Harass")).SetValue(true);
                //                  menuHarass.AddItem(new MenuItem("UseQ2Har",Harass.Active "Use Q2 Harass")).SetValue(true);
                Config.AddSubMenu(MenuHarass);
            }
            //Farm
            MenuLane = new Menu("Lane", "Lane");
            {
                MenuLane.AddItem(new MenuItem("Lane.UseQ", "Q:")).SetValue(true);
                MenuLane.AddItem(new MenuItem("Lane.UseE", "E:")).SetValue(true);
                MenuLane.AddItem(new MenuItem("Lane.UseItems", "Use Items")).SetValue(true);
                MenuLane.AddItem(new MenuItem("UseQLH", "Q LastHit")).SetValue(true);
                Config.AddSubMenu(MenuLane);
            }

            MenuJungle = new Menu("Jungle", "Jungle");
            {
//.........这里部分代码省略.........
开发者ID:AwkwardDev,项目名称:LeagueSharp2,代码行数:101,代码来源:Program.cs


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