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


C# Menu.AddLabel方法代码示例

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


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

示例1: Create

        public static void Create(Menu menuToAttach)
        {
            s_Config = MainMenu.AddMenu("Target Selector", "TargetSelector.Root");
            s_Config.Add("TargetSelector.Root.blFocusSelected", new CheckBox("Focus Selected Target"));
            s_Config.Add("TargetSelector.Root.iFocusSelectedExtraRange",
                new Slider("Extra Focus Selected Range", 0, 0, 250));
            s_Config.Add("TargetSelector.Root.blOnlyAttackSelected", new CheckBox("Only Attack Selected Target", false));
            s_Config.Add("TargetSelector.Root.SelectedTargetColor", new CheckBox("Selected Target Color", false));

            s_Config.AddGroupLabel("Champion Priority");
            foreach (var enemy in HeroManager.Enemies)
            {
                s_Config.Add(string.Format("TargetSelector.Priority.{0}", enemy.ChampionName),
                    new Slider(enemy.ChampionName, 1, 1, 5));
            }
            s_Config.AddLabel("0 : Auto");
            s_Config.AddLabel("1 : Low HP");
            s_Config.AddLabel("2 : Most AD");
            s_Config.AddLabel("3 : Most AP");
            s_Config.AddLabel("4 : Closest");
            s_Config.AddLabel("5 : Near Mouse");
            s_Config.AddLabel("6 : Less Attack");
            s_Config.AddLabel("7 : Less Cast");
            s_Config.Add("TargetSelector.Root.iTargettingMode", new Slider("Targetting Mode", 0, 0, 7));
        }
开发者ID:Xelamats,项目名称:PortAIO,代码行数:25,代码来源:ConfigMenu.cs

示例2: Create

 public static void Create()
 {
     s_Config = MainMenu.AddMenu("Target Selector", "TargetSelector.Root");
     s_Config.AddGroupLabel("Target Selector Mode");
     s_Config.Add("TargetSelector.Root.iTargettingMode", new ComboBox("Selected Mode:", 0, "Auto", "Lowest HP", "Most AD", "Most AP", "Closest", "Near Mouse", "Less Attack", "Less Cast"));
     s_Config.AddGroupLabel("Priorities");
     s_Config.AddLabel("(Higher value means higher priority)");
     foreach (var enemy in HeroManager.Enemies)
     {
         s_Config.Add(string.Format("TargetSelector.Priority.{0}", enemy.ChampionName), new Slider(enemy.ChampionName, 1, 1, 5));
     }
     s_Config.AddSeparator();
     s_Config.AddGroupLabel("Selected Target Settings");
     s_Config.Add("TargetSelector.Root.blFocusSelected", new CheckBox("Focus Selected Target"));
     s_Config.Add("TargetSelector.Root.iFocusSelectedExtraRange", new Slider("Extra Focus Selected Range", 0, 0, 250));
     s_Config.Add("TargetSelector.Root.blOnlyAttackSelected", new CheckBox("Only Attack Selected Target", false));
     s_Config.Add("TargetSelector.Root.SelectedTargetColor", new CheckBox("Selected Target Color", false));
 }
开发者ID:CONANLXF,项目名称:AIO,代码行数:18,代码来源:ConfigMenu.cs

示例3: OnLoad

        public static void OnLoad()
        {
            if (myHero.Hero != Champion.Draven)
            {
                return;
            }

            Chat.Print("<font color=\"#7CFC00\"><b>League Of Draven:</b></font> Loaded");

            Menu = MainMenu.AddMenu("League Of Draven", "draven");
            Menu.AddLabel("Ported from Exory's Ultima Series + Extra's - Berb");
            Menu.AddSeparator();

            Menu.AddGroupLabel("Combo");
            Menu.Add("useQ", new CheckBox("Use Q"));
            Menu.Add("useW", new CheckBox("Use W"));
            Menu.Add("useE", new CheckBox("Use E"));
            Menu.Add("useR", new CheckBox("Use R"));
            Menu.Add("enemyCount", new Slider("Use R if it will hit X enemies", 2, 1, 5));
            Menu.AddSeparator();
            Menu.AddGroupLabel("Harass");
            Menu.Add("useQH", new CheckBox("Use Q"));
            Menu.Add("useWH", new CheckBox("Use W"));
            Menu.Add("useEH", new CheckBox("Use E"));
            Menu.Add("manaH", new Slider("Mininum Mana for Harass", 65));
            Menu.AddSeparator();
            Menu.AddGroupLabel("Lane Clear");
            Menu.Add("useQLC", new CheckBox("Use Q"));
            Menu.Add("useELC", new CheckBox("Use E"));
            Menu.Add("manaLC", new Slider("Mininum Mana for Lane Clear", 90));
            Menu.AddSeparator();
            Menu.AddGroupLabel("Jungle Clear");
            Menu.Add("useQJG", new CheckBox("Use Q"));
            Menu.Add("useEJG", new CheckBox("Use E"));
            Menu.Add("manaJG", new Slider("Mininum Mana for Jungle Clear", 65));
            Menu.AddSeparator();
            Menu.AddGroupLabel("Misc.");
            Menu.Add("interrupt", new CheckBox("Interrupter"));
            Menu.Add("gapcloser", new CheckBox("Gapcloser"));
            Menu.Add("catchaxe", new CheckBox("Auto Catch Axe"));
            Menu.Add("onlycatch", new CheckBox("Only catch when orbwalking?"));
            Menu.AddSeparator();
            Menu.Add("drawe", new CheckBox("Draw E"));
            Menu.Add("drawr", new CheckBox("Draw R"));
            Menu.Add("drawaxe", new CheckBox("Draw Axe Catch Range"));
            Menu.Add("drawaxedrop", new CheckBox("Draw Axe Object"));
            Menu.AddSeparator();
            Menu.Add("mine", new Slider("Mininum Mana for E", 65));
            Menu.Add("catchaxerange", new Slider("Axe Catch Range", 600, 0, 2000));

            Menu.AddSeparator();

            Q = new EloBuddy.SDK.Spell.Active(SpellSlot.Q, (uint)myHero.GetAutoAttackRange());
            W = new EloBuddy.SDK.Spell.Active(SpellSlot.W);
            E = new EloBuddy.SDK.Spell.Skillshot(SpellSlot.E, 1020, SkillShotType.Linear, 250, 1400, 120);
            R = new EloBuddy.SDK.Spell.Skillshot(SpellSlot.R, 2500, SkillShotType.Linear, 400, 2000, 160);

            Game.OnTick += OnUpdate;
            Drawing.OnDraw += Drawing_OnDraw;
            Orbwalker.OnPreAttack += Orbwalker_OnPreAttack;
            GameObject.OnCreate += GameObject_OnCreate;
            GameObject.OnDelete += GameObject_OnDelete;
            Player.OnIssueOrder += Player_OnIssueOrder;
            EloBuddy.SDK.Events.Gapcloser.OnGapcloser += OnEnemyGapcloser;
            EloBuddy.SDK.Events.Interrupter.OnInterruptableSpell += OnInterruptableTarget;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
        }
开发者ID:yMeliodasNTD,项目名称:PortAIO,代码行数:67,代码来源:Program.cs

示例4: OnLoad

        public static void OnLoad()
        {
            if (!AliInGame())
            {
                return;
            }

            FlashSlot = ObjectManager.Player.GetSpellSlot("summonerflash");

            if (SupportedChampions.Contains(ObjectManager.Player.ChampionName))
            {
                ChampionSpell = GetChampionSpell();
            }

            // Menu

            Menu = MainMenu.AddMenu("Anti Alistar", "com.antiali");
            Menu.Add("com.antiali.useFlash", new CheckBox("Use Flash", false));
            Menu.AddLabel("Will only use flash if spell is on cd");
            Menu.Add("com.antiali.flashPercent", new Slider("Health For Flash", 15, 0, 100));
            Menu.Add("com.antiali.flashAmount", new Slider("Flash if x enemies", 2, 1, 5));
            Menu.Add("com.antiali.useSpell", new CheckBox("Use Spell", false));
            Menu.AddLabel("Will dash / flash to pos if its not founud it will cast to cursor pos.");
            Menu.Add("com.antiali.flashPosition", new ComboBox("Flash Position", 0, "Backwards", "Teammates", "Towards Turret"));
            Menu.Add("com.antiali.drawRange", new CheckBox("Draw Text for ali range", false));

            // Obj_AI_Base.OnProcessSpellCast += OnProcessSpell;
            AntiGapcloser.OnEnemyGapcloser += OnGapcloser;
            Drawing.OnDraw += AlistarDrawing;
        }
开发者ID:yashine59fr,项目名称:PortAIO-1,代码行数:30,代码来源:AntiAlistar.cs

示例5: LaneClearMenu

 public override bool LaneClearMenu(Menu config)
 {
     config.AddLabel(ObjectManager.Player.ChampionName + " Doesn't Support Lane Clear");
     return true;
 }
开发者ID:yashine59fr,项目名称:PortAIO-1,代码行数:5,代码来源:Quinn.cs

示例6: CreateMenu

        public CoreItem CreateMenu(Menu root)
        {
            try
            {
                Menu = root;//.AddSubMenu(Name, "m" + Name);
                Menu.AddGroupLabel(Name);
                Menu.Add("use" + Name, new CheckBox("Use " + DisplayName ?? Name));
                Menu.Add("prior" + Name, new Slider(DisplayName + " Priority [7 == Highest]", Priority, 1, 7));

                if (Category.Any(t => t == MenuType.SelfLowHP) && (Name.Contains("Pot") || Name.Contains("Flask") || Name.Contains("Biscuit")))
                {
                    Menu.Add("use" + Name + "cbat", new CheckBox("Use Only In Combat", false));
                }

                if (Category.Any(t => t == MenuType.EnemyLowHP))
                {
                    Menu.Add("enemylowhp" + Name + "pct", new Slider("Use on Enemy HP % <=", Name == "Botrk" || Name == "Cutlass" ? 65 : DefaultHP));
                }

                if (Category.Any(t => t == MenuType.SelfLowHP))
                    Menu.Add("selflowhp" + Name + "pct", new Slider("Use on Hero HP % <=", DefaultHP <= 35 || DefaultHP >= 90 ? (Name == "Botrk" || Name == "Cutlass" ? 65 : 35) : 55));

                if (Category.Any(t => t == MenuType.SelfMuchHP))
                    Menu.Add("selfmuchhp" + Name + "pct", new Slider("Use on Hero Dmg Dealt % >=", Duration == 101 ? 30 : 45));

                if (Category.Any(t => t == MenuType.SelfLowMP))
                    Menu.Add("selflowmp" + Name + "pct", new Slider("Use on Hero Mana % <=", DefaultMP));

                if (Category.Any(t => t == MenuType.SelfCount))
                    Menu.Add("selfcount" + Name, new Slider("Use On Enemy Near Count >=", 2, 1, 5));

                if (Category.Any(t => t == MenuType.SelfMinMP))
                    Menu.Add("selfminmp" + Name + "pct", new Slider("Minimum Mana %", 55));

                if (Category.Any(t => t == MenuType.SelfMinHP))
                    Menu.Add("selfminhp" + Name + "pct", new Slider("Minimum HP %", 55));

                if (Category.Any(t => t == MenuType.Zhonyas))
                {
                    Menu.Add("use" + Name + "norm", new CheckBox("Use on Dangerous (Spells)", false));
                    Menu.Add("use" + Name + "ulti", new CheckBox("Use on Dangerous (Ultimates Only)"));
                }

                if (Category.Any(t => t == MenuType.Cleanse))
                {
                    if (Id == 3222)
                    {
                        Menu.AddGroupLabel(Name + " Unique Buffs");
                        foreach (var b in Data.Buffdata.BuffList.Where(x => x.MenuName != null && (x.Cleanse || x.DoT)).OrderByDescending(x => x.DoT).ThenBy(x => x.Evade).ThenBy(x => x.MenuName))
                        {
                            string xdot = b.DoT && b.Cleanse ? "[Danger]" : (b.DoT ? "[DoT]" : "[Danger]");

                            if (b.Champion != null)
                                foreach (var ene in Activator.Heroes.Where(x => x.Player.IsEnemy && b.Champion == x.Player.ChampionName))
                                    Menu.Add(Name + b.Name + "cc", new CheckBox(b.MenuName + " " + xdot));
                            else
                                Menu.Add(Name + b.Name + "cc", new CheckBox(b.MenuName + " " + xdot));
                        }
                    }

                    Menu.AddGroupLabel(Name + " Buff Types");
                    Menu.Add(Name + "cexh", new CheckBox("Exhaust", true));
                    Menu.Add(Name + "csupp", new CheckBox("Supression"));
                    Menu.Add(Name + "cstun", new CheckBox("Stuns"));
                    Menu.Add(Name + "ccharm", new CheckBox("Charms"));
                    Menu.Add(Name + "ctaunt", new CheckBox("Taunts"));
                    Menu.Add(Name + "cflee", new CheckBox("Flee/Fear"));
                    Menu.Add(Name + "csnare", new CheckBox("Snares"));
                    Menu.Add(Name + "cpolymorph", new CheckBox("Polymorphs"));
                    Menu.Add(Name + "csilence", new CheckBox("Silences", false));
                    Menu.Add(Name + "cblind", new CheckBox("Blinds", false));
                    Menu.Add(Name + "cslow", new CheckBox("Slows", false));
                    if (Id == 3222)
                        Menu.Add(Name + "cpoison", new CheckBox("Poisons", false));

                    Menu.Add("use" + Name + "number", new Slider("Min Buffs to Use", DefaultHP / 5, 1, 5));
                    Menu.AddSeparator();
                    Menu.Add("use" + Name + "time", new Slider("Min Durration to Use", 500, 250, 2000));
                    Menu.AddLabel("^ Will not use unless the buff durration (stun, snare, etc) last at least this long (ms, 500 = 0.5 seconds)");
                    Menu.AddSeparator();
                    if (Id == 3222)
                    {
                        Menu.Add("use" + Name + "od", new CheckBox("Use for Unique Only", false));
                        Menu.Add("use" + Name + "dot", new Slider("Use for DoTs only if HP% <", 35));
                    }

                    Menu.Add("use" + Name + "delay", new Slider("Activation Delay (in ms)", 55, 0, 500));
                }

                if (Category.Any(t => t == MenuType.ActiveCheck))
                    Menu.Add("mode" + Name, new ComboBox("Mode: ", 0, "Always", "Combo"));

                Menu.AddSeparator();
            }

            catch (Exception e)
            {
                Console.WriteLine(e);
                Chat.Print("<font color=\"#FFF280\">Exception thrown at CoreItem.CreateMenu: </font>: " + e.Message);
            }
//.........这里部分代码省略.........
开发者ID:yashine59fr,项目名称:PortAIO-1,代码行数:101,代码来源:CoreItem.cs

示例7: SkyLv_Taric

        public SkyLv_Taric()
        {
            if (Player.ChampionName != ChampionName) return;

            Q = new Spell(SpellSlot.Q, 300f);
            W = new Spell(SpellSlot.W, 1100f);
            E = new Spell(SpellSlot.E, 650f);
            R = new Spell(SpellSlot.R, 400f);

            Q.SetTargetted(0.5f, 300);
            W.SetTargetted(0.5f, 300);
            E.SetSkillshot(0.1f, 100, float.MaxValue, false, SkillshotType.SkillshotLine);
            R.SetTargetted(2.5f, 300);

            var ignite = Player.Spellbook.Spells.FirstOrDefault(spell => spell.Name == "summonerdot");
            if (ignite != null)
                Ignite.Slot = ignite.Slot;

            SpellList.Add(Q);
            SpellList.Add(W);
            SpellList.Add(E);
            SpellList.Add(R);

            Menu = MainMenu.AddMenu("SkyLv " + ChampionName + " By LuNi", "SkyLv " + ChampionName + " By LuNi");

            Combo = Menu.AddSubMenu("Combo", "Combo");
            //
            Combo.AddGroupLabel("Q Settings :");
            Combo.Add("Taric.UseQCombo", new CheckBox("Use Self Q In Combo"));
            Combo.Add("Taric.MinimumStackSelfQCombo", new Slider("Minimum Q Stack To Use Self Q In Combo", 2, 1, 3));
            Combo.Add("Taric.MinimumHpPercentSelfQCombo", new Slider("Minimum Hp Percent To Use Self Q In Combo", 100, 0, 100));
            Combo.Add("Taric.UseQAlly", new CheckBox("Use Q On Ally"));
            Combo.Add("Taric.UseQAllyMode", new ComboBox("Q On Ally Mode", 1, "On Combo Key", "Auto Cast"));

            foreach (var Ally in ObjectManager.Get<AIHeroClient>().Where(a => a.Team == Player.Team && a.NetworkId != Player.NetworkId))
            {
                Combo.AddLabel(Ally.ChampionName);
                Combo.Add(Ally.NetworkId + "MinimumHpQAlly", new Slider("Q Ally If Health Percent Under", 60, 0, 100));
                Combo.Add(Ally.NetworkId + "MinimumStacksQAlly", new Slider("Minimum Q Stack To Use Q On Ally", 2, 1, 3));
                Combo.AddSeparator();
            }
            //

            //
            Combo.AddGroupLabel("W Settings :");
            Combo.Add("Taric.UseWCombo", new CheckBox("Use Self W In Combo"));
            Combo.Add("Taric.UseWIncomingDamageCombo", new CheckBox("Use Self W Only On Incoming Damages In Combo"));
            Combo.Add("Taric.UseWAlly", new CheckBox("Use W On Ally"));
            Combo.Add("Taric.UseWAllyMode", new ComboBox("W On Ally Mode", 1, "On Combo Key", "Auto Cast"));
            foreach (var Ally in ObjectManager.Get<AIHeroClient>().Where(a => a.Team == Player.Team && a.NetworkId != Player.NetworkId))
            {
                Combo.AddLabel(Ally.ChampionName);
                Combo.Add(Ally.NetworkId + "MinimumHpWAlly", new Slider("W Ally If Health Percent Under", 100, 0, 100));
                Combo.Add(Ally.NetworkId + "IncomingDamageWAlly", new CheckBox("Only On Ally Incoming Damage", true));
                Combo.AddSeparator();
            }
            //

            //
            Combo.AddSeparator();
            Combo.AddGroupLabel("E Settings :");
            Combo.Add("Taric.UseECombo", new CheckBox("Use Self E In Combo"));
            Combo.Add("Taric.UseEFromAlly", new CheckBox("Use E From Ally In Combo"));
            foreach (var Ally in ObjectManager.Get<AIHeroClient>().Where(a => a.Team == Player.Team && a.NetworkId != Player.NetworkId))
            {
                Combo.AddLabel(Ally.ChampionName);
                Combo.Add(Ally.NetworkId + "AlwaysComboFromAlly", new CheckBox("Always E From This Ally If Can't Cast MySelf", true));
                Combo.Add(Ally.NetworkId + "AllyCCEComboFromAlly", new CheckBox("On Ally CC'ed", true));
                Combo.Add(Ally.NetworkId + "TargetCCEComboFromAlly", new CheckBox("On Target CC'ed", true));
                Combo.Add(Ally.NetworkId + "TargetInterruptEComboFromAlly", new CheckBox("Auto E From Ally On Interruptable Target", true));
                Combo.Add(Ally.NetworkId + "TargetDashEPEComboFromAlly", new CheckBox("On Target Dash End Position", true));
                Combo.AddSeparator();
            }
            //
            Combo.Add("Taric.UseTaricAAPassiveCombo", new CheckBox("Use All Taric AA Passive In Combo"));

            Combo.AddGroupLabel("Auto Spell Usage");
            Combo.AddLabel("Auto Q Settings");
            Combo.Add("Taric.UseAutoQ", new CheckBox("Use Auto Q Safe Mode"));
            Combo.Add("Taric.MinimumHpSafeAutoQ", new Slider("Minimum Health Percent To Use Auto Q Safe Mode", 25, 0, 100));
            Combo.Add("Taric.MinimumEnemySafeAutoQ", new Slider("Minimum Enemy In Range To Use Auto Q Safe Mode", 1, 0, 5));
            Combo.Add("Taric.MinimumStackSafeAutoQ", new Slider("Minimum Q Stack To Use Auto Q Safe Mode", 1, 1, 3));
            Combo.AddLabel("Auto W Settings");
            Combo.Add("Taric.UseAutoW", new CheckBox("Use Auto W Safe Mode", false));
            Combo.Add("Taric.MinimumHpSafeAutoW", new Slider("Minimum Health Percent To Use Auto W Safe Mode", 25, 0, 100));
            Combo.Add("Taric.MinimumEnemySafeAutoW", new Slider("Minimum Enemy In Range To Use Auto W Safe Mode", 1, 0, 5));
            Combo.AddLabel("Auto E Settings");
            Combo.Add("Taric.UseAutoEGapCloser", new CheckBox("Use E Anti Gap Closer"));
            Combo.Add("Taric.MinimumHpEGapCloser", new Slider("E Anti Gap Closer If Health Percent Under Or Equal", 100, 0, 100));
            Combo.Add("Taric.MinimumEnemyEGapCloser", new Slider("Minimum Enemy In Range To E Anti Gap Closer", 0, 0, 5));
            Combo.AddLabel("Auto R Settings");
            Combo.Add("Taric.UseAutoR", new CheckBox("Use Auto R Safe Mode"));
            Combo.Add("Taric.MinimumHpSafeAutoR", new Slider("Minimum Health Percent To Use Auto R Safe Mode", 40, 0, 100));
            Combo.Add("Taric.MinimumEnemySafeAutoR", new Slider("Minimum Enemy In Range To Use Auto R Safe Mode", 1, 0, 5));
            Combo.AddSeparator();
            Combo.AddGroupLabel("KS Mode");
            Combo.Add("Taric.KS", new CheckBox("Kill Steal"));
            Combo.AddGroupLabel("KS Mode > Spell Settings");
            Combo.Add("Taric.UseAAKS", new CheckBox("KS With AA"));
            Combo.Add("Taric.UseIgniteKS", new CheckBox("KS With Ignite"));
//.........这里部分代码省略.........
开发者ID:Xelamats,项目名称:PortAIO,代码行数:101,代码来源:SkyLv_Taric.cs

示例8: LoadMenu

        private static void LoadMenu()
        {
            Config = MainMenu.AddMenu("Thresh", "thresh_menu");

            SpellConfig = Config.AddSubMenu("Spell Settings", "SpellSettings");
            SpellConfig.Add("autoQ", new CheckBox("Auto Q Dash Enemy", true));
            SpellConfig.Add("dontQ2", new CheckBox("Don't Auto Q2", true));
            SpellConfig.Add("dQ2if", new Slider("Don't Q2 if Enemies > allies", 1, 0, 5));
            SpellConfig.Add("farmE", new CheckBox("Farm with E", true));
            SpellConfig.AddLabel("Q BlackList :");
            foreach (var hero in HeroManager.Enemies)
            {
                SpellConfig.Add("QList" + hero.NetworkId, new CheckBox("BlackList: " + hero.ChampionName, false));
            }

            SpellConfig.Add("FlayPush", new KeyBind("Flay Push Key", false, KeyBind.BindTypes.HoldActive, 'T'));
            SpellConfig.Add("FlayPull", new KeyBind("Flay Pull Key", false, KeyBind.BindTypes.HoldActive, 'H'));

            FleeConfig = Config.AddSubMenu("Flee Settings", "FleeSettings");
            FleeConfig.Add("flee", new KeyBind("Flee", false, KeyBind.BindTypes.HoldActive, 'Z'));
            FleeConfig.Add("autoEpush", new CheckBox("Auto E push", true));

            PredictConfig = Config.AddSubMenu("Predict Settings", "PredictSettings");
            PredictConfig.Add("PredictionMode", new ComboBox("Prediction Mode", 0, "Common", "OKTW", "SDK", "SPrediction"));
            PredictConfig.Add("HitChance", new ComboBox("Hit Chance", 0, "Very High", "High", "Medium"));

            BoxConfig = Config.AddSubMenu("Box Settings", "BoxSettings");
            BoxConfig.Add("BoxCount", new Slider("Box Count", 2, 1, 6));
            BoxConfig.Add("BoxMode", new ComboBox("Box Mode", 0, "Prediction", "Now"));

            SupportConfig = Config.AddSubMenu("Support Mode", "SupportMode");
            SupportConfig.Add("SupportMode", new CheckBox("Suppor tMode", true));
            SupportConfig.Add("SupportModeRange", new Slider("Support Mode Range", (int)Player.AttackRange + 200, (int)Player.AttackRange, 2000));
            SupportConfig.Add("AttackADC", new CheckBox("Attack ADC's Target [TEST]", true));

            DrawConfig = Config.AddSubMenu("Drawing Settings", "DrawingSettings");
            DrawConfig.Add("Drawwhenskillisready", new CheckBox("Draw when skill is ready", true));
            DrawConfig.Add("drawQ", new CheckBox("Draw Q Range", true));
            DrawConfig.Add("drawW", new CheckBox("Draw W Range", true));
            DrawConfig.Add("drawE", new CheckBox("Draw E Range", true));
            DrawConfig.Add("drawR", new CheckBox("Draw R Range", true));
            DrawConfig.Add("drawtg", new CheckBox("Draw Target", true));

            SmartKeyConfig = Config.AddSubMenu("Smart Cast", "SmartCast");
            SmartKeyConfig.Add("EnableFollow", new CheckBox("Enable Follow Options,Prss Q/W/E Auto Cast Spell", true));
            SmartKeyConfig.Add("SmartCastQ", new CheckBox("Smart Cast Q", true));
            SmartKeyConfig.Add("SmartCastW", new CheckBox("Smart Cast W", true));
            SmartKeyConfig.Add("SmartCastE", new CheckBox("Smart Cast E", true));

            TowerConfig = Config.AddSubMenu("Turret Settings", "TurretSettings");
            TowerConfig.Add("QEallyTurrettarget", new CheckBox("Q/E ally Turret’s target", true));
            TowerConfig.Add("QEtargetintoallyturret", new CheckBox("Q/E target into ally turret", true));
            TowerConfig.Add("DontQ2inenemyturret", new CheckBox("Don't Q2 in enemy turret", true));
        }
开发者ID:yMeliodasNTD,项目名称:PortAIO,代码行数:54,代码来源:Thresh.cs

示例9: Menu

        public static void Menu()
        {
            Miscc = MainMenu.AddMenu("PortAIO Misc", "berbsicmisc");
            Miscc.Add("intro", new CheckBox("Load Intro?", true));
            Miscc.AddSeparator();
            Miscc.AddGroupLabel("Champion Changes");
            if (Champion.Contains(ObjectManager.Player.ChampionName))
            {
                if (Player.ChampionName.Equals(Champion[0]))
                {
                    Miscc.Add("soraka", new ComboBox("Use addon for Soraka : ", 0, "Sophie Soraka", "ChallengerSeries"));
                }
                if (Player.ChampionName.Equals(Champion[1]))
                {
                    Miscc.Add("kogmaw", new ComboBox("Use addon for Kog'Maw : ", 0, "Sharpshooter", "ChallengerSeries"));
                }
                if (Player.ChampionName.Equals(Champion[2]))
                {
                    Miscc.Add("leesin", new ComboBox("Use addon for Lee Sin : ", 0, "ValvraveSharp", "El Lee Sin : Reborn"));
                }
                if (Player.ChampionName.Equals(Champion[3]))
                {
                    Miscc.Add("kalista", new ComboBox("Use addon for Kalista : ", 0, "iKalista", "iKalista - Reborn", "ChallengerSeries"));
                }
                if (Player.ChampionName.Equals(Champion[4]))
                {
                    Miscc.Add("diana", new ComboBox("Use addon for Diana : ", 0, "ElDiana", "Nechrito Diana"));
                }
                if (Player.ChampionName.Equals(Champion[5]))
                {
                    Miscc.Add("cait", new ComboBox("Use addon for Caitlyn : ", 0, "OKTW", "ExorSeries : AIO"));
                }
                if (Player.ChampionName.Equals(Champion[6]))
                {
                    Miscc.Add("twitch", new ComboBox("Use addon for Twitch : ", 0, "OKTW", "Nechrito Twitch"));
                }
                if (Player.ChampionName.Equals(Champion[7]))
                {
                    Miscc.Add("nidalee", new ComboBox("Use addon for Nidalee : ", 0, "Kurisu", "Nechrito"));
                }
                if (Player.ChampionName.Equals(Champion[8]))
                {
                    Miscc.Add("lucian", new ComboBox("Use addon for Lucian : ", 0, "LCS Lucian", "ChallengerSeries", "iLucian"));
                }
                if (Player.ChampionName.Equals(Champion[9]))
                {
                    Miscc.Add("ashe", new ComboBox("Use addon for Ashe : ", 0, "OKTW", "ChallengerSeries"));
                }
                if (Player.ChampionName.Equals(Champion[10]))
                {
                    Miscc.Add("vayne", new ComboBox("Use addon for Vayne : ", 0, "ChallengerVayne", "VayneHunterReborn"));
                }
                if (Player.ChampionName.Equals(Champion[11]))
                {
                    Miscc.Add("jayce", new ComboBox("Use addon for Jayce : ", 0, "OKTW", "Hoe's Jayce"));
                }
                if (Player.ChampionName.Equals(Champion[12]))
                {
                    Miscc.Add("yasuo", new ComboBox("Use addon for Yasuo : ", 0, "ValvraveSharp", "YasuoPro"));
                }
                if (Player.ChampionName.Equals(Champion[13]))
                {
                    Miscc.Add("katarina", new ComboBox("Use addon for Katarina : ", 0, "Staberina", "e.Motion Katarina"));
                }
                if (Player.ChampionName.Equals(Champion[14]))
                {
                    Miscc.Add("xerath", new ComboBox("Use addon for Xerath : ", 0, "OKTW", "ElXerath"));
                }
                if (Player.ChampionName.Equals(Champion[15]))
                {
                    Miscc.Add("gragas", new ComboBox("Use addon for Gragas : ", 0, "Drunk Carry", "Nechrito"));
                }
            }
            else
            {
                Miscc.AddLabel("This champion is not supported for these feature.");
            }
            Miscc.AddSeparator();
            Miscc.AddGroupLabel("Util Changes");
            Miscc.AddLabel("Please F5 after making any changes below >>");
            Miscc.Add("champ", new CheckBox("Champ only mode? (No utils will load)", false));
            Miscc.Add("util", new CheckBox("Util only mode? (No champs will load)", false));
            Miscc.AddSeparator();
            Miscc.Add("activator", new CheckBox("Enable ElUtilitySuite?"));
            Miscc.Add("tracker", new CheckBox("Enable NabbTracker?"));
            Miscc.Add("recall", new CheckBox("Enable Recall Tracker?"));
            Miscc.AddSeparator();
            Miscc.Add("skin", new CheckBox("Enable Skin Hack?"));
            //Miscc.Add("evade", new CheckBox("Enable Evade?", false));
            Miscc.Add("godTracker", new CheckBox("Enable God Jungle Tracker?", false));
            Miscc.AddSeparator();
            Miscc.Add("ping", new CheckBox("Enable Ping Block?", false));
            Miscc.Add("human", new CheckBox("Enable Humanizer?", false));
            Miscc.Add("gank", new CheckBox("Enable GankAlerter?", false));

            /*
            Miscc.Add("stream", new CheckBox("Enable StreamBuddy?", false));
            public static bool stream { get { return Miscc["stream"].Cast<CheckBox>().CurrentValue; } }
            public static bool randomUlt { get { return Miscc["randomUlt"].Cast<CheckBox>().CurrentValue; } }
            public static bool baseUlt { get { return Miscc["baseUlt"].Cast<CheckBox>().CurrentValue; } }
//.........这里部分代码省略.........
开发者ID:Xelamats,项目名称:PortAIO,代码行数:101,代码来源:Loader.cs

示例10: InitMenu

        public static void InitMenu()
        {
            Menu = MainMenu.AddMenu("MAC - " + G_charname, "vania");

            Menu.AddGroupLabel("MAC - " + G_charname);
            Menu.AddLabel("Version: " + G_version);
            Menu.AddSeparator();
            Menu.AddLabel("By Mr Articuno");

            /*Brain.Common.Selector.Init(Menu);*/

            DrawMenu = Menu.AddSubMenu("Draw - " + G_charname, "vaniaDraw");
            DrawMenu.AddGroupLabel("Draw");
            DrawMenu.Add("drawDisable", new CheckBox("Turn off all drawings", false));
            DrawMenu.Add("drawNameLine", new CheckBox("Show names on line", true));
            DrawMenu.Add("drawAARange", new CheckBox("Draw Auto Attack Range", true));
            DrawMenu.Add("drawQ", new CheckBox("Draw Q Range", true));
            DrawMenu.Add("drawE", new CheckBox("Draw E Range", true));
            DrawMenu.Add("drawTumblePos", new CheckBox("Draw Tumble Pos", true));
            DrawMenu.Add("wallTumble", new KeyBind("Wall Tumble", false, KeyBind.BindTypes.HoldActive, 'W'));
            DrawMenu.Add("drawCondemnPos", new CheckBox("Draw Condemn Position", true));

            ComboMenu = Menu.AddSubMenu("Combo - " + G_charname, "vaniaCombo");
            ComboMenu.AddGroupLabel("Combo");
            ComboMenu.Add("comboQ", new CheckBox("Allow Q usage in combo", true));
            ComboMenu.Add("comboE", new CheckBox("Allow E usage in combo", true));
            ComboMenu.Add("comboR", new CheckBox("Allow R usage in combo", true));
            ComboMenu.AddGroupLabel("Q Settings");
            ComboMenu.AddLabel("Q Direction: Checked - Target, Unchecked Cursor");
            ComboMenu.Add("qsQDirection", new CheckBox("Q Direction", false));
            ComboMenu.AddLabel("Q Usage: Checked - Before Auto Attack, Unchecked After Auto Attack");
            ComboMenu.Add("qsQUsage", new CheckBox("Q Usage", false));
            ComboMenu.Add("qsQOutAA", new CheckBox("Q if out of AA range", true));
            ComboMenu.AddGroupLabel("R Settings");
            ComboMenu.Add("rsMinEnemiesForR", new Slider("Min Enemies for cast R: ", 2, 1, 5));
            ComboMenu.AddGroupLabel("Misc");
            /*ComboMenu.Add("advTargetSelector", new CheckBox("Use Advanced Target Selector", false));*/
            ComboMenu.Add("forceSilverBolt", new CheckBox("Force Attack 2 Stacked Target", false));
            ComboMenu.Add("checkKillabeEnemyPassive", new CheckBox("Double Check if enemy is killabe", true));

            CondemnMenu = Menu.AddSubMenu("Condemn - " + G_charname, "vaniaCondemn");
            CondemnMenu.Add("interruptDangerousSpells", new CheckBox("Interrupt Dangerous Spells", true));
            CondemnMenu.Add("antiGapCloser", new CheckBox("Anti Gap Closer", true));
            CondemnMenu.Add("fastCondemn",
                new KeyBind("Fast Condemn HotKey", false, KeyBind.BindTypes.PressToggle, 'W'));
            CondemnMenu.AddGroupLabel("Auto Condemn");
            foreach (var enemy in ObjectManager.Get<AIHeroClient>().Where(a => a.IsEnemy))
            {
                CondemnMenu.Add("dnCondemn" + enemy.ChampionName.ToLower(), new CheckBox("Don't Condemn " + enemy.ChampionName, false));
            }
            CondemnMenu.AddGroupLabel("Priority Condemn");
            foreach (var enemy in ObjectManager.Get<AIHeroClient>().Where(a => a.IsEnemy))
            {
                CondemnMenu.Add("priorityCondemn" + enemy.ChampionName.ToLower(), new Slider(enemy.ChampionName + " Priority", 1, 1, 5));
            }
            CondemnMenu.Add("condenmErrorMargin", new Slider("Subtract Condemn Push by: ", 20, 0, 100));

            KSMenu = Menu.AddSubMenu("KS - " + G_charname, "vaniaKillSteal");
            KSMenu.AddGroupLabel("Kill Steal");
            KSMenu.Add("ksQ", new CheckBox("Use Q if killable", false));
            KSMenu.Add("ksE", new CheckBox("Use E if killable", false));
        }
开发者ID:smallville001,项目名称:vayne-MAC,代码行数:62,代码来源:Vayne.cs

示例11: Init

        public static void Init(EventArgs args)
        {
            var AddonName = Champion.AddonName;
            var Author = Champion.Author;
            AddonMenu = MainMenu.AddMenu(AddonName, AddonName + " by " + Author + " v1.0 ");
            AddonMenu.AddLabel(AddonName + " made by " + Author);

            SubMenu["Prediction"] = AddonMenu.AddSubMenu("Prediction", "Prediction");
            SubMenu["Prediction"].AddGroupLabel("Q Settings");
            SubMenu["Prediction"].Add("QCombo", new Slider("Combo HitChancePercent", 60, 0, 100));
            SubMenu["Prediction"].Add("QHarass", new Slider("Harass HitChancePercent", 70, 0, 100));
            SubMenu["Prediction"].AddGroupLabel("W Settings");
            SubMenu["Prediction"].Add("WCombo", new Slider("Combo HitChancePercent", 60, 0, 100));
            SubMenu["Prediction"].Add("WHarass", new Slider("Harass HitChancePercent", 70, 0, 100));
            SubMenu["Prediction"].AddGroupLabel("QE Settings");
            SubMenu["Prediction"].Add("ECombo", new Slider("Combo HitChancePercent", 60, 0, 100));
            SubMenu["Prediction"].Add("EHarass", new Slider("Harass HitChancePercent", 70, 0, 100));

            SubMenu["Combo"] = AddonMenu.AddSubMenu("Combo", "Combo");
            SubMenu["Combo"].Add("Q", new CheckBox("Use Q", true));
            SubMenu["Combo"].Add("W", new CheckBox("Use W", true));
            SubMenu["Combo"].Add("E", new CheckBox("Use E", true));
            SubMenu["Combo"].Add("QE", new CheckBox("Use QE", true));
            SubMenu["Combo"].Add("WE", new CheckBox("Use WE", true));
            SubMenu["Combo"].AddStringList("R", "Use R", new[] { "Never", "If killable", "If needed", "Always" }, 2);
            SubMenu["Combo"].Add("Zhonyas", new Slider("Use Zhonyas if HealthPercent <=", 10, 0, 100));
            SubMenu["Combo"].Add("Cooldown", new Slider("Cooldown on spells for R needed", 3, 0, 10));

            SubMenu["Harass"] = AddonMenu.AddSubMenu("Harass", "Harass");
            SubMenu["Harass"].Add("Q", new CheckBox("Use Q", true));
            SubMenu["Harass"].Add("W", new CheckBox("Use W", false));
            SubMenu["Harass"].Add("E", new CheckBox("Use E", false));
            SubMenu["Harass"].Add("QE", new CheckBox("Use QE", false));
            SubMenu["Harass"].Add("WE", new CheckBox("Use WE", false));
            SubMenu["Harass"].Add("Turret", new CheckBox("Don't harass under enemy turret", true));
            SubMenu["Harass"].Add("Mana", new Slider("Min. Mana Percent:", 20, 0, 100));

            SubMenu["LaneClear"] = AddonMenu.AddSubMenu("LaneClear", "LaneClear");
            SubMenu["LaneClear"].Add("Q", new Slider("Use Q if Hit >=", 3, 0, 10));
            SubMenu["LaneClear"].Add("W", new Slider("Use W if Hit >=", 3, 0, 10));
            SubMenu["LaneClear"].AddGroupLabel("Unkillable minions");
            SubMenu["LaneClear"].Add("Q2", new CheckBox("Use Q", true));
            SubMenu["LaneClear"].Add("Mana", new Slider("Min. Mana Percent:", 50, 0, 100));

            SubMenu["JungleClear"] = AddonMenu.AddSubMenu("JungleClear", "JungleClear");
            SubMenu["JungleClear"].Add("Q", new CheckBox("Use Q", true));
            SubMenu["JungleClear"].Add("W", new CheckBox("Use W", true));
            SubMenu["JungleClear"].Add("E", new CheckBox("Use E", true));
            SubMenu["JungleClear"].Add("Mana", new Slider("Min. Mana Percent:", 20, 0, 100));

            SubMenu["LastHit"] = AddonMenu.AddSubMenu("LastHit", "LastHit");
            SubMenu["LastHit"].AddGroupLabel("Unkillable minions");
            SubMenu["LastHit"].Add("Q", new CheckBox("Use Q", true));
            SubMenu["LastHit"].Add("Mana", new Slider("Min. Mana Percent:", 50, 0, 100));

            SubMenu["KillSteal"] = AddonMenu.AddSubMenu("KillSteal", "KillSteal");
            SubMenu["KillSteal"].Add("Q", new CheckBox("Use Q", true));
            SubMenu["KillSteal"].Add("W", new CheckBox("Use W", true));
            SubMenu["KillSteal"].Add("E", new CheckBox("Use E", true));
            SubMenu["KillSteal"].Add("R", new CheckBox("Use R", false));
            SubMenu["KillSteal"].Add("Ignite", new CheckBox("Use Ignite", true));

            SubMenu["Flee"] = AddonMenu.AddSubMenu("Flee", "Flee");
            SubMenu["Flee"].Add("Movement", new CheckBox("Disable movement", true));
            SubMenu["Flee"].Add("E", new CheckBox("Use QE/WE on enemy near mouse", true));

            SubMenu["Drawings"] = AddonMenu.AddSubMenu("Drawings", "Drawings");
            SubMenu["Drawings"].Add("Disable", new CheckBox("Disable all drawings", false));
            SubMenu["Drawings"].Add("Target", new CheckBox("Draw circle on target", true));
            SubMenu["Drawings"].Add("Killable", new CheckBox("Draw text if enemy is killable", true));
            SubMenu["Drawings"].Add("E.Lines", new CheckBox("Draw E lines", true));
            SubMenu["Drawings"].Add("W.Object", new CheckBox("Draw circle on w object", true));

            SubMenu["Misc"] = AddonMenu.AddSubMenu("Misc", "Misc");
            SubMenu["Misc"].Add("GapCloser", new CheckBox("Use QE/WE to Interrupt GapClosers", true));
            SubMenu["Misc"].Add("Interrupter", new CheckBox("Use QE/WE to Interrupt Channeling Spells", true));
            SubMenu["Misc"].Add("QE.Range", new Slider("Less QE Range", 0, 0, 650));
            SubMenu["Misc"].Add("Overkill", new Slider("Overkill % for damage prediction", 10, 0, 100));
            if (EntityManager.Heroes.Enemies.Count > 0)
            {
                SubMenu["Misc"].AddGroupLabel("Don't use R on");
                foreach (AIHeroClient enemy in EntityManager.Heroes.Enemies)
                {
                    SubMenu["Misc"].Add("Dont.R." + enemy.ChampionName, new CheckBox(enemy.ChampionName, false));
                }
            }
        }
开发者ID:ItsMoneyboy,项目名称:EloBuddy,代码行数:87,代码来源:MenuManager.cs

示例12: CreateMenu

        public CoreSum CreateMenu(Menu root)
        {
            try
            {
                Menu = root;//.AddSubMenu(DisplayName, "m" + Name);

                Menu.AddGroupLabel(DisplayName);

                if (!Name.Contains("smite") && !Name.Contains("teleport"))
                    Menu.Add("use" + Name, new CheckBox("Use " + DisplayName));

                if (Name == "summonersnowball")
                    Activator.UseEnemyMenu = true;

                if (Name == "summonerheal")
                {
                    Activator.UseAllyMenu = true;
                    Menu.Add("selflowhp" + Name + "pct", new Slider("Use on Hero HP % <=", 20));
                    Menu.Add("selfmuchhp" + Name + "pct", new Slider("Use on Hero Dmg Dealt % >=", 45));
                    Menu.Add("use" + Name + "tower", new CheckBox("Include Tower Damage", false));
                    Menu.Add("mode" + Name, new ComboBox("Mode: ", 1, "Always", "Combo"));
                    Menu.AddSeparator();
                }

                if (Name == "summonerboost")
                {
                    Activator.UseAllyMenu = true;
                    Menu.AddGroupLabel(DisplayName + " Buff Types");
                    Menu.Add(Name + "cstun", new CheckBox("Stuns"));
                    Menu.Add(Name + "ccharm", new CheckBox("Charms"));
                    Menu.Add(Name + "ctaunt", new CheckBox("Taunts"));
                    Menu.Add(Name + "cflee", new CheckBox("Flee/Fear"));
                    Menu.Add(Name + "csnare", new CheckBox("Snares"));
                    Menu.Add(Name + "cexh", new CheckBox("Exhaust", false));
                    Menu.Add(Name + "csupp", new CheckBox("Supression", false));
                    Menu.Add(Name + "csilence", new CheckBox("Silences", false));
                    Menu.Add(Name + "cpolymorph", new CheckBox("Polymorphs", false));
                    Menu.Add(Name + "cblind", new CheckBox("Blinds", false));
                    Menu.Add(Name + "cslow", new CheckBox("Slows", false));
                    Menu.Add(Name + "cpoison", new CheckBox("Poisons", false));
                    Menu.AddSeparator();

                    Menu.Add("use" + Name + "number", new Slider("Min Buffs to Use", 1, 1, 5));
                    Menu.AddSeparator();
                    Menu.Add("use" + Name + "time", new Slider("Min Durration to Use", 500, 250, 2000));
                    Menu.AddLabel("^ Will not use unless the buff durration (stun, snare, etc) last at least this long (ms, 500 = 0.5 seconds)");
                    Menu.AddSeparator();
                    Menu.Add("use" + Name + "od", new CheckBox("Use for Dangerous Only", false));
                    Menu.Add("use" + Name + "delay", new Slider("Activation Delay (in ms)", 150, 0, 500));
                    Menu.Add("mode" + Name, new ComboBox("Mode: ", 0, "Always", "Combo"));
                    Menu.AddSeparator();
                }

                if (Name == "summonerdot")
                {
                    Activator.UseEnemyMenu = true;
                    Menu.Add("idmgcheck", new Slider("Combo Damage Check %", 100, 1, 200));

                    switch (Player.ChampionName)
                    {
                        case "Ahri":
                            Menu.Add("ii" + Player.ChampionName, new CheckBox(Player.ChampionName + ": Check Charm", false));
                            break;
                        case "Cassiopeia":
                            Menu.Add("ii" + Player.ChampionName, new CheckBox(Player.ChampionName + ": Check Poison", false));
                            break;
                        case "Diana":
                            Menu.Add("ii" + Player.ChampionName, new CheckBox(Player.ChampionName + ": Check Moonlight?", false));
                            break;
                    }

                    Menu.Add("itu", new CheckBox("Dont Ignite Near Turret"));
                    Menu.Add("igtu", new Slider("-> Ignore after Level", 11, 1, 18));
                    Menu.Add("mode" + Name, new ComboBox("Mode: ", 0, "Killsteal", "Combo"));
                    Menu.AddSeparator();
                }

                if (Name == "summonermana")
                {
                    Activator.UseAllyMenu = true;
                    Menu.Add("selflowmp" + Name + "pct", new Slider("Minimum Mana % <=", 40));
                    Menu.AddSeparator();
                }

                if (Name == "summonerbarrier")
                {
                    Activator.UseAllyMenu = true;
                    Menu.Add("selflowhp" + Name + "pct", new Slider("Use on Hero HP % <=", 20));
                    Menu.Add("selfmuchhp" + Name + "pct", new Slider("Use on Hero Dmg Dealt % >=", 45));
                    Menu.Add("use" + Name + "ulti", new CheckBox("Use on Dangerous (Ultimates Only)"));
                    Menu.Add("f" + Name, new CheckBox("-> Force Barrier", false));
                    Menu.Add("use" + Name + "tower", new CheckBox("Include Tower Damage"));
                    Menu.Add("mode" + Name, new ComboBox("Mode: ", 1, "Always", "Combo"));
                    Menu.AddSeparator();
                }

                if (Name == "summonerexhaust")
                {
                    Activator.UseEnemyMenu = true;
                    Menu.Add("a" + Name + "pct", new Slider("Exhaust on ally HP %", 35));
//.........这里部分代码省略.........
开发者ID:yashine59fr,项目名称:PortAIO-1,代码行数:101,代码来源:CoreSum.cs

示例13: GameOnOnGameLoad

        public static void GameOnOnGameLoad()
        {
            _spells = EloBuddy.SDK.Spells.SpellDatabase.GetSpellInfoList(ObjectManager.Player.BaseSkinName);

            enemySpawn = ObjectManager.Get<Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy);
            Q = new Spell(SpellSlot.Q);
            E = new Spell(SpellSlot.E);
            W = new Spell(SpellSlot.W);
            R = new Spell(SpellSlot.R);

            Config = MainMenu.AddMenu("OneKeyToWin AIO", "OneKeyToWin_AIO" + ObjectManager.Player.ChampionName);

            #region MENU ABOUT OKTW

            Config.Add("debug", new CheckBox("Debug", false));
            Config.Add("debugChat", new CheckBox("Debug Chat", false));
            Config.Add("print", new CheckBox("OKTW NEWS in chat"));

            #endregion

            Config.Add("AIOmode", new Slider("AIO mode (0 : Util & Champ | 1 : Only Champ | 2 : Only Util)", 0, 0, 2));
            AIOmode = getSliderItem("AIOmode");

            var slots = new HashSet<SpellSlot>();
            foreach (var info in _spells)
            {
                slots.Add(info.Slot);
            }

            Config.Add("PredictionMODE", new Slider("Pred Mode (0 : L# Pred | 1 : OKTW Pred | 2 : SPred | 3 : SDK | 4 : EB)", 0, 0, 4));
            Config.Add("HitChance", new Slider("AIO mode (0 : Very High | 1 : High | 2 : Medium)", 0, 0, 2));
            Config.Add("debugPred", new CheckBox("Draw Aiming OKTW© PREDICTION", false));
            Config.Add("harassLaneclear", new CheckBox("Skill-Harass in lane clear"));

            if (getSliderItem("PredictionMODE") == 2)
            {
                SPrediction.Prediction.Initialize(Config);
                SPredictionLoad = true;
            }
            else
            {
                Config.AddLabel("SPREDICTION NOT LOADED");
            }

            if (AIOmode != 2)
            {
                Config.Add("supportMode", new CheckBox("Support Mode", false));
                Config.Add("comboDisableMode", new CheckBox("Disable auto-attack in combo mode", false));
                Config.Add("manaDisable", new CheckBox("Disable mana manager in combo"));
                Config.Add("collAA", new CheckBox("Disable auto-attack if Yasuo wall collision"));

                #region LOAD CHAMPIONS

                switch (Player.ChampionName)
                {
                    case "Anivia":
                        PortAIO.Champion.Anivia.Anivia.LoadOKTW();
                        break;
                    case "Annie":
                        PortAIO.Champion.Annie.Program.LoadOKTW();
                        break;
                    case "Ashe":
                        PortAIO.Champion.Ashe.Program.LoadOKTW();
                        break;
                    case "Braum":
                        PortAIO.Champion.Braum.Program.LoadOKTW();
                        break;
                    case "Caitlyn":
                        new Caitlyn().LoadOKTW();
                        break;
                    case "Ekko":
                        PortAIO.Champion.Ekko.Program.LoadOKTW();
                        break;
                    case "Ezreal":
                        Ezreal.LoadOKTW();
                        break;
                    case "Graves":
                        Graves.LoadOKTW();
                        break;
                    case "Jayce":
                        OneKeyToWin_AIO_Sebby.Champions.Jayce.LoadOKTW();
                        break;
                    case "Jinx":
                        new Jinx().LoadOKTW();
                        break;
                    case "Karthus":
                        Karthus.LoadOKTW();
                        break;
                    case "Lucian":
                        Lucian.LoadOKTW();
                        break;
                    case "MissFortune":
                        MissFortune.LoadOKTW();
                        break;
                    case "Malzahar":
                        Malzahar.LoadOKTW();
                        break;
                    case "Orianna":
                        Orianna.LoadOKTW();
                        break;
//.........这里部分代码省略.........
开发者ID:yashine59fr,项目名称:PortAIO-1,代码行数:101,代码来源:Program.cs

示例14: OnLoad

        private static void OnLoad()
        {
            Menu = MainMenu.AddMenu("Aatrox", "Aatrox");
            Menu.AddLabel("Ported from BrianSharp - Berb");
            Menu.AddSeparator();

            ComboMenu = Menu.AddSubMenu("Combo");
            ComboMenu.Add("Q", new CheckBox("Use Q"));
            ComboMenu.Add("W", new CheckBox("Use W"));
            ComboMenu.Add("WHpU", new Slider("-> Switch To Heal If Hp <", 50));
            ComboMenu.Add("E", new CheckBox("Use E"));
            ComboMenu.Add("R", new CheckBox("Use R"));
            ComboMenu.Add("RHpU", new Slider("-> If Enemy Hp <", 60));
            ComboMenu.Add("RCountA", new Slider("-> Or Enemy >=", 2, 1, 5));
            ComboMenu.AddSeparator();

            HarassMenu = Menu.AddSubMenu("Harass");
            HarassMenu.Add("AutoE", new KeyBind("Auto E", false, KeyBind.BindTypes.PressToggle, 'H'));
            HarassMenu.Add("AutoEHpA", new Slider("-> If Hp >=", 50));
            HarassMenu.Add("Q", new CheckBox("Use Q"));
            HarassMenu.Add("QHpA", new Slider("-> If Hp >=", 20));
            HarassMenu.Add("E", new CheckBox("Use E"));
            HarassMenu.AddSeparator();

            ClearMenu = Menu.AddSubMenu("Clear");
            ClearMenu.Add("Q", new CheckBox("Use Q"));
            ClearMenu.Add("W", new CheckBox("Use W"));
            ClearMenu.Add("WPriority", new CheckBox("-> Priority Heal"));
            ClearMenu.Add("WHpU", new Slider("-> Switch To Heal If Hp <", 50));
            ClearMenu.Add("E", new CheckBox("Use E"));
            ClearMenu.Add("Item", new CheckBox("Use Tiamat/Hydra Item"));
            ClearMenu.AddSeparator();

            FleeMenu = Menu.AddSubMenu("Flee");
            FleeMenu.Add("Q", new CheckBox("Use Q"));
            FleeMenu.Add("E", new CheckBox("Use E"));
            FleeMenu.AddSeparator();

            KSMenu = Menu.AddSubMenu("Kill Steal");
            KSMenu.Add("Q", new CheckBox("Use Q"));
            KSMenu.Add("E", new CheckBox("Use E"));
            KSMenu.Add("Smite", new CheckBox("Use Smite"));
            KSMenu.Add("Ignite", new CheckBox("Use Ignite"));
            KSMenu.AddSeparator();

            GapMenu = Menu.AddSubMenu("Anti Gap Closer");
            GapMenu.Add("Q", new CheckBox("Use Q"));
            foreach (
                var spell in
                    AntiGapcloser.Spells.Where(i => HeroManager.Enemies.Any(a => i.ChampionName == a.ChampionName)))
            {
                GapMenu.Add(spell.ChampionName + "_" + spell.Slot,
                    new CheckBox("-> Skill " + spell.Slot + " Of " + spell.ChampionName));
            }
            GapMenu.AddSeparator();

            IntMenu = Menu.AddSubMenu("Interrupt");
            IntMenu.Add("Q", new CheckBox("Use Q"));
            foreach (
                var spell in
                    Interrupter.Spells.Where(i => HeroManager.Enemies.Any(a => i.ChampionName == a.ChampionName)))
            {
                IntMenu.Add(spell.ChampionName + "_" + spell.Slot,
                    new CheckBox("-> Skill " + spell.Slot + " Of " + spell.ChampionName));
            }
            IntMenu.AddSeparator();

            SmiteMenu = Menu.AddSubMenu("Smite Mob");
            SmiteMenu.Add("Smite", new CheckBox("Use Smite"));
            SmiteMenu.Add("Auto", new CheckBox("-> Auto Smite"));
            SmiteMenu.Add("Baron", new CheckBox("-> Baron Nashor"));
            SmiteMenu.Add("Dragon", new CheckBox("-> Dragon"));
            SmiteMenu.Add("Red", new CheckBox("-> Red Brambleback"));
            SmiteMenu.Add("Blue", new CheckBox("-> Blue Sentinel"));
            SmiteMenu.Add("Krug", new CheckBox("-> Ancient Krug"));
            SmiteMenu.Add("Gromp", new CheckBox("-> Gromp"));
            SmiteMenu.Add("Raptor", new CheckBox("-> Crimson Raptor"));
            SmiteMenu.Add("Wolf", new CheckBox("-> Greater Murk Wolf"));
            SmiteMenu.AddSeparator();

            DrawMenu = Menu.AddSubMenu("Drawings");
            DrawMenu.Add("Q", new CheckBox("Use Q"));
            DrawMenu.Add("E", new CheckBox("Use E"));
            DrawMenu.Add("R", new CheckBox("Use R"));
            DrawMenu.AddSeparator();

            Q = new Spell(SpellSlot.Q, 650);
            Q2 = new Spell(SpellSlot.Q, 650);
            W = new Spell(SpellSlot.W);
            E = new Spell(SpellSlot.E, 1075);
            R = new Spell(SpellSlot.R, 550);
            Q.SetSkillshot(0.6f, 250, 2000, false, SkillshotType.SkillshotCircle);
            Q2.SetSkillshot(0.6f, 150, 2000, false, SkillshotType.SkillshotCircle);
            E.SetSkillshot(0.25f, 35, 1250, false, SkillshotType.SkillshotLine);

            Tiamat = ItemData.Tiamat_Melee_Only.GetItem();
            Hydra = ItemData.Ravenous_Hydra_Melee_Only.GetItem();

            foreach (var spell in myHero.Spellbook.Spells.Where(i => i.Name.ToLower().Contains("smite") && (i.Slot == SpellSlot.Summoner1 || i.Slot == SpellSlot.Summoner2)))
            {
//.........这里部分代码省略.........
开发者ID:yashine59fr,项目名称:PortAIO-1,代码行数:101,代码来源:Program.cs

示例15: Menu


//.........这里部分代码省略.........
                    Miscc.Add("udyr", new ComboBox("Use addon for Udyr : ", 0, "D_Udyr", "ExorAIO"));
                }
                if (Player.ChampionName.Equals(Champion[78]))
                {
                    Miscc.Add("veigar", new ComboBox("Use addon for Veigar : ", 0, "FreshBooster", "ExorAIO"));
                }
                if (Player.ChampionName.Equals(Champion[79]))
                {
                    Miscc.Add("warwick", new ComboBox("Use addon for Warwick : ", 0, "Warwick | The Blood Hunter", "ExorAIO"));
                }
                if (Player.ChampionName.Equals(Champion[80]))
                {
                    Miscc.Add("illaoi", new ComboBox("Use addon for Illaoi : ", 0, "Tentacle Kitty", "Flowers Illaoi"));
                }
                if (Player.ChampionName.Equals(Champion[81]))
                {
                    Miscc.Add("hecarim", new ComboBox("Use addon for Hecarim : ", 0, "Justy Hecarim", "UnderratedAIO"));
                }
                if (Player.ChampionName.Equals(Champion[82]))
                {
                    Miscc.Add("urgot", new ComboBox("Use addon for Urgot : ", 0, "OKTW", "Marksman II"));
                }
                if (Player.ChampionName.Equals(Champion[83]))
                {
                    Miscc.Add("varus", new ComboBox("Use addon for Varus : ", 0, "ElVarus", "Marksman II", "OKTW"));
                }
                if (Player.ChampionName.Equals(Champion[84]))
                {
                    Miscc.Add("malzahar", new ComboBox("Use addon for Malzahar : ", 0, "OKTW", "SurvivorMalzahar"));
                }
            }
            else
            {
                Miscc.AddLabel("This champion is not supported for these feature.");
            }
            Miscc.AddSeparator();
            Miscc.AddGroupLabel("Util Dual-Port :");
            Miscc.Add("evadeCB", new ComboBox("Which Evade?", 0, "ezEvade", "Evade#"));
            Miscc.Add("activatorCB", new ComboBox("Which Activator?", 0, "ElUtilitySuite", "NabbActivator", "Activator#"));
            Miscc.Add("trackerCB", new ComboBox("Which Tracker?", 0, "NabbTracker", "Tracker#"));
            Miscc.Add("predictionerCB", new ComboBox("Which Predictioner?", 0, "EB", "SDK", "OKTW", "SPred", "L#"));
            Miscc.Add("orbwalkerCB", new ComboBox("Which Orbwalk/TargetSelect?", 1, "NOPE", "L#"));
            Miscc.AddSeparator();
            Miscc.AddGroupLabel("Util Changes");
            Miscc.AddLabel("Please F5 after making any changes below >>");
            Miscc.Add("champ", new CheckBox("Champ only mode? (No utils will load)", false));
            Miscc.Add("util", new CheckBox("Util only mode? (No champs will load)", false));
            Miscc.AddSeparator();
            Miscc.Add("activator", new CheckBox("Enable Activator?"));
            Miscc.Add("tracker", new CheckBox("Enable Tracker?"));
            Miscc.Add("recall", new CheckBox("Enable Recall Tracker?"));
            Miscc.Add("skin", new CheckBox("Enable Skin Hack?", false));
            Miscc.AddSeparator();
            Miscc.Add("evade", new CheckBox("Enable Evade?", false));
            Miscc.Add("predictioner", new CheckBox("Enable Predictioner?", true));
            Miscc.Add("dzaware", new CheckBox("Enable DZAwareness?", false));
            Miscc.Add("godTracker", new CheckBox("Enable God Jungle Tracker?", false));
            Miscc.AddSeparator();
            Miscc.Add("human", new CheckBox("Enable Humanizer?", false));
            Miscc.Add("gank", new CheckBox("Enable GankAlerter?", false));
            Miscc.Add("cheat", new CheckBox("Enable TheCheater?", false));
            Miscc.Add("randomult", new CheckBox("Enable Random Ult?", false));
            Miscc.AddSeparator();
            Miscc.Add("banwards", new CheckBox("Enable Sebby BanWars?", false));
            Miscc.Add("antialistar", new CheckBox("Enable AntiAlistar?", false));
            Miscc.Add("traptrack", new CheckBox("Enable TrapTracker?", false));
开发者ID:yashine59fr,项目名称:PortAIO-1,代码行数:67,代码来源:Loader.cs


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