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


C# Menu.SubMenu方法代码示例

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


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

示例1: Game_OnGameLoad

        private void Game_OnGameLoad(EventArgs args)
        {
            if (Player.ChampionName != charName) return;
            Cleanser.CreateQSSSpellList();

            #region Menu
            Menu = new Menu("VayneHunter Rework", "VHRework", true);
            var orbMenu = new Menu("Orbwalker", "orbwalker");
            COrbwalker = new Orbwalking.Orbwalker(orbMenu);
            Menu.AddSubMenu(orbMenu);
            var tsMenu = new Menu("Target Selector", "TargetSel");
            TargetSelector.AddToMenu(tsMenu);
            Menu.AddSubMenu(tsMenu);

            Menu.AddSubMenu(new Menu("[VH] Combo", "Combo"));
            Menu.SubMenu("Combo").AddItem(new MenuItem("UseQC", "Use Q Combo")).SetValue(true);
            Menu.SubMenu("Combo").AddItem(new MenuItem("UseEC", "Use E Combo").SetValue(true));
            Menu.SubMenu("Combo").AddItem(new MenuItem("UseRC", "Use R Combo").SetValue(false));
            Menu.SubMenu("Combo").AddItem(new MenuItem("QManaC", "Min Q Mana %").SetValue(new Slider(35, 1, 100)));
            Menu.SubMenu("Combo").AddItem(new MenuItem("EManaC", "Min E Mana %").SetValue(new Slider(20, 1, 100)));
            Menu.SubMenu("Combo").AddItem(new MenuItem("NEnUlt", "Only ult when x enemies").SetValue(new Slider(2, 1, 5)));

            Menu.AddSubMenu(new Menu("[VH] Harrass", "Harrass"));
            Menu.SubMenu("Harrass").AddItem(new MenuItem("UseQH", "Use Q Harrass")).SetValue(true);
            Menu.SubMenu("Harrass").AddItem(new MenuItem("UseEH", "Use E Harrass").SetValue(true));
            Menu.SubMenu("Harrass").AddItem(new MenuItem("QManaH", "Min Q Mana %").SetValue(new Slider(35, 1, 100)));
            Menu.SubMenu("Harrass").AddItem(new MenuItem("EManaH", "Min E Mana %").SetValue(new Slider(20, 1, 100)));

            Menu.AddSubMenu(new Menu("[VH] Farm", "Farm"));
            Menu.SubMenu("Farm").AddItem(new MenuItem("UseQLH", "Use Q LastHit")).SetValue(true);
            Menu.SubMenu("Farm").AddItem(new MenuItem("UseQLC", "Use Q Laneclear")).SetValue(true);
            Menu.SubMenu("Farm").AddItem(new MenuItem("QManaLH", "Min Q Mana % LH").SetValue(new Slider(35, 1, 100)));
            Menu.SubMenu("Farm").AddItem(new MenuItem("QManaLC", "Min Q Mana % LC").SetValue(new Slider(35, 1, 100)));

            var MiscSubMenu = new Menu("[VH] Misc", "Misc");

            var MiscTSubMenu = new Menu("Misc - Tumble", "MiscT");
            {
                MiscTSubMenu.AddItem(new MenuItem("SmartQ", "Try to QE First").SetValue(false));
                MiscTSubMenu.AddItem(new MenuItem("NoQEn", "Don't Q into enemies").SetValue(true));
                MiscTSubMenu.AddItem(new MenuItem("NoAAStealth", "Don't AA while stealthed").SetValue(false));
                MiscTSubMenu
                    .AddItem(
                        new MenuItem("WallTumble", "Tumble Over Wall").SetValue(new KeyBind("Y".ToCharArray()[0],
                            KeyBindType.Press)));
            }
            var MiscCSubMenu = new Menu("Misc - Condemn", "MiscC");
            {
                MiscCSubMenu.AddItem(new MenuItem("ENext", "E Next Auto").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Toggle)));
                MiscCSubMenu.AddItem(new MenuItem("PushDistance", "E Push Dist").SetValue(new Slider(425, 400, 500)));
                MiscCSubMenu.AddItem(new MenuItem("CondemnTurret", "Try to Condemn to turret").SetValue(false));
                MiscCSubMenu.AddItem(new MenuItem("CondemnFlag", "Condemn to J4 flag").SetValue(true));
                MiscCSubMenu.AddItem(new MenuItem("AutoE", "Auto E").SetValue(false));
                MiscCSubMenu.AddItem(new MenuItem("AutoEKS", "Smart E Ks").SetValue(true));
                MiscCSubMenu.AddItem(new MenuItem("NoEEnT", "No E Under enemy turret").SetValue(true));
            }
            var MiscGSubMenu = new Menu("Misc - General", "MiscG");
            {

                MiscGSubMenu.AddItem(new MenuItem("Packets", "Packet Casting").SetValue(true));
                MiscGSubMenu.AddItem(new MenuItem("AntiGP", "Anti Gapcloser")).SetValue(true);
                MiscGSubMenu.AddItem(new MenuItem("Interrupt", "Interrupter").SetValue(true));
                MiscGSubMenu
                    .AddItem(new MenuItem("SpecialFocus", "Focus targets with 2 W marks").SetValue(false));
                MiscGSubMenu
                    .AddItem(
                        new MenuItem("ThreshLantern", "Grab Thresh Lantern").SetValue(new KeyBind("S".ToCharArray()[0],
                            KeyBindType.Press)));
                MiscGSubMenu.AddItem(new MenuItem("UseIgn", "Use Ignite")).SetValue(true);
            }
            MiscSubMenu.AddSubMenu(MiscTSubMenu);
            MiscSubMenu.AddSubMenu(MiscCSubMenu);
            MiscSubMenu.AddSubMenu(MiscGSubMenu);
            Menu.AddSubMenu(MiscSubMenu);

            Menu.AddSubMenu(new Menu("[VH] BushRevealer", "BushReveal"));
            //Menu.SubMenu("BushReveal").AddItem(new MenuItem("BushReveal", "Bush Revealer").SetValue(new KeyBind("Z".ToCharArray()[0], KeyBindType.Toggle)));
            Menu.SubMenu("BushReveal").AddItem(new MenuItem("BushRevealer", "Trinket bush on condemn").SetValue(true));

            Menu.AddSubMenu(new Menu("[VH] Items", "Items"));
            Menu.SubMenu("Items").AddItem(new MenuItem("BotrkC", "Botrk Combo").SetValue(true));
            Menu.SubMenu("Items").AddItem(new MenuItem("BotrkH", "Botrk Harrass").SetValue(false));
            Menu.SubMenu("Items").AddItem(new MenuItem("YoumuuC", "Youmuu Combo").SetValue(true));
            Menu.SubMenu("Items").AddItem(new MenuItem("YoumuuH", "Youmuu Harrass").SetValue(false));
            Menu.SubMenu("Items").AddItem(new MenuItem("BilgeC", "Cutlass Combo").SetValue(true));
            Menu.SubMenu("Items").AddItem(new MenuItem("BilgeH", "Cutlass Harrass").SetValue(false));
            Menu.SubMenu("Items").AddItem(new MenuItem("OwnHPercBotrk", "Min Own H. % Botrk").SetValue(new Slider(50, 1, 100)));
            Menu.SubMenu("Items").AddItem(new MenuItem("EnHPercBotrk", "Min Enemy H. % Botrk").SetValue(new Slider(20, 1, 100)));

            Menu.AddSubMenu(new Menu("[VH] QSS", "QSSMenu"));
            Menu.SubMenu("QSSMenu").AddItem(new MenuItem("UseQSS", "Use QSS").SetValue(true));
            Menu.SubMenu("QSSMenu").AddItem(new MenuItem("QSSMinBuffs", "Min Buffs to QSS").SetValue(new Slider(2,1,5)));

            Menu.AddSubMenu(new Menu("[VH] QSS Buff Types", "QSST"));
            Cleanser.CreateTypeQSSMenu();
            Menu.AddSubMenu(new Menu("[VH] QSS Spells", "QSSSpell"));
            Cleanser.CreateQSSSpellMenu();
            Menu.AddSubMenu(new Menu("[VH] Don't Condemn", "NoCondemn"));
            CreateNoCondemnMenu();

//.........这里部分代码省略.........
开发者ID:hup3s,项目名称:Elobuddy-Addons,代码行数:101,代码来源:Utility.cs

示例2: Game_OnGameLoad

        private static void Game_OnGameLoad(EventArgs args)
        {
            try
            {
                _player = ObjectManager.Player;
                if (ObjectManager.Player.BaseSkinName != ChampionName) return;
                _q = new Spell(SpellSlot.Q, 900f);
                _w = new Spell(SpellSlot.W, 550f);
                _e = new Spell(SpellSlot.E, 270f);
                _r = new Spell(SpellSlot.R, 650f);

                _q.SetSkillshot(0.25f, 50f, 1700f, false, SkillshotType.SkillshotLine);

                _bilge = new Items.Item(3144, 475f);
                _blade = new Items.Item(3153, 425f);
                _hydra = new Items.Item(3074, 250f);
                _tiamat = new Items.Item(3077, 250f);
                _rand = new Items.Item(3143, 490f);
                _lotis = new Items.Item(3190, 590f);
                _youmuu = new Items.Item(3142, 10);
                _igniteSlot = _player.GetSpellSlot("SummonerDot");

                var enemy = from hero in ObjectManager.Get<Obj_AI_Hero>()
                            where hero.IsEnemy == true
                            select hero;
                // Just menu things test
                _config = new Menu("PawnZed", "PawnZed", true);

                TargetSelectorMenu = new Menu("Target Selector", "Target Selector");
                TargetSelector.AddToMenu(TargetSelectorMenu);
                _config.AddSubMenu(TargetSelectorMenu);

                _config.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));
                _orbwalker = new Orbwalking.Orbwalker(_config.SubMenu("Orbwalking"));

                //Combo
                _config.AddSubMenu(new Menu("Combo", "Combo"));
                _config.SubMenu("Combo").AddItem(new MenuItem("UseWC", "Use W (also gap close)")).SetValue(true);
                _config.SubMenu("Combo").AddItem(new MenuItem("UseIgnitecombo", "Use Ignite(rush for it)")).SetValue(true);
                _config.SubMenu("Combo").AddItem(new MenuItem("UseUlt", "Use Ultimate")).SetValue(true);
                _config.SubMenu("Combo").AddItem(new MenuItem("ActiveCombo", "Combo!").SetValue(new KeyBind(32, KeyBindType.Press)));
                _config.SubMenu("Combo")
                    .AddItem(new MenuItem("TheLine", "The Line Combo").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));

                //Harass
                _config.AddSubMenu(new Menu("Harass", "Harass"));
                _config.SubMenu("Harass").AddItem(new MenuItem("longhar", "Long Poke (toggle)").SetValue(new KeyBind("U".ToCharArray()[0], KeyBindType.Toggle)));
                _config.SubMenu("Harass").AddItem(new MenuItem("UseItemsharass", "Use Tiamat/Hydra")).SetValue(true);
                _config.SubMenu("Harass").AddItem(new MenuItem("UseWH", "Use W")).SetValue(true);
                _config.SubMenu("Harass")
                    .AddItem(
                        new MenuItem("ActiveHarass", "Harass!").SetValue(new KeyBind("C".ToCharArray()[0], KeyBindType.Press)));

                //items
                _config.AddSubMenu(new Menu("items", "items"));
                _config.SubMenu("items").AddSubMenu(new Menu("Offensive", "Offensive"));
                _config.SubMenu("items").SubMenu("Offensive").AddItem(new MenuItem("Youmuu", "Use Youmuu's")).SetValue(true);
                _config.SubMenu("items").SubMenu("Offensive").AddItem(new MenuItem("Tiamat", "Use Tiamat")).SetValue(true);
                _config.SubMenu("items").SubMenu("Offensive").AddItem(new MenuItem("Hydra", "Use Hydra")).SetValue(true);
                _config.SubMenu("items").SubMenu("Offensive").AddItem(new MenuItem("Bilge", "Use Bilge")).SetValue(true);
                _config.SubMenu("items")
                    .SubMenu("Offensive")
                    .AddItem(new MenuItem("BilgeEnemyhp", "If Enemy Hp <").SetValue(new Slider(85, 1, 100)));
                _config.SubMenu("items")
                    .SubMenu("Offensive")
                    .AddItem(new MenuItem("Bilgemyhp", "Or your Hp < ").SetValue(new Slider(85, 1, 100)));
                _config.SubMenu("items").SubMenu("Offensive").AddItem(new MenuItem("Blade", "Use Blade")).SetValue(true);
                _config.SubMenu("items")
                    .SubMenu("Offensive")
                    .AddItem(new MenuItem("BladeEnemyhp", "If Enemy Hp <").SetValue(new Slider(85, 1, 100)));
                _config.SubMenu("items")
                    .SubMenu("Offensive")
                    .AddItem(new MenuItem("Blademyhp", "Or Your  Hp <").SetValue(new Slider(85, 1, 100)));
                _config.SubMenu("items").AddSubMenu(new Menu("Deffensive", "Deffensive"));
                _config.SubMenu("items")
                    .SubMenu("Deffensive")
                    .AddItem(new MenuItem("Omen", "Use Randuin Omen"))
                    .SetValue(true);
                _config.SubMenu("items")
                    .SubMenu("Deffensive")
                    .AddItem(new MenuItem("Omenenemys", "Randuin if enemys>").SetValue(new Slider(2, 1, 5)));
                _config.SubMenu("items")
                    .SubMenu("Deffensive")
                    .AddItem(new MenuItem("lotis", "Use Iron Solari"))
                    .SetValue(true);
                _config.SubMenu("items")
                    .SubMenu("Deffensive")
                    .AddItem(new MenuItem("lotisminhp", "Solari if Ally Hp<").SetValue(new Slider(35, 1, 100)));

                //Farm
                _config.AddSubMenu(new Menu("Farm", "Farm"));
                _config.SubMenu("Farm").AddSubMenu(new Menu("LaneFarm", "LaneFarm"));
                _config.SubMenu("Farm")
                    .SubMenu("LaneFarm")
                    .AddItem(new MenuItem("UseItemslane", "Use Hydra/Tiamat"))
                    .SetValue(true);
                _config.SubMenu("Farm").SubMenu("LaneFarm").AddItem(new MenuItem("UseQL", "Q LaneClear")).SetValue(true);
                _config.SubMenu("Farm").SubMenu("LaneFarm").AddItem(new MenuItem("UseEL", "E LaneClear")).SetValue(true);
                _config.SubMenu("Farm")
                    .SubMenu("LaneFarm")
//.........这里部分代码省略.........
开发者ID:pakkonlan,项目名称:PAWNADDON,代码行数:101,代码来源:Program.cs

示例3: Game_OnGameLoad

        private static void Game_OnGameLoad(EventArgs args)
        {
            Config = new Menu("AiEzEvade", "AiEzEvade", true);
            Config.AddToMainMenu();
            Config.SubMenu("LOW danger").AddItem(new MenuItem("LowHp", "Activation above % HP").SetValue(new Slider(70, 100, 0)));
            Config.SubMenu("LOW danger").AddItem(new MenuItem("LowEvadeMode", "Evade Mode").SetValue(new Slider(2, 2, 0)));
            Config.SubMenu("LOW danger").AddItem(new MenuItem("LowDodgeDangerous", "Dodge only Dangerous").SetValue(true));
            Config.SubMenu("LOW danger").AddItem(new MenuItem("LowDodgeCircularSpells", "Dodge Circular Spells").SetValue(false));
            Config.SubMenu("LOW danger").AddItem(new MenuItem("LowDodgeFOWSpells", "Dodge FOW Spells").SetValue(false));
            Config.SubMenu("LOW danger").AddItem(new MenuItem("LowCheckSpellCollision", "Check Spell Collision").SetValue(true));
            Config.SubMenu("LOW danger").AddItem(new MenuItem("LowClickOnlyOnce", "Click Only Once").SetValue(true));
            Config.SubMenu("LOW danger").AddItem(new MenuItem("LowTickLimiter", "Tick Limiter").SetValue(new Slider(100, 1000, 0)));
            Config.SubMenu("LOW danger").AddItem(new MenuItem("LowReactionTime", "Reaction Time").SetValue(new Slider(250, 1000, 0)));
            Config.SubMenu("LOW danger").AddItem(new MenuItem("LowSpellDetectionTime", "Spell Detection Time").SetValue(new Slider(100, 1000, 0)));
            Config.SubMenu("LOW danger").AddItem(new MenuItem("LowFastMovementBlock", "Fast Movement Block").SetValue(false));

            Config.SubMenu("MEDIUM danger").AddItem(new MenuItem("0", "Activation between LOW and HIGH"));
            Config.SubMenu("MEDIUM danger").AddItem(new MenuItem("MediumEvadeMode", "Evade Mode").SetValue(new Slider(2, 2, 0)));
            Config.SubMenu("MEDIUM danger").AddItem(new MenuItem("MediumDodgeDangerous", "Dodge only Dangerous").SetValue(false));
            Config.SubMenu("MEDIUM danger").AddItem(new MenuItem("MediumDodgeCircularSpells", "Dodge Circular Spells").SetValue(false));
            Config.SubMenu("MEDIUM danger").AddItem(new MenuItem("MediumDodgeFOWSpells", "Dodge FOW Spells").SetValue(true));
            Config.SubMenu("MEDIUM danger").AddItem(new MenuItem("MediumCheckSpellCollision", "Check Spell Collision").SetValue(true));
            Config.SubMenu("MEDIUM danger").AddItem(new MenuItem("MediumClickOnlyOnce", "Click Only Once").SetValue(true));
            Config.SubMenu("MEDIUM danger").AddItem(new MenuItem("MediumTickLimiter", "Tick Limiter").SetValue(new Slider(100, 1000, 0)));
            Config.SubMenu("MEDIUM danger").AddItem(new MenuItem("MediumReactionTime", "Reaction Time").SetValue(new Slider(200, 1000, 0)));
            Config.SubMenu("MEDIUM danger").AddItem(new MenuItem("MediumSpellDetectionTime", "Spell Detection Time").SetValue(new Slider(200, 1000, 0)));
            Config.SubMenu("MEDIUM danger").AddItem(new MenuItem("MediumFastMovementBlock", "Fast Movement Block").SetValue(false));

            Config.SubMenu("HIGH danger").AddItem(new MenuItem("HighHp", "Activation under % HP").SetValue(new Slider(35, 100, 0)));
            Config.SubMenu("HIGH danger").AddItem(new MenuItem("HighEvadeMode", "Evade Mode").SetValue(new Slider(1, 2, 0)));
            Config.SubMenu("HIGH danger").AddItem(new MenuItem("HighDodgeDangerous", "Dodge only Dangerous").SetValue(false));
            Config.SubMenu("HIGH danger").AddItem(new MenuItem("HighDodgeCircularSpells", "Dodge Circular Spells").SetValue(true));
            Config.SubMenu("HIGH danger").AddItem(new MenuItem("HighDodgeFOWSpells", "Dodge FOW Spells").SetValue(true));
            Config.SubMenu("HIGH danger").AddItem(new MenuItem("HighCheckSpellCollision", "Check Spell Collision").SetValue(true));
            Config.SubMenu("HIGH danger").AddItem(new MenuItem("HighClickOnlyOnce", "Click Only Once").SetValue(false));
            Config.SubMenu("HIGH danger").AddItem(new MenuItem("HighTickLimiter", "Tick Limiter").SetValue(new Slider(70, 1000, 0)));
            Config.SubMenu("HIGH danger").AddItem(new MenuItem("HighReactionTime", "Reaction Time").SetValue(new Slider(50, 1000, 0)));
            Config.SubMenu("HIGH danger").AddItem(new MenuItem("HighSpellDetectionTime", "Spell Detection Time").SetValue(new Slider(50, 1000, 0)));
            Config.SubMenu("HIGH danger").AddItem(new MenuItem("HighFastMovementBlock", "Fast Movement Block").SetValue(true));

            Game.OnUpdate += Game_OnGameUpdate;
        }
开发者ID:MrWenzoxfs,项目名称:elobuddy,代码行数:42,代码来源:Program.cs

示例4: GameOnOnGameLoad

        private static void GameOnOnGameLoad(EventArgs args)
        {
            Q = new Spell(SpellSlot.Q);
            E = new Spell(SpellSlot.E);
            W = new Spell(SpellSlot.W);
            R = new Spell(SpellSlot.R);

            Config = new Menu("OneKeyToWin AIO", "OneKeyToWin_AIO" + ObjectManager.Player.ChampionName, true);

            #region MENU ABOUT OKTW
            Config.SubMenu("About OKTW©").AddItem(new MenuItem("debug", "Debug").SetValue(false));
            Config.SubMenu("About OKTW©").AddItem(new MenuItem("debugChat", "Debug Chat").SetValue(false));
            Config.SubMenu("About OKTW©").AddItem(new MenuItem("0", "OneKeyToWin© by Sebby"));
            Config.SubMenu("About OKTW©").AddItem(new MenuItem("1", "visit joduska.me"));
            Config.SubMenu("About OKTW©").AddItem(new MenuItem("2", "DONATE: [email protected]"));
            #endregion

            Config.AddItem(new MenuItem("AIOmode", "AIO mode", true).SetValue(new StringList(new[] { "Utility and champion", "Only Champion", "Only Utility" }, 0)));

            AIOmode = Config.Item("AIOmode", true).GetValue<StringList>().SelectedIndex;

            //var targetSelectorMenu = new Menu("Target Selector", "Target Selector");
            //TargetSelector.AddToMenu(targetSelectorMenu);
            //Config.AddSubMenu(targetSelectorMenu);

            if (AIOmode != 2)
            {

                if (Player.ChampionName != "MissFortune")
                {
                    new Core.OktwTs().LoadOKTW();
                }
                Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));
                Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking"));
            }

            if (AIOmode != 1)
            {
                foreach (var enemy in ObjectManager.Get<Obj_AI_Hero>().Where(enemy => enemy.IsEnemy))
                    Config.SubMenu("Utility, Draws OKTW©").SubMenu("GankTimer").SubMenu("Custome jungler (select one)").AddItem(new MenuItem("ro" + enemy.ChampionName, enemy.ChampionName).SetValue(false));

                Config.SubMenu("Utility, Draws OKTW©").SubMenu("GankTimer").AddItem(new MenuItem("timer", "GankTimer").SetValue(true));
                Config.SubMenu("Utility, Draws OKTW©").SubMenu("GankTimer").AddItem(new MenuItem("1", "RED - be careful"));
                Config.SubMenu("Utility, Draws OKTW©").SubMenu("GankTimer").AddItem(new MenuItem("2", "ORANGE - you have time"));
                Config.SubMenu("Utility, Draws OKTW©").SubMenu("GankTimer").AddItem(new MenuItem("3", "GREEN - jungler visable"));
                Config.SubMenu("Utility, Draws OKTW©").SubMenu("GankTimer").AddItem(new MenuItem("4", "CYAN jungler dead - take objectives"));
            }

            Config.SubMenu("Prediction MODE").AddItem(new MenuItem("PredictionMODE", "Prediction MODE", true).SetValue(new StringList(new[] { "Common prediction", "OKTW© PREDICTION", "SPediction press F5 if not loaded"}, 1)));
            Config.SubMenu("Prediction MODE").AddItem(new MenuItem("HitChance", "Hit Chance", true).SetValue(new StringList(new[] { "Very High", "High", "Medium" }, 0)));
            Config.SubMenu("Prediction MODE").AddItem(new MenuItem("debugPred", "Draw Aiming OKTW© PREDICTION").SetValue(false));

            if (Config.Item("PredictionMODE", true).GetValue<StringList>().SelectedIndex == 2)
            {
                SPrediction.Prediction.Initialize(Config.SubMenu("Prediction MODE"));
                SPredictionLoad = true;
            }
            else
                Config.SubMenu("Prediction MODE").AddItem(new MenuItem("322", "SPREDICTION NOT LOADED"));

            if (AIOmode != 2)
            {
                Config.SubMenu("Extra settings OKTW©").AddItem(new MenuItem("supportMode", "Support Mode", true).SetValue(false));
                Config.SubMenu("Extra settings OKTW©").AddItem(new MenuItem("comboDisableMode", "Disable auto-attack in combo mode", true).SetValue(false));
                Config.SubMenu("Extra settings OKTW©").AddItem(new MenuItem("manaDisable", "Disable mana manager in combo", true).SetValue(false));
                Config.SubMenu("Extra settings OKTW©").AddItem(new MenuItem("collAA", "Disable auto-attack if Yasuo wall collision", true).SetValue(true));
                Config.SubMenu("Extra settings OKTW©").SubMenu("Anti-Melee Positioning Assistant OKTW©").AddItem(new MenuItem("positioningAssistant", "Anti-Melee Positioning Assistant OKTW©").SetValue(true));

                foreach (var enemy in ObjectManager.Get<Obj_AI_Hero>().Where(enemy => enemy.IsEnemy ))
                    Config.SubMenu("Extra settings OKTW©").SubMenu("Anti-Melee Positioning Assistant OKTW©").SubMenu("Positioning Assistant:").AddItem(new MenuItem("posAssistant" + enemy.ChampionName, enemy.ChampionName).SetValue(true));
                Config.SubMenu("Extra settings OKTW©").SubMenu("Anti-Melee Positioning Assistant OKTW©").AddItem(new MenuItem("positioningAssistantDraw", "Show notification").SetValue(true));

                Config.Item("supportMode", true).SetValue(false);

                #region LOAD CHAMPIONS

            
                switch (Player.ChampionName)
                {
                    case "Jinx":
                        new Jinx().LoadOKTW();
                        break;
                    case "Sivir":
                        new Sivir().LoadOKTW();
                        break;
                    case "Ezreal":
                        new Ezreal().LoadOKTW();
                        break;
                    case "KogMaw":
                        new KogMaw().LoadOKTW();
                        break;
                    case "Annie":
                        new Annie().LoadOKTW();
                        break;
                    case "Ashe":
                        new Ashe().LoadOKTW();
                        break;
                    case "MissFortune":
                        new MissFortune().LoadOKTW();
                        break;
//.........这里部分代码省略.........
开发者ID:MrWenzoxfs,项目名称:elobuddy,代码行数:101,代码来源:Program.cs


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