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


C# Menu.SetFontStyle方法代码示例

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


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

示例1: BadaoActivate

        public static void BadaoActivate()
        {
            // spells init
            BadaoMainVariables.Q = new Spell(SpellSlot.Q, 600);
            BadaoMainVariables.W = new Spell(SpellSlot.W, 2500);
            BadaoMainVariables.W.SetSkillshot(1f, 100, 10000,true, SkillshotType.SkillshotLine);
            BadaoMainVariables.W.MinHitChance = HitChance.Medium;
            BadaoMainVariables.E = new Spell(SpellSlot.E, 750); // radius 260
            BadaoMainVariables.R = new Spell(SpellSlot.R, 3500);
            BadaoMainVariables.R.SetSkillshot(0.45f, 100, 5000, false, SkillshotType.SkillshotLine);
            BadaoMainVariables.R.MinHitChance = HitChance.Medium;

            // main menu
            config = new Menu("BadaoKingdom " + ObjectManager.Player.ChampionName, ObjectManager.Player.ChampionName, true);
            config.SetFontStyle(System.Drawing.FontStyle.Bold, SharpDX.Color.YellowGreen);

            // orbwalker menu
            Menu orbwalkerMenu = new Menu("Orbwalker", "Orbwalker");
            BadaoMainVariables.Orbwalker = new Orbwalking.Orbwalker(orbwalkerMenu);
            config.AddSubMenu(orbwalkerMenu);

            // TS
            Menu ts = config.AddSubMenu(new Menu("Target Selector", "Target Selector")); ;
            TargetSelector.AddToMenu(ts);

            // Combo
            Menu Combo = config.AddSubMenu(new Menu("Combo", "Combo"));
            BadaoJhinVariables.ComboQ = Combo.AddItem(new MenuItem("ComboQ", "Q")).SetValue(true);
            BadaoJhinVariables.ComboW = Combo.AddItem(new MenuItem("ComboW", "W")).SetValue(true);
            BadaoJhinVariables.ComboE = Combo.AddItem(new MenuItem("ComboE", "E")).SetValue(true);

            // Harass
            Menu Harass = config.AddSubMenu(new Menu("Harass", "Harass"));
            BadaoJhinVariables.HarassQ = Harass.AddItem(new MenuItem("HarassQ", "Q")).SetValue(true);
            BadaoJhinVariables.HarassW = Harass.AddItem(new MenuItem("HarassW", "W")).SetValue(true);
            BadaoJhinVariables.HarassE = Harass.AddItem(new MenuItem("HarassE", "E")).SetValue(true);
            BadaoJhinVariables.HarassMana = Harass.AddItem(new MenuItem("HarassMana", "Mana Limit")).SetValue(new Slider(30, 0, 100));

            // LaneClear
            Menu LaneClear = config.AddSubMenu(new Menu("LaneClear", "LaneClear"));
            BadaoJhinVariables.LaneClearQ = LaneClear.AddItem(new MenuItem("LaneClearQ", "Q")).SetValue(true);
            BadaoJhinVariables.LaneClearMana = LaneClear.AddItem(new MenuItem("LaneClearMana", "Mana Limit")).SetValue(new Slider(30, 0, 100));

            // JungleClear
            Menu JungleClear = config.AddSubMenu(new Menu("JungleClear", "JungleClear"));
            BadaoJhinVariables.JungleClearQ = JungleClear.AddItem(new MenuItem("JungClearQ", "Q")).SetValue(true);
            BadaoJhinVariables.JungleClearW = JungleClear.AddItem(new MenuItem("JungClearW", "W")).SetValue(true);
            BadaoJhinVariables.JungleClearE = JungleClear.AddItem(new MenuItem("JungClearE", "E")).SetValue(true);
            BadaoJhinVariables.JungleClearMana = JungleClear.AddItem(new MenuItem("JungleClearMana", "Mana Limit")).SetValue(new Slider(30, 0, 100));

            // Auto
            Menu Auto = config.AddSubMenu(new Menu("Auto", "Auto"));
            BadaoJhinVariables.AutoR = Auto.AddItem(new MenuItem("AutoR", "Use R if channeling")).SetValue(true);
            BadaoJhinVariables.AutoW = Auto.AddItem(new MenuItem("AutoW", "Use W on Slowed Target")).SetValue(true);
            BadaoJhinVariables.AutoKS = Auto.AddItem(new MenuItem("AutoKS", "KS")).SetValue(true);
            BadaoJhinVariables.AutoMana = Auto.AddItem(new MenuItem("AutoMana", "Mana Limit")).SetValue(new Slider(30, 0, 100));

            // attach to mainmenu
            config.AddToMainMenu();
        }
开发者ID:badao,项目名称:BadaoKingdomTest,代码行数:60,代码来源:BadaoJhinConfig.cs

示例2: BadaoActivate

        public static void BadaoActivate()
        {
            // main menu
            config = new Menu("BadaoKingdomActivator", "BadaoKingdomActivator", true);
            config.SetFontStyle(System.Drawing.FontStyle.Bold, SharpDX.Color.YellowGreen);

            BadaoActivatorVariables.Youmuu = config.AddItem(new MenuItem("Youmuu","Youmuu")).SetValue(true);
            BadaoActivatorVariables.Botrk = config.AddItem(new MenuItem("Botrk", "Botrk")).SetValue(true);

            // attach to mainmenu
            config.AddToMainMenu();
        }
开发者ID:badao,项目名称:BadaoKingdomTest,代码行数:12,代码来源:BadaoActivatorConfig.cs

示例3: Initialize

        /// <summary>
        ///     Initializes static members of the <see cref="CustomInterrupter" /> class.
        /// </summary>
        public static void Initialize(Menu menu)
        {
            _menu = menu.AddMenu("CustomInterrupter", "Interrupter");
            _menu.SetFontStyle(FontStyle.Regular, Color.OrangeRed.ToSharpDXColor());

            // Initialize Properties
            InterruptableSpells = new Dictionary<string, List<InterruptableSpell>>();
            CastingInterruptableSpell = new Dictionary<int, InterruptableSpell>();

            InitializeSpells();

            // Trigger LastCastedSpell
            ObjectManager.Player.LastCastedspell();

            // Listen to required events
            Game.OnUpdate += Game_OnGameUpdate;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
            Spellbook.OnStopCast += Spellbook_OnStopCast;
        }
开发者ID:scalikoglu,项目名称:LeagueSharp,代码行数:22,代码来源:CustomInterrupter.cs

示例4: Game_OnGameLoad

        private static void Game_OnGameLoad(EventArgs args)
        {
            if (!Player.IsChampion("Illaoi"))
            {
                return;
            }

            Bootstrap.Initialize();

            Menu = new Menu("TentacleBabeIllaoi", "TentacleBabeIllaoi", true);
            Menu.SetFontStyle(FontStyle.Regular, ScriptColor);

            Orbwalker = Menu.AddOrbwalker();

            var spells = Menu.AddMenu("Spells", "Spells");

            var q = spells.AddMenu("Q", "Q");
            q.AddBool("QCombo", "Use in Combo");
            q.AddBool("QHarass", "Use in Harass");

            var w = spells.AddMenu("W", "W");
            w.AddBool("WCombo", "Use in Combo");
            w.AddBool("WHarass", "Use in Harass");

            var e = spells.AddMenu("E", "E");
            e.AddBool("ECombo", "Use in Combo");
            e.AddBool("EHarass", "Use in Harass");

            var r = spells.AddMenu("R", "R");
            r.AddBool("RCombo", "Use in Combo");
            r.AddBool("RHarass", "Use in Harass");

            Menu.AddToMainMenu();

            TentacleManager.Initialize();
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
            Game.OnUpdate += Game_OnUpdate;
            Orbwalking.AfterAttack += Orbwalking_AfterAttack;
        }
开发者ID:StopMotionCuber,项目名称:LeagueSharp-1,代码行数:39,代码来源:Program.cs

示例5: Game_OnGameLoad

        private static void Game_OnGameLoad(EventArgs args)
        {
            if (!Player.IsChampion("Fiora"))
            {
                return;
            }

            Bootstrap.Initialize();

            Menu = new Menu("jesuisFiora", "je suis Fiora", true);
            Menu.SetFontStyle(FontStyle.Regular, ScriptColor);

            Orbwalker = Menu.AddOrbwalker();

            var hr = Menu.SubMenu("Orbwalker").Item("HoldPosRadius").GetValue<Slider>();
            if (hr.Value < 60)
            {
                hr.Value = 60;
                Menu.SubMenu("Orbwalker").Item("HoldPosRadius").SetValue(hr);
            }

            var spells = Menu.AddMenu("Spells", "Spells");
            var passive = Menu.AddMenu("Passive", "Vital Settings");
            var wMenu = Menu.AddMenu("W", "W (SpellBlock)");

            var orbwalker = passive.AddMenu("Orbwalker", "Orbwalk Vital");

            orbwalker.AddKeyBind("OrbwalkPassive", "Orbwalk to Target Vital", 'N', KeyBindType.Toggle, true);
            orbwalker.Item("OrbwalkPassive").SetTooltip("Attempt to orbwalk to AA enemy vital.", ScriptColor);

            orbwalker.AddBool("OrbwalkCombo", "In Combo");
            orbwalker.Item("OrbwalkCombo").SetTooltip("Only orbwalk to vital in Combo mode.", ScriptColor);

            orbwalker.AddBool("OrbwalkHarass", "In Harass");
            orbwalker.Item("OrbwalkHarass").SetTooltip("Only orbwalk to vital in Harass mode.", ScriptColor);

            orbwalker.AddBool("OrbwalkPrepassive", "Orbwalk PreVital");
            orbwalker.Item("OrbwalkPrepassive")
                .SetTooltip("Orbwalk to a vital before it has been identified.", ScriptColor);

            orbwalker.AddBool("OrbwalkUltPassive", "Orbwalk Ultimate Vital");
            orbwalker.Item("OrbwalkUltPassive").SetTooltip("Orbwalk to ultimate vitals.", ScriptColor);

            orbwalker.AddBool("OrbwalkPassiveTimeout", "Orbwalk Near Timeout Vital");
            orbwalker.Item("OrbwalkPassiveTimeout")
                .SetTooltip("Orbwalk to  to vital as it is being timed out.", ScriptColor);

            orbwalker.AddBool("OrbwalkSelected", "Only Selected Target", true);
            orbwalker.Item("OrbwalkSelected")
                .SetTooltip("Target must be manually left clicked to orbwalk to vitals.", ScriptColor);

            orbwalker.AddBool("OrbwalkTurret", "Block Under Turret", false);
            orbwalker.Item("OrbwalkTurret").SetTooltip("In order to avoid walking under turrets.", ScriptColor);

            orbwalker.AddBool("OrbwalkQ", "Only if Q Down", false);
            orbwalker.Item("OrbwalkQ").SetTooltip("To avoid orbwalking to a vital that will be Q'ed to.", ScriptColor);

            orbwalker.AddBool("OrbwalkAARange", "Only in AA Range", false);
            orbwalker.Item("OrbwalkAARange").SetTooltip("Only orbwalk to vital if it is in AA range.", ScriptColor);

            orbwalker.AddBool("OrbwalkAA", "Only if not able to AA", false);
            orbwalker.Item("OrbwalkAA")
                .SetTooltip("Only orbwalk to vital if not able to AA, in order to avoid loss of dps.", ScriptColor);

            var qVital = passive.AddMenu("QVital", "Q Vital");
            qVital.AddBool("QPassive", "Only Q to Vitals", true);
            qVital.Item("QPassive").SetTooltip("Attempt to only Q to Fiora's vital passive.", ScriptColor);

            qVital.AddBool("QUltPassive", "Q to Ultimate Vital");
            qVital.Item("QUltPassive").SetTooltip("Q to ultimate vital passive.", ScriptColor);

            qVital.AddBool("QPrepassive", "Q to PreVital", false);
            qVital.Item("QPrepassive")
                .SetTooltip("Attempt to Q to vital before it has been identified. May not proc vital.", ScriptColor);

            qVital.AddBool("QPassiveTimeout", "Q to Near Timeout Vital");
            qVital.Item("QPassiveTimeout")
                .SetTooltip("Q to vital as it is being timed out. May not proc vital.", ScriptColor);

            qVital.AddBool("QInVitalBlock", "Block Q inside Vital Polygon");
            qVital.Item("QInVitalBlock").SetTooltip("Block Q if player is inside of enemy vital polygon.", ScriptColor);

            passive.AddBool("DrawCenter", "Draw Vital Center");
            passive.Item("DrawCenter").SetTooltip("Draw the center of vital polygon. No FPS drops.", ScriptColor);

            passive.AddBool("DrawPolygon", "Draw Vital Polygon", false);
            passive.Item("DrawPolygon").SetTooltip("Draw the vital polygon. Possibly causes FPS drops.", ScriptColor);

            passive.AddSlider("SectorMaxRadius", "Vital Polygon Range", 310, 300, 400);
            passive.Item("SectorMaxRadius")
                .SetTooltip("The max range of vital polygon. Draw polygon to understand what this is.", ScriptColor);

            passive.AddSlider("SectorAngle", "Vital Polygon Angle", 70, 60, 90);
            passive.Item("SectorAngle")
                .SetTooltip("The angle of vital polygon. Draw polygon to understand what this is.", ScriptColor);

            var qMenu = spells.AddMenu("Q", "Q");
            qMenu.AddBool("QCombo", "Use in Combo");
            qMenu.AddBool("QHarass", "Use in Harass");
            qMenu.AddSlider("QRangeDecrease", "Decrease Q Range", 10, 0, 150);
//.........这里部分代码省略.........
开发者ID:Faqer,项目名称:LeagueSharp,代码行数:101,代码来源:Program.cs

示例6: Lulu

        public Lulu()
        {
            Q = SpellManager.Q;
            W = SpellManager.W;
            E = SpellManager.E;
            R = SpellManager.R;

            Menu = new Menu("Lulu", "Lulu", true);
            Menu.SetFontStyle(FontStyle.Regular, Color.MediumPurple);
            Orbwalker = Menu.AddOrbwalker();

            var combo = Menu.AddMenu("Spells", "Spells");
            combo.SetFontStyle(FontStyle.Regular, System.Drawing.Color.DeepSkyBlue.ToSharpDXColor());

            var q = combo.AddMenu("Q", "Q");
            q.AddBool("QCombo", "Use in Combo");
            q.AddBool("QHarass", "Use in Harass");
            q.AddInfo("QMisc2", "-- Misc --", Color.DeepSkyBlue);
            q.AddBool("QPix", "Use Pix Q", false);
            q.Item("QPix").SetTooltip("Use Pix to Cast Q");
            q.AddBool("EQPix", "Use Extended Q (E->Q)");
            q.Item("EQPix").SetTooltip("Use E to cast Pix Q");
            q.AddBool("QGapcloser", "Use Q on Gapcloser");
            q.AddBool("QImpaired", "Auto Q Movement Impaired", false);
            q.AddInfo("QMisc1", "-- Farm --", Color.Red);
            q.AddBool("QFarm", "Use Q to Farm");
            q.AddBool("QLC", "Use in LaneClear");
            q.AddBool("QLH", "Use in LastHit", false);


            var w = combo.AddMenu("W", "W");

            var wEnemies = w.AddMenu("WEnemies", "Enemy Priority");
            foreach (var enemy in Enemies)
            {
                wEnemies.AddSlider(enemy.ChampionName + "WPriority", enemy.ChampionName, 1, 0, 5);
            }

            wEnemies.AddInfo("WEnemiesInfo", "0 means don't cast, 5 is highest priority", Color.DeepSkyBlue);
            wEnemies.AddBool("WPriority", "Priority Enabled", false);

            w.AddBool("WCombo", "Use on Enemy in Combo");
            w.AddBool("WHarass", "Use on Enemy in Harass");
            w.AddBool("WGapcloser", "Use W on Gapcloser");
            w.AddBool("WInterrupter", "Use W to Interrupt");

            var e = combo.AddMenu("E", "E");

            var eAllies = e.AddMenu("EAllies", "Ally Shielding");
            foreach (var ally in Allies)
            {
                eAllies.AddSlider(ally.ChampionName + "EPriority", ally.ChampionName + " Min Health", 20);
            }

            eAllies.AddInfo("EAlliesInfo", "Set to 0 to never shield ally.", Color.DeepSkyBlue);
            eAllies.AddBool("EAuto", "Use E on Allies");

            e.AddBool("ECombo", "Use on Enemy in Combo");
            e.AddBool("EHarass", "Use on Enemy in Harass");

            var r = combo.AddMenu("R", "R");

            var saver = r.AddMenu("Saver", "Saver");
            foreach (var ally in Allies)
            {
                saver.AddSlider(ally.ChampionName + "RPriority", ally.ChampionName + " Min Health", 15);
            }

            saver.AddInfo("RAlliesInfo", "Set to 0 to never ult ally.", Color.DeepSkyBlue);
            saver.AddBool("RAuto", "Use R on Allies");

            r.AddKeyBind("RForce", "Force Ult Ally", 'K');
            r.Item("RForce").SetTooltip("Casts R on the lowest HP ally in R range");
            r.AddBool("RInterrupter", "Use R on Interrupt");

            r.AddBool("RKnockup", "Auto R to Knockup");
            r.AddSlider("RKnockupEnemies", "Min Enemes to Knockup", 2, 1, 5);

            var ks = Menu.AddMenu("Killsteal", "Killsteal");
            ks.SetFontStyle(FontStyle.Regular, Color.Red);
            ks.AddBool("KSEnabled", "Enabled");
            ks.AddBool("KSQ", "Use Q");
            ks.AddBool("KSE", "Use E");
            ks.AddBool("KSEQ", "Use E->Q");

            ManaManager.Initialize(Menu);
            Q.SetManaCondition(ManaManager.ManaMode.Combo, 5);
            Q.SetManaCondition(ManaManager.ManaMode.Harass, 5);
            Q.SetManaCondition(ManaManager.ManaMode.Farm, 30);
            W.SetManaCondition(ManaManager.ManaMode.Combo, 15);
            W.SetManaCondition(ManaManager.ManaMode.Harass, 15);
            E.SetManaCondition(ManaManager.ManaMode.Combo, 10);
            E.SetManaCondition(ManaManager.ManaMode.Harass, 10);

            var flee = Menu.AddMenu("Flee", "Flee");
            flee.SetFontStyle(FontStyle.Regular, Color.Yellow);
            flee.AddInfo("FleeInfo", " --> Flees towards cursor position.", Color.Yellow);
            flee.AddKeyBind("Flee", "Flee", 'T');
            flee.AddBool("FleeW", "Use W");
            flee.AddBool("FleeMove", "Move to Cursor Position");
//.........这里部分代码省略.........
开发者ID:scalikoglu,项目名称:LeagueSharp,代码行数:101,代码来源:Lulu.cs

示例7: Game_OnGameLoad

        private static void Game_OnGameLoad(EventArgs args)
        {
            if (!Player.IsChampion("Kindred"))
            {
                return;
            }

            Menu = new Menu("KindredSpirits", "KindredSpirits", true);
            Menu.SetFontStyle(FontStyle.Regular, ScriptColor);

            Orbwalker = Menu.AddOrbwalker();
            Menu.AddTargetSelector();

            var spells = Menu.AddMenu("Spells", "Spells");

            var qMenu = spells.AddMenu("Q", "Q");
            qMenu.AddBool("QCombo", "Use in Combo");
            qMenu.AddBool("QHarass", "Use in Harass");
            qMenu.AddBool("QSafety", "Q Safety Check");
            qMenu.AddBool("QKiteMachine", "Q KiteMachine");
            qMenu.AddInfo("KiteInfo", " --> Q's towards cursor position if enemy will be hit.", ScriptColor);
            qMenu.AddKeyBind("QFlee", "Q Flee", 'T');
            qMenu.AddInfo("FleeInfo", " --> Flees towards cursor position.", ScriptColor);
            qMenu.AddBool("QGapClose", "AntiGapclose with Q");
            qMenu.AddBool("QKillsteal", "Use for Killsteal");

            var wMenu = spells.AddMenu("W", "W");
            wMenu.AddBool("WCombo", "Use in Combo");
            wMenu.AddBool("WHarass", "Use in Harass");

            var eMenu = spells.AddMenu("E", "E");
            eMenu.AddBool("ECombo", "Use in Combo");
            eMenu.AddBool("EHarass", "Use in Harass");
            eMenu.AddBool("EBeforeAttack", "Only Use E Before Attack", false);
            eMenu.AddInfo("BeforeAttackInfo", " --> When enemy is close to leaving AA range.", ScriptColor);
            eMenu.AddBool("ESelectedTarget", "Only E Selected Target", false);

            var rMenu = spells.AddMenu("R", "R");

            var savingMenu = rMenu.AddMenu("SavingMode", "Saving Spirits Settings");
            var allyMenu = savingMenu.AddMenu("RAlly", "Allied Champions");

            foreach (var ally in Allies.Where(a => !a.IsMe))
            {
                allyMenu.AddBool("R" + ally.ChampionName, "Use on " + ally.ChampionName);
                allyMenu.AddSlider("RHP" + ally.ChampionName, "Health Percent", 15);
            }

            savingMenu.AddSlider("SavingAllies", "Minimum Allies In Range", 2, 0, 5);
            savingMenu.AddSlider("SavingEnemies", "Maximum Enemies In Range", 2, 0, 5);

            rMenu.AddBool("RCombo", "Use R");
            rMenu.AddSlider("RSelf", "Self Health Percent", 15);

            var items = spells.AddMenu("Items", "Items");
            items.AddBool("ItemsCombo", "Use in Combo");
            items.AddBool("ItemsHarass", "Use in Harass");

            spells.AddBool("IgniteKillsteal", "Ignite Killsteal");
            spells.AddBool("SmiteKillsteal", "Smite Killsteal");
            spells.AddSlider("ManaHarass", "Harass Min Mana Percent", 40);

            var farm = Menu.AddMenu("Farm", "Farm");
            farm.AddBool("QLaneClear", "Q LaneClear");
            farm.AddBool("QJungleClear", "Q Jungle Clear");
            farm.AddSlider("QFarmMana", "Q Min Mana Percent", 40);
            farm.AddBool("WLaneClear", "Farm with W");
            farm.AddBool("EJungleClear", "E Jungle Clear");

            farm.AddKeyBind("FarmEnabled", "Farm Enabled", 'J', KeyBindType.Toggle, true);
            farm.AddInfo("FarmInfo", " --> Enabled in LaneClear and LastHit", ScriptColor);
            farm.AddBool("ItemsLaneClear", "Use Items in LaneClear");

            var draw = Menu.AddMenu("Drawing", "Drawing");
            draw.AddCircle("0Draw", "Draw Q", System.Drawing.Color.Purple, SpellManager.Q.Range);
            draw.AddCircle("1Draw", "Draw W", System.Drawing.Color.DeepPink, SpellManager.W.Range);
            draw.AddCircle("2Draw", "Draw E", System.Drawing.Color.Blue, SpellManager.E.Range);
            draw.AddCircle("3Draw", "Draw R", System.Drawing.Color.White, SpellManager.R.Range);
            draw.AddBool("FarmPermashow", "Permashow Farm Enabled");

            if (draw.Item("FarmPermashow").IsActive())
            {
                farm.Item("FarmEnabled").Permashow(true, null, ScriptColor);
            }

            draw.Item("FarmPermashow").ValueChanged +=
                (sender, eventArgs) =>
                {
                    farm.Item("FarmEnabled").Permashow(eventArgs.GetNewValue<bool>(), null, ScriptColor);
                };

            var dmg = draw.AddMenu("DamageIndicator", "Damage Indicator");
            dmg.AddBool("DmgEnabled", "Draw Damage Indicator");
            dmg.AddCircle("HPColor", "Predicted Health Color", System.Drawing.Color.White);
            dmg.AddCircle("FillColor", "Damage Color", System.Drawing.Color.Blue);
            dmg.AddBool("Killable", "Killable Text");

            PassiveManager.Initialize();

            //Menu.AddBool("Sounds", "Sounds");
//.........这里部分代码省略.........
开发者ID:ScarletRapier,项目名称:LeagueSharp,代码行数:101,代码来源:Program.cs

示例8: Game_OnGameLoad

        private static void Game_OnGameLoad(EventArgs args)
        {
            if (Player.ChampionName != "Kayle")
            {
                return;
            }

            Q = new Spell(SpellSlot.Q, 650);
            W = new Spell(SpellSlot.W, 900);
            E = new Spell(SpellSlot.E, 525);
            R = new Spell(SpellSlot.R, 900);

            Menu = new Menu("Challenjour Kayle", "Challenjour Kayle", true);
            Menu.SetFontStyle(System.Drawing.FontStyle.Regular, Frosty);

            Menu orbwalkerMenu = Menu.AddSubMenu(new Menu("Orbwalker", "Orbwalker"));
            Orbwalker = new Orbwalking.Orbwalker(orbwalkerMenu);
            orbwalkerMenu.SetFontStyle(System.Drawing.FontStyle.Regular, Frosty);

            Menu ts = Menu.AddSubMenu(new Menu("Target Selector", "Target Selector"));
            TargetSelector.AddToMenu(ts);
            ts.SetFontStyle(System.Drawing.FontStyle.Regular, Frosty);

            Menu comboMenu = Menu.AddSubMenu(new Menu("Combo", "Combo"));
            comboMenu.AddItem(new MenuItem("comboQ", "Use Q").SetValue(true));
            comboMenu.AddItem(new MenuItem("comboW", "Use W").SetValue(true));
            comboMenu.AddItem(new MenuItem("comboE", "Use E").SetValue(true));
            comboMenu.AddItem(new MenuItem("Combo", "Combo").SetValue(new KeyBind(32, KeyBindType.Press)));
            comboMenu.SetFontStyle(System.Drawing.FontStyle.Regular, Frosty);

            Menu harassMenu = Menu.AddSubMenu(new Menu("Harass", "Harass"));
            harassMenu.AddItem(new MenuItem("harassQ", "Use Q").SetValue(true));
            harassMenu.AddItem(new MenuItem("harassW", "Use W").SetValue(false));
            harassMenu.AddItem(new MenuItem("harassE", "Use E").SetValue(true));
            harassMenu.AddItem(new MenuItem("Harass", "Harass").SetValue(new KeyBind("C".ToCharArray()[0], KeyBindType.Press)));
            harassMenu.SetFontStyle(System.Drawing.FontStyle.Regular, Frosty);

            Menu clearMenu = Menu.AddSubMenu(new Menu("LaneClear", "Lane Clear"));
            clearMenu.AddItem(new MenuItem("clearQ", "Use Q").SetValue(true));
            clearMenu.AddItem(new MenuItem("clearE", "Use E").SetValue(true));
            clearMenu.AddItem(new MenuItem("clearManager", "Use Mana Manager").SetValue(true));
            clearMenu.AddItem(new MenuItem("clearMP", "Lane Clear if Mana % >")).SetValue(new Slider(45, 1, 100));
            clearMenu.AddItem(new MenuItem("LaneClear", "Lane Clear").SetValue(new KeyBind("V".ToCharArray()[0], KeyBindType.Press)));
            clearMenu.SetFontStyle(System.Drawing.FontStyle.Regular, Frosty);

            Menu healMenu = Menu.AddSubMenu(new Menu("Auto Heal", "Auto Heal"));
            healMenu.AddItem(new MenuItem("healMe", "Use W On Self").SetValue(true));
            healMenu.AddItem(new MenuItem("healMeHP", "Use W On Self %")).SetValue(new Slider(70, 1, 100));
            healMenu.AddItem(new MenuItem("healAlly", "Use W On Ally").SetValue(true));
            healMenu.AddItem(new MenuItem("healAllyHP", "Use W On Ally %")).SetValue(new Slider(65, 1, 100));
            healMenu.SetFontStyle(System.Drawing.FontStyle.Regular, Frosty);

            Menu fleeMenu = Menu.AddSubMenu(new Menu("Flee", "Flee"));
            fleeMenu.AddItem(new MenuItem("Flee", "Flee").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));
            fleeMenu.SetFontStyle(System.Drawing.FontStyle.Regular, Frosty);

            Menu rMenu = Menu.AddSubMenu(new Menu("R", "R"));
            rMenu.AddItem(new MenuItem("rSelf", "R Self").SetValue(true));
            rMenu.AddItem(new MenuItem("rSelfhp", "R Self On % HP").SetValue(new Slider(25, 1, 100)));
            rMenu.AddItem(new MenuItem("rAlly", "R Ally").SetValue(true));
            rMenu.AddItem(new MenuItem("rAllyhp", "R Ally On % HP").SetValue(new Slider(20, 1, 100)));
            rMenu.SetFontStyle(System.Drawing.FontStyle.Regular, Frosty);

            Menu drawMenu = Menu.AddSubMenu(new Menu("Drawings", "Drawings"));
            drawMenu.AddItem(new MenuItem("drawQ", "Draw Q").SetValue(true));
            drawMenu.AddItem(new MenuItem("drawW", "Draw W").SetValue(true));
            drawMenu.AddItem(new MenuItem("drawE", "Draw E").SetValue(true));
            drawMenu.AddItem(new MenuItem("drawR", "Draw R").SetValue(true));
            drawMenu.SetFontStyle(System.Drawing.FontStyle.Regular, Frosty);

            Menu.AddToMainMenu();
            Drawing.OnDraw += Drawing_OnDraw;
            Game.OnUpdate += Game_OnUpdate;
            Notifications.AddNotification("Challenjour Kayle LOADED!", 10000);
            Game.PrintChat("<font color=\"#00FFFF\">Challenjour Kayle by Frosty</font> - <font color=\"#00FFFF\">Loaded!</font>");
        }
开发者ID:LeFrosty,项目名称:LeagueSharp,代码行数:76,代码来源:Program.cs

示例9: Katarina

        public Katarina()
        {
            Q = SpellManager.Q;
            W = SpellManager.W;
            E = SpellManager.E;
            R = SpellManager.R;

            Menu = new Menu("Staberina", "Staberina", true);
            Menu.SetFontStyle(FontStyle.Regular, ScriptColor);

            Orbwalker = Menu.AddOrbwalker();

            var spells = Menu.AddMenu("Spells", "Spells");

            var qMenu = spells.AddMenu("Q", "Q");
            qMenu.AddBool("QCombo", "Use in Combo");
            qMenu.AddBool("QHarass", "Use in Harass");

            var wMenu = spells.AddMenu("W", "W");
            wMenu.AddBool("WCombo", "Use in Combo");
            wMenu.AddBool("WHarass", "Use in Harass");
            wMenu.AddBool("WAuto", "Auto W", false);

            var eMenu = spells.AddMenu("E", "E");
            eMenu.AddBool("ECombo", "Use in Combo");
            eMenu.AddBool("EHarass", "Use in Harass");
            eMenu.AddSlider("EEnemies", "Max Enemies", 5, 1, 5);
            eMenu.Item("EEnemies").SetTooltip("Maximum enemies to E into in Combo.");

            var rMenu = spells.AddMenu("R", "R");

            rMenu.AddBool("RCombo", "Smart R");
            rMenu.Item("RCombo").SetTooltip("Use R in Combo when killable enemy is around");
            rMenu.AddSlider("RUltTicks", "Smart R Ticks", 7, 1, 10);
            rMenu.Item("RUltTicks").SetTooltip("For damage calculation. One tick is 250 ms of channeling.");

            rMenu.AddSlider("RRangeDecrease", "Decrease Range", 30);
            rMenu.Item("RRangeDecrease").ValueChanged += (sender, args) =>
            {
                R.Range = RRange - args.GetNewValue<Slider>().Value;
                var rDraw = Menu.Item("3Draw");
                if (rDraw == null)
                {
                    return;
                }
                var rCircle = rDraw.GetValue<Circle>();
                rDraw.SetValue(new Circle(rCircle.Active, rCircle.Color, R.Range));
            };
            R.Range = RRange - rMenu.Item("RRangeDecrease").GetValue<Slider>().Value;

            rMenu.AddBool("RInCombo", "Always R in Combo", false);
            rMenu.AddBool("RMovement", "Disable Movement while casting R");
            rMenu.AddBool("REvade", "Disable Evade while casting R");
            rMenu.AddBool("RCancelNoEnemies", "Cancel R if no enemies", false);
            rMenu.AddKeyBind("RCancelUlt", "Cancel R Key", 'J');

            var ks = Menu.AddMenu("Killsteal", "Killsteal");
            ks.AddBool("KSEnabled", "Use Smart KS");

            ks.AddInfo("KSInfo", "-- Spells --", ScriptColor);
            ks.AddBool("KSQ", "Use Q");
            ks.AddBool("KSW", "Use W");
            ks.AddBool("KSE", "Use E");
            ks.AddBool("KSR", "Use Smart R");
            ks.Item("KSR").SetTooltip("Uses ultimate tick amount from Spells > R.");

            ks.AddInfo("KSInfo2", "-- Misc --", ScriptColor);
            ks.AddBool("KSRCancel", "Cancel R to KS");
            ks.Item("KSRCancel").SetTooltip("Cancel ultimate channel to KS with other spells.");
            ks.AddSlider("KSEnemies", "Max Enemies", 5, 1, 5);
            ks.Item("KSEnemies").SetTooltip("Maximum enemies to E in to KS.");
            ks.AddSlider("KSHealth", "Min Health", 10);
            ks.Item("KSHealth").SetTooltip("Minimum health to E in to KS.");
            ks.AddBool("KSGapclose", "Gapclose with E", false);
            ks.Item("KSGapclose").SetTooltip("Cast E to units in range of killable target.");
            ks.AddBool("KSWardJump", "Ward Jump", false);
            ks.Item("KSWardJump").SetTooltip("Ward jump with e to killable target.");
            ks.AddBool("KSTurret", "Block E Under Turret");
            ks.Item("KSTurret").SetTooltip("Don't attempt to KS units (with E) under turret.");

            var farm = Menu.AddMenu("Farm", "Farm");

            var qFarm = farm.AddMenu("FarmQ", "Q");
            qFarm.AddBool("QFarm", "Use in Farm");
            qFarm.AddBool("QLastHit", "Only Last Hit (Only Killable)");

            var wFarm = farm.AddMenu("FarmW", "W");
            wFarm.AddBool("WFarm", "Use in Farm");
            wFarm.AddSlider("WMinionsHit", "Min Minions Killed", 2, 1, 4);

            var eFarm = farm.AddMenu("FarmE", "E");
            eFarm.AddBool("EFarm", "Use E->W in Farm", false);
            eFarm.AddSlider("EMinionsHit", "Min Minions Killed", 3, 1, 4);

            farm.AddKeyBind("FarmEnabled", "Farm Enabled", 'J', KeyBindType.Toggle, true);
            farm.Item("FarmEnabled").SetTooltip("Enabled in LastHit and LaneClear mode.", ScriptColor);

            var flee = Menu.AddMenu("Flee", "Flee");
            flee.AddKeyBind("FleeEnabled", "Flee Enabled", 'T');
            flee.AddBool("FleeE", "Use E");
//.........这里部分代码省略.........
开发者ID:StopMotionCuber,项目名称:LeagueSharp-1,代码行数:101,代码来源:Katarina.cs

示例10: Game_OnGameLoad

        private static void Game_OnGameLoad(EventArgs args)
        {
            if (Player.ChampionName != "Shyvana")
                return;
            // spells
            Q = new Spell(SpellSlot.Q);
            W = new Spell(SpellSlot.W);
            E = new Spell(SpellSlot.E,950);
            E.SetSkillshot(0.25f, 60, 1700, false, SkillshotType.SkillshotLine);
            R = new Spell(SpellSlot.R,1000);
            R.SetSkillshot(0.25f, 150, 1500, false, SkillshotType.SkillshotLine);
            // smite
            foreach (var spell in
                Player.Spellbook.Spells.Where(
                    sSpell =>
                    sSpell.Name.ToLower().Contains("smite")
                    && (sSpell.Slot == SpellSlot.Summoner1 || sSpell.Slot == SpellSlot.Summoner2)))
            {
                Smite = spell.Slot;
            }

            Menu = new Menu("HeavenStrike" + Player.ChampionName, Player.ChampionName, true);
            Menu.SetFontStyle(System.Drawing.FontStyle.Bold, SharpDX.Color.Red);

            Menu orbwalkerMenu = new Menu("Orbwalker", "Orbwalker");
            Orbwalker = new Orbwalking.Orbwalker(orbwalkerMenu);
            Menu.AddSubMenu(orbwalkerMenu);
            Menu ts = Menu.AddSubMenu(new Menu("Target Selector", "Target Selector")); ;
            TargetSelector.AddToMenu(ts);

            Menu Harass = Menu.AddSubMenu(new Menu("Harass", "Harass"));

            Menu Combo = Menu.AddSubMenu(new Menu("Combo", "Combo"));

            Menu JungClear = Menu.AddSubMenu(new Menu("Jungle Clear", "Jungle Clear"));

            Menu LaneClear = Menu.AddSubMenu(new Menu("Lane Clear", "Lane Clear"));

            Menu Ks = Menu.AddSubMenu(new Menu("Ks", "Ks"));

            Menu SmiteMenu = Menu.AddSubMenu(new Menu("Smite", "Smite"));

            Menu Draw = Menu.AddSubMenu(new Menu("Draw", "Draw")); ;

            Harass.AddItem(new MenuItem("harass w", "W").SetValue(true));
            Harass.AddItem(new MenuItem("harass e", "E").SetValue(true));

            Combo.AddItem(new MenuItem("combo e", "E").SetValue(true));
            Combo.AddItem(new MenuItem("combo w", "W").SetValue(true));
            Combo.AddItem(new MenuItem("combo r", "R").SetValue(true));
            Combo.AddItem(new MenuItem("combo youmuu", "Youmuu").SetValue(true));
            Combo.AddItem(new MenuItem("combo botrk", "Bilgewater/Botrk").SetValue(true));

            LaneClear.AddItem(new MenuItem("laneclear q", "Q").SetValue(true));
            LaneClear.AddItem(new MenuItem("laneclear w", "W").SetValue(true));
            LaneClear.AddItem(new MenuItem("laneclear e", "E").SetValue(true));
            LaneClear.AddItem(new MenuItem("laneclear tiamat", "Tiamat/Ravenous Hydra").SetValue(true));

            JungClear.AddItem(new MenuItem("jungleclear q", "Q").SetValue(true));
            JungClear.AddItem(new MenuItem("jungleclear w", "W").SetValue(true));
            JungClear.AddItem(new MenuItem("jungleclear e", "E").SetValue(true));
            JungClear.AddItem(new MenuItem("jungleclear tiamat", "Tiamat/Ravenous Hydra").SetValue(true));

            Ks.AddItem(new MenuItem("ks e", "E").SetValue(true));
            Ks.AddItem(new MenuItem("ks r", "R").SetValue(true));
            Ks.AddItem(new MenuItem("ks tiamat", "Tiamat-Ravenous Hydra").SetValue(true));
            Ks.AddItem(new MenuItem("ks botrk", "Botrk").SetValue(true));
            Ks.AddItem(new MenuItem("ks cutlass", "Bilgewater Cutlass").SetValue(true));

            SmiteMenu.AddItem(new MenuItem("smite ks", "Use Smite ks").SetValue(true));
            SmiteMenu.AddItem(new MenuItem("smite auto", "Auto Smite Dragon/Baron").SetValue(true));
            SmiteMenu.AddItem(new MenuItem("smite combo", "Use Smite Combo").SetValue(true));

            Draw.AddItem(new MenuItem("draw e","E").SetValue(true));
            Draw.AddItem(new MenuItem("draw r","R").SetValue(true));

            Menu.AddToMainMenu();

            LeagueSharp.Drawing.OnDraw += Drawing_OnDraw;
            //GameObject.OnCreate += GameObject_OnCreate;
            Game.OnUpdate += Game_OnGameUpdate;
            Orbwalking.AfterAttack += AfterAttack;
            Orbwalking.OnAttack += OnAttack;
            Orbwalking.BeforeAttack += Orbwalking_BeforeAttack;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;

            Game.PrintChat("Welcome to HeavenStrikeShyvana");
        }
开发者ID:badao,项目名称:HeavenStrikeShyvana,代码行数:88,代码来源:Program.cs

示例11: Game_OnGameLoad

        private static void Game_OnGameLoad(EventArgs args)
        {
            if (Player.ChampionName != "Fiora")
                return;
            Q = new Spell(SpellSlot.Q, 400);
            W = new Spell(SpellSlot.W, 750);
            E = new Spell(SpellSlot.E);
            R = new Spell(SpellSlot.R);
            W.SetSkillshot(0.75f, 80, 2000, false, SkillshotType.SkillshotLine);
            W.MinHitChance = HitChance.High;


            Menu = new Menu("Project" + Player.ChampionName, Player.ChampionName, true);
            Menu.SetFontStyle(System.Drawing.FontStyle.Bold,SharpDX.Color.DeepPink);

            Menu orbwalkerMenu = new Menu("Orbwalker", "Orbwalker");
            Orbwalker = new FioraProject.Orbwalking.Orbwalker(orbwalkerMenu);
            Menu.AddSubMenu(orbwalkerMenu);
            Menu ts = Menu.AddSubMenu(new Menu("Target Selector", "Target Selector")); ;
            TargetSelector.AddToMenu(ts);
            Menu spellMenu = Menu.AddSubMenu(new Menu("Spell", "Spell"));

            Menu Harass = spellMenu.AddSubMenu(new Menu("Harass", "Harass"));

            Menu Combo = spellMenu.AddSubMenu(new Menu("Combo", "Combo"));

            Menu Target = Menu.AddSubMenu(new Menu("Targeting Modes", "Targeting Modes"));

            Menu PriorityMode = Target.AddSubMenu(new Menu("Priority", "Priority Mode"));

            Menu OptionalMode = Target.AddSubMenu(new Menu("Optional", "Optional Mode"));

            Menu SelectedMode = Target.AddSubMenu(new Menu("Selected", "Selected Mode"));

            Menu LaneClear = spellMenu.AddSubMenu(new Menu("Lane Clear", "Lane Clear"));

            spellMenu.AddItem(new MenuItem("Orbwalk Last Right Click", "Orbwalk Last Right Click")
                .SetValue(new KeyBind('Y', KeyBindType.Press))).ValueChanged += OrbwalkLastClick.OrbwalkLRCLK_ValueChanged;

            Menu JungClear = spellMenu.AddSubMenu(new Menu("Jungle Clear", "Jungle Clear"));

            Menu Misc = Menu.AddSubMenu(new Menu("Misc","Misc"));

            Menu Draw = Menu.AddSubMenu(new Menu("Draw", "Draw")); ;

            Harass.AddItem(new MenuItem("Use Q Harass", "Q Enable").SetValue(true));
            Harass.AddItem(new MenuItem("Use Q Harass Gap", "Use Q to gapclose").SetValue(true));
            Harass.AddItem(new MenuItem("Use Q Harass Pre Pass", "Use Q to hit pre-passive spot").SetValue(true));
            Harass.AddItem(new MenuItem("Use Q Harass Pass", "Use Q to hit passive").SetValue(true));
            Harass.AddItem(new MenuItem("Use E Harass", "E Enable").SetValue(true));
            Harass.AddItem(new MenuItem("Mana Harass", "Mana Harass").SetValue(new Slider(40, 0, 100)));

            Combo.AddItem(new MenuItem("Use Q Combo", "Q Enable").SetValue(true));
            Combo.AddItem(new MenuItem("Use Q Combo Gap", "Use Q to gapclose").SetValue(true));
            Combo.AddItem(new MenuItem("Use Q Combo Pre Pass", "Use Q to hit pre-passive spot").SetValue(true));
            Combo.AddItem(new MenuItem("Use Q Combo Pass", "Use Q to hit passive").SetValue(true));
            Combo.AddItem(new MenuItem("Use Q Combo Gap Minion", "Use Q minion to gapclose").SetValue(false));
            Combo.AddItem(new MenuItem("Use Q Combo Gap Minion Value", "Q minion gapclose if % cdr >=").SetValue(new Slider(25, 0, 40)));
            Combo.AddItem(new MenuItem("Use E Combo", "E Enable").SetValue(true));
            Combo.AddItem(new MenuItem("Use R Combo", "R Enable").SetValue(true));
            Combo.AddItem(new MenuItem("Use R Combo LowHP", "Use R LowHP").SetValue(true));
            Combo.AddItem(new MenuItem("Use R Combo LowHP Value", "R LowHP if player hp <").SetValue(new Slider(40, 0, 100)));
            Combo.AddItem(new MenuItem("Use R Combo Killable", "Use R Killable").SetValue(true));
            Combo.AddItem(new MenuItem("Use R Combo On Tap", "Use R on Tap").SetValue(true));
            Combo.AddItem(new MenuItem("Use R Combo On Tap Key", "R on Tap key").SetValue(new KeyBind('G', KeyBindType.Press)));
            Combo.AddItem(new MenuItem("Use R Combo Always", "Use R Always").SetValue(false));

            Target.AddItem(new MenuItem("Targeting Mode", "Targeting Mode").SetValue(new StringList(new string[] { "Optional", "Selected", "Priority", "Normal" })));
            Target.AddItem(new MenuItem("Orbwalk To Passive Range", "Orbwalk To Passive Range").SetValue(new Slider(300, 250, 500)));
            Target.AddItem(new MenuItem("Focus Ulted Target", "Focus Ulted Target").SetValue(false));
            Target.AddItem(new MenuItem("Note1", "Go in each Mode menu to customize what you want!"));
            Target.AddItem(new MenuItem("Note2", "Please remember Orbwalk to Passive spot only works"));
            Target.AddItem(new MenuItem("Note3", "in \" Combo Orbwalk to Passive\" mode can be found"));
            Target.AddItem(new MenuItem("Note4", "in orbwalker menu!"));

            PriorityMode.AddItem(new MenuItem("Priority Range", "Priority Range").SetValue(new Slider(1000, 300, 1000)));
            PriorityMode.AddItem(new MenuItem("Priority Orbwalk to Passive", "Orbwalk to Passive").SetValue(true));
            PriorityMode.AddItem(new MenuItem("Priority Under Tower", "Under Tower").SetValue(true));
            foreach (var hero in HeroManager.Enemies)
            {
                PriorityMode.AddItem(new MenuItem("Priority" + hero.ChampionName, hero.ChampionName).SetValue(new Slider(2, 1, 5)));
            }

            OptionalMode.AddItem(new MenuItem("Optional Range", "Optional Range").SetValue(new Slider(1000, 300, 1000)));
            OptionalMode.AddItem(new MenuItem("Optional Orbwalk to Passive", "Orbwalk to Passive").SetValue(true));
            OptionalMode.AddItem(new MenuItem("Optional Under Tower", "Under Tower").SetValue(false));
            OptionalMode.AddItem(new MenuItem("Optional Switch Target Key", "Switch Target Key").SetValue(new KeyBind('T', KeyBindType.Press)));
            OptionalMode.AddItem(new MenuItem("Note5", "Also Can Left-click the target to switch!"));

            SelectedMode.AddItem(new MenuItem("Selected Range", "Selected Range").SetValue(new Slider(1000, 300, 1000)));
            SelectedMode.AddItem(new MenuItem("Selected Orbwalk to Passive", "Orbwalk to Passive").SetValue(true));
            SelectedMode.AddItem(new MenuItem("Selected Under Tower", "Under Tower").SetValue(false));
            SelectedMode.AddItem(new MenuItem("Selected Switch If No Selected", "Switch to Optional if no target").SetValue(true));

            LaneClear.AddItem(new MenuItem("Use E LClear", "E Enable").SetValue(true));
            LaneClear.AddItem(new MenuItem("Use Timat LClear", "Tiamat Enable").SetValue(true));
            LaneClear.AddItem(new MenuItem("minimum Mana LC", "minimum Mana").SetValue(new Slider(40, 0, 100)));

            JungClear.AddItem(new MenuItem("Use E JClear", "E Enable").SetValue(true));
            JungClear.AddItem(new MenuItem("Use Timat JClear", "Tiamat Enable").SetValue(true));
//.........这里部分代码省略.........
开发者ID:badao,项目名称:ProjectFiora,代码行数:101,代码来源:Program.cs

示例12: BadaoActivate

        public static void BadaoActivate()
        {
            // spells init
            BadaoMainVariables.Q = new Spell(SpellSlot.Q, 650);
            BadaoMainVariables.Q.SetTargetted(0.25f, 1400);
            BadaoMainVariables.W = new Spell(SpellSlot.W); 
            BadaoMainVariables.E = new Spell(SpellSlot.E, 1000); // radius 200
            BadaoMainVariables.R = new Spell(SpellSlot.R, 1400); // chua biet goc

            // main menu
            config = new Menu("BadaoKingdom " + ObjectManager.Player.ChampionName, ObjectManager.Player.ChampionName, true);
            config.SetFontStyle(System.Drawing.FontStyle.Bold, SharpDX.Color.YellowGreen);

            // orbwalker menu
            Menu orbwalkerMenu = new Menu("Orbwalker", "Orbwalker");
            BadaoMainVariables.Orbwalker = new Orbwalking.Orbwalker(orbwalkerMenu);
            config.AddSubMenu(orbwalkerMenu);

            // TS
            Menu ts = config.AddSubMenu(new Menu("Target Selector", "Target Selector")); ;
            TargetSelector.AddToMenu(ts);

            // Combo
            Menu Combo = config.AddSubMenu(new Menu("Combo", "Combo"));
            BadaoMissFortuneVariables.ComboQ1 = Combo.AddItem(new MenuItem("ComboQ1", "Q1")).SetValue(true);
            BadaoMissFortuneVariables.ComboQ2 = Combo.AddItem(new MenuItem("ComboQ2", "Q2")).SetValue(true);
            BadaoMissFortuneVariables.ComboW = Combo.AddItem(new MenuItem("ComboW", "W")).SetValue(true);
            BadaoMissFortuneVariables.ComboE = Combo.AddItem(new MenuItem("ComboE", "E")).SetValue(true);
            BadaoMissFortuneVariables.ComboR = Combo.AddItem(new MenuItem("ComboR", "R Killable")).SetValue(true);
            BadaoMissFortuneVariables.ComboRWise = Combo.AddItem(new MenuItem("ComboRWise", "R Killable Wisely")).SetValue(true);
            BadaoMissFortuneVariables.ComboRifhit = Combo.AddItem(new MenuItem("ComboRifhit", "R if hit")).SetValue(true);
            BadaoMissFortuneVariables.ComboRifwillhit = Combo.AddItem(new MenuItem("ComboRifwillhit", "R if will hit")).SetValue(new Slider(3, 1, 5));

            // Harass
            Menu Harass = config.AddSubMenu(new Menu("Harass", "Harass"));
            BadaoMissFortuneVariables.HarassQ1 = Harass.AddItem(new MenuItem("HarassQ1", "Q1")).SetValue(true);
            BadaoMissFortuneVariables.HarassQ2 = Harass.AddItem(new MenuItem("HarassQ2", "Q2")).SetValue(true);
            BadaoMissFortuneVariables.HarassE = Harass.AddItem(new MenuItem("HarassE", "E")).SetValue(false);
            BadaoMissFortuneVariables.HarassMana = Harass.AddItem(new MenuItem("HarassMana", "Min Mana To Harass")).SetValue(new Slider(30, 0, 100));

            // LaneClear
            Menu LaneClear = config.AddSubMenu(new Menu("LaneClear", "LaneClear"));
            BadaoMissFortuneVariables.LaneClearQ = LaneClear.AddItem(new MenuItem("LaneClearQ", "Q")).SetValue(true);
            BadaoMissFortuneVariables.LaneClearW = LaneClear.AddItem(new MenuItem("LaneClearW", "W")).SetValue(true);
            BadaoMissFortuneVariables.LaneClearE = LaneClear.AddItem(new MenuItem("LaneClearE", "E")).SetValue(false);
            BadaoMissFortuneVariables.LaneClearMana = LaneClear.AddItem(new MenuItem("LaneClearMana", "Min Mana To LaneClear")).SetValue(new Slider(30, 0, 100));

            // JungleClear
            Menu JungleClear = config.AddSubMenu(new Menu("JungleClear", "JungleClear"));
            BadaoMissFortuneVariables.JungleClearQ = JungleClear.AddItem(new MenuItem("JungleClearQ", "Q")).SetValue(true);
            BadaoMissFortuneVariables.JungleClearW = JungleClear.AddItem(new MenuItem("JungleClearW", "W")).SetValue(true);
            BadaoMissFortuneVariables.JungleClearE = JungleClear.AddItem(new MenuItem("JungleClearE", "E")).SetValue(false);
            BadaoMissFortuneVariables.JungleClearMana = JungleClear.AddItem(new MenuItem("JungleClearMana", "Min Mana To JungleClear")).SetValue(new Slider(30, 0, 100));

            // Auto
            Menu Auto = config.AddSubMenu(new Menu("Auto", "Auto"));
            foreach (var hero in HeroManager.Enemies)
            {
                Auto.AddItem(new MenuItem("AutoQ2" + hero.NetworkId, "Q2 " + hero.ChampionName + " (" + hero.Name + ")")).SetValue(true);
            }
            BadaoMissFortuneVariables.AutoMana = Auto.AddItem(new MenuItem("AutoMana", "Min Mana To Auto")).SetValue(new Slider(30, 0, 100));

            // attach to mainmenu
            config.AddToMainMenu();
        }
开发者ID:badao,项目名称:BadaoKingdomTest,代码行数:65,代码来源:BadaoMissFortuneConfig.cs

示例13: Game_OnGameLoad

        private static void Game_OnGameLoad(EventArgs args)
        {
            if (Player.ChampionName != "Fiora")
                return;
            Q = new Spell(SpellSlot.Q, 400);
            W = new Spell(SpellSlot.W, 750);
            E = new Spell(SpellSlot.E);
            R = new Spell(SpellSlot.R);
            W.SetSkillshot(0.75f, 80, 2000, false, SkillshotType.SkillshotLine);
            W.MinHitChance = HitChance.High;


            Menu = new Menu("Project" + Player.ChampionName, Player.ChampionName, true);
            Menu.SetFontStyle(System.Drawing.FontStyle.Bold,SharpDX.Color.DeepPink);

            Menu orbwalkerMenu = new Menu("Orbwalker", "Orbwalker");
            Orbwalker = new FioraProject.Orbwalking.Orbwalker(orbwalkerMenu);
            Menu.AddSubMenu(orbwalkerMenu);
            Menu ts = Menu.AddSubMenu(new Menu("Target Selector", "Target Selector")); ;
            TargetSelector.AddToMenu(ts);
            Menu spellMenu = Menu.AddSubMenu(new Menu("Spell", "Spell"));

            Menu Harass = spellMenu.AddSubMenu(new Menu("Rỉa máu", "Rỉa máu"));

            Menu Combo = spellMenu.AddSubMenu(new Menu("Combo", "Combo"));

            Menu Target = Menu.AddSubMenu(new Menu("Chế độ chọn mục tiêu", "Chế độ chọn mục tiêu"));

            Menu PriorityMode = Target.AddSubMenu(new Menu("Ưu tiên", "Chế độ ưu tiên"));

            Menu OptionalMode = Target.AddSubMenu(new Menu("Tùy chỉnh", "Tùy chỉnh"));

            Menu SelectedMode = Target.AddSubMenu(new Menu("Chọn", "Chế độ được chọn"));

            Menu LaneClear = spellMenu.AddSubMenu(new Menu("Đẩy đường", "Đẩy đường"));

            spellMenu.AddItem(new MenuItem("Orbwalk Last Right Click", "Orbwalk Last Right Click")
                .SetValue(new KeyBind('Y', KeyBindType.Press))).ValueChanged += OrbwalkLastClick.OrbwalkLRCLK_ValueChanged;

            Menu JungClear = spellMenu.AddSubMenu(new Menu("Fam rừng", "Fam rừng"));

            Menu Misc = Menu.AddSubMenu(new Menu("Cài đặt khác","Cài đặt khác"));

            Menu Draw = Menu.AddSubMenu(new Menu("Vòng", "Vòng")); ;

            Harass.AddItem(new MenuItem("Dùng Q rỉa máu", "Bật Q").SetValue(true));
            Harass.AddItem(new MenuItem("Dùng Q giảm khoảng cách rỉa máu", "Q để rút ngắn khoảng cách").SetValue(true));
            Harass.AddItem(new MenuItem("Dùng Q Rỉa máu Pas ", "Dùng Q trước khi thụ động").SetValue(true));
            Harass.AddItem(new MenuItem("Dùng Q Thụ động", "Sử dụng Q để đạt thụ động").SetValue(true));
            Harass.AddItem(new MenuItem("Dùng E rỉa máu", "Bật E").SetValue(true));
            Harass.AddItem(new MenuItem("Mana Rỉa máu", "Mana để rỉa máu").SetValue(new Slider(40, 0, 100)));

            Combo.AddItem(new MenuItem("Dùng Q combo", "Bật Q").SetValue(true));
            Combo.AddItem(new MenuItem("Dùng Q rút ngắn combo", "Dùng Q rút ngắn khoảng cách").SetValue(true));
            Combo.AddItem(new MenuItem("Dùng Q trước Thụ động", "Dùng Q trước khi thụ động").SetValue(true));
            Combo.AddItem(new MenuItem("Dùng Q thụ động", "Dùng Q đạt thụ động").SetValue(true));
            Combo.AddItem(new MenuItem("Rút ngắn khoảng cách với lính", "Dùng Q để rút ngắn").SetValue(false));
            Combo.AddItem(new MenuItem("Giá trị rút ngắn khoảng cách với lính", "Dùng Q rút ngắn nếu % cdr >=").SetValue(new Slider(25, 0, 40)));
            Combo.AddItem(new MenuItem("Dùng E combo", "bật E").SetValue(true));
            Combo.AddItem(new MenuItem("Dùng R Combo", "Bật R").SetValue(true));
            Combo.AddItem(new MenuItem("Dùng R ít máu", "Dùng R ít máu").SetValue(true));
            Combo.AddItem(new MenuItem("Giá trị ít máu để dùng R", "ít máu dùng R nếu player hp <").SetValue(new Slider(40, 0, 100)));
            Combo.AddItem(new MenuItem("Dùng R nếu có thể giết", "Dùng R có thể giết").SetValue(true));
            Combo.AddItem(new MenuItem(Dùng R trên tab", "Dùng trên tab").SetValue(true));
            Combo.AddItem(new MenuItem("Dùng R trên phím", "Dùng R trên phím").SetValue(new KeyBind('G', KeyBindType.Press)));
            Combo.AddItem(new MenuItem("Luôn dùng R khi Combo", "Luôn dùng R").SetValue(false));

            Target.AddItem(new MenuItem("Chế độ chọn mục tiêu", "Mục tiêu").SetValue(new StringList(new string[] { "Optional", "Selected", "Priority", "Normal" })));
            Target.AddItem(new MenuItem("Orbwalk phạm vi bị động", "Orbwalk phạm vi bị động").SetValue(new Slider(300, 250, 500)));
            Target.AddItem(new MenuItem("Tập trung mục tiêu", "Tập trung mục tiêu").SetValue(false));
            Target.AddItem(new MenuItem("Note1", "Tùy chỉnh những gì bạn muốn trong menu"));
            Target.AddItem(new MenuItem("Note2", "Hãy nhớ rằng Orbwalk chỉ hoạt động bị động tại chỗ"));
            Target.AddItem(new MenuItem("Note3", "trong \" Combo Orbwalk để bị động\" chế độ có thể tìm thấy"));
            Target.AddItem(new MenuItem("Note4", "trong orbwalker menu!"));

            PriorityMode.AddItem(new MenuItem("Phạm vi mục tiêu ưu tiên", "Phạm vi ưu tiên").SetValue(new Slider(1000, 300, 1000)));
            PriorityMode.AddItem(new MenuItem("Ưu tiên orbwalk để bị động", "Orbwalk để bị động").SetValue(true));
            PriorityMode.AddItem(new MenuItem("Ưu tiên Mục tiêu dưới trụ", "Dứoi trụ").SetValue(true));
            foreach (var hero in HeroManager.Enemies)
            {
                PriorityMode.AddItem(new MenuItem("Priority" + hero.ChampionName, hero.ChampionName).SetValue(new Slider(2, 1, 5)));
            }

            OptionalMode.AddItem(new MenuItem("Phạm vi mục tieu tùy chọn", "Phạm vi tùy chọn").SetValue(new Slider(1000, 300, 1000)));
            OptionalMode.AddItem(new MenuItem("Tùy chọn mục tiêu bị động", "Orbwalk để bị động").SetValue(true));
            OptionalMode.AddItem(new MenuItem("Tùy chọn mục tiêu dưới trụ", "Under Tower").SetValue(false));
            OptionalMode.AddItem(new MenuItem("Phím thay đổi mục tiêu tùy chọn", "Switch Target Key").SetValue(new KeyBind('T', KeyBindType.Press)));
            OptionalMode.AddItem(new MenuItem("Note5", "Hoặc nhấp chuột trái để chọn mục tiêu muốn đổi"));

            SelectedMode.AddItem(new MenuItem("Phạm vi Mục tiêu đã chọn", "Phạm vi chọn").SetValue(new Slider(1000, 300, 1000)));
            SelectedMode.AddItem(new MenuItem("Mục tiêu chọn Orbwalk để bị động", "Orbwalk để bị động").SetValue(true));
            SelectedMode.AddItem(new MenuItem("Mục tiêu chọn dưới trụ", "Under Tower").SetValue(false));
            SelectedMode.AddItem(new MenuItem("Mục tiêu sẽ chuyển Tùy chọn mục tiêu nếu không được chọn", "Switch to Optional if no target").SetValue(true));

            LaneClear.AddItem(new MenuItem("Dùng E Đẩy đường", "Bật E").SetValue(true));
            LaneClear.AddItem(new MenuItem("Dùng Rìu mãng xà", "Bật Rìu mãng xà").SetValue(true));
            LaneClear.AddItem(new MenuItem("Mana thấp nhất để đẩy", "Mana thấp nhất").SetValue(new Slider(40, 0, 100)));

            JungClear.AddItem(new MenuItem("Dùng E Fam rừng", "Bật E").SetValue(true));
            JungClear.AddItem(new MenuItem("Dùng Rìu mãng xà", "Bật Rìu mãng xà").SetValue(true));
//.........这里部分代码省略.........
开发者ID:bachtuyet,项目名称:Assem,代码行数:101,代码来源:Program.cs

示例14: Initialize

 public static void Initialize(Menu menu)
 {
     _menu = menu.AddMenu("ManaManager", "Mana Manager");
     _menu.SetFontStyle(FontStyle.Regular, Color.Cyan);
     _menu.AddBool("Enabled", "Enabled", false);
 }
开发者ID:scalikoglu,项目名称:LeagueSharp,代码行数:6,代码来源:ManaManager.cs

示例15: Initialize

        /// <summary>
        ///     Initializes static members of the <see cref="AntiGapcloser" /> class.
        /// </summary>
        public static void Initialize(Menu menu)
        {
            _menu = menu.AddMenu("CustomAntiGapcloser", "AntiGapcloser");
            _menu.SetFontStyle(FontStyle.Regular, Color.OrangeRed.ToSharpDXColor());

            #region Aatrox

            Spells.Add(
                new Gapcloser
                {
                    ChampionName = "Aatrox",
                    Slot = SpellSlot.Q,
                    SpellName = "aatroxq",
                    SkillType = GapcloserType.Skillshot
                });

            #endregion

            #region Akali

            Spells.Add(
                new Gapcloser
                {
                    ChampionName = "Akali",
                    Slot = SpellSlot.R,
                    SpellName = "akalishadowdance",
                    SkillType = GapcloserType.Targeted
                });

            #endregion

            #region Alistar

            Spells.Add(
                new Gapcloser
                {
                    ChampionName = "Alistar",
                    Slot = SpellSlot.W,
                    SpellName = "headbutt",
                    SkillType = GapcloserType.Targeted
                });

            #endregion

            #region Corki

            Spells.Add(
                new Gapcloser
                {
                    ChampionName = "Corki",
                    Slot = SpellSlot.W,
                    SpellName = "carpetbomb",
                    SkillType = GapcloserType.Skillshot
                });

            #endregion

            #region Diana

            Spells.Add(
                new Gapcloser
                {
                    ChampionName = "Diana",
                    Slot = SpellSlot.R,
                    SpellName = "dianateleport",
                    SkillType = GapcloserType.Targeted
                });

            #endregion

            #region Ekko

            Spells.Add(
                new Gapcloser
                {
                    ChampionName = "Ekko",
                    Slot = SpellSlot.E,
                    SpellName = "ekkoe",
                    SkillType = GapcloserType.Skillshot
                });

            Spells.Add(
                new Gapcloser
                {
                    ChampionName = "Ekko",
                    Slot = SpellSlot.E,
                    SpellName = "ekkoeattack",
                    SkillType = GapcloserType.Targeted
                });

            #endregion

            #region Elise

            Spells.Add(
                new Gapcloser
                {
//.........这里部分代码省略.........
开发者ID:Marandini,项目名称:LeagueSharp,代码行数:101,代码来源:CustomAntiGapcloser.cs


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