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


C# Menu.CreateKeyBind方法代码示例

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


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

示例1: CreateMenu

        public static void CreateMenu()
        {
            FirstMenu = MainMenu.AddMenu("Mario`s " + Player.Instance.ChampionName, Player.Instance.ChampionName.ToLower() + "hue");
            ComboMenu = FirstMenu.AddSubMenu("• Combo", ComboMenuID);
            HarassMenu = FirstMenu.AddSubMenu("• Harass", HarassMenuID);
            AutoHarassMenu = FirstMenu.AddSubMenu("• AutoHarass", AutoHarassMenuID);
            LaneClearMenu = FirstMenu.AddSubMenu("• LaneClear", LaneClearMenuID);
            LasthitMenu = FirstMenu.AddSubMenu("• LastHit", LastHitMenuID);
            JungleClearMenu = FirstMenu.AddSubMenu("• JungleClear", JungleClearMenuID);
            KillStealMenu = FirstMenu.AddSubMenu("• KillSteal", KillStealMenuID);
            MiscMenu = FirstMenu.AddSubMenu("• Misc", MiscMenuID);
            DrawingsMenu = FirstMenu.AddSubMenu("• Drawings", DrawingsMenuID);

            ComboMenu.AddGroupLabel("Spells");
            ComboMenu.CreateCheckBox(" - Use Q", "qUse");
            ComboMenu.CreateCheckBox(" - Use W", "wUse");
            ComboMenu.CreateCheckBox(" - Use E", "eUse");
            ComboMenu.CreateCheckBox(" - Use R", "rUse");

            HarassMenu.AddGroupLabel("Spells");
            HarassMenu.CreateCheckBox(" - Use Q", "qUse");
            HarassMenu.CreateCheckBox(" - Use W", "wUse");
            HarassMenu.CreateCheckBox(" - Use E", "eUse");
            HarassMenu.CreateCheckBox(" - Use R", "rUse");
            HarassMenu.AddGroupLabel("Settings");
            HarassMenu.CreateSlider("Mana must be higher than [{0}%] to use Harass spells", "manaSlider", 30);

            AutoHarassMenu.AddGroupLabel("Spells");
            AutoHarassMenu.CreateCheckBox(" - Use Q", "qUse");
            AutoHarassMenu.CreateCheckBox(" - Use W", "wUse");
            AutoHarassMenu.CreateCheckBox(" - Use E", "eUse");
            AutoHarassMenu.CreateCheckBox(" - Use R", "rUse");
            AutoHarassMenu.AddGroupLabel("Settings");
            AutoHarassMenu.CreateKeyBind("Enable/Disable AutoHrass", "autoHarassKey", 'Z', 'U');
            AutoHarassMenu.CreateSlider("Mana must be higher than [{0}%] to use AutoHarass spells", "manaSlider", 30);

            LaneClearMenu.AddGroupLabel("Spells");
            LaneClearMenu.CreateCheckBox(" - Use Q", "qUse");
            LaneClearMenu.CreateCheckBox(" - Use W", "wUse");
            LaneClearMenu.CreateCheckBox(" - Use E", "eUse");
            LaneClearMenu.CreateCheckBox(" - Use R", "rUse");
            LaneClearMenu.AddGroupLabel("Settings");
            LaneClearMenu.CreateSlider("Mana must be higher than [{0}%] to use LaneClear spells", "manaSlider", 30);

            LasthitMenu.AddGroupLabel("Spells");
            LasthitMenu.CreateCheckBox(" - Use Q", "qUse");
            LasthitMenu.CreateCheckBox(" - Use W", "wUse");
            LasthitMenu.CreateCheckBox(" - Use E", "eUse");
            LasthitMenu.CreateCheckBox(" - Use R", "rUse");
            LasthitMenu.AddGroupLabel("Settings");
            LasthitMenu.CreateSlider("Mana must be higher than [{0}%] to use LastHit spells", "manaSlider", 30);

            JungleClearMenu.AddGroupLabel("Spells");
            JungleClearMenu.CreateCheckBox(" - Use Q", "qUse");
            JungleClearMenu.CreateCheckBox(" - Use W", "wUse");
            JungleClearMenu.CreateCheckBox(" - Use E", "eUse");
            JungleClearMenu.CreateCheckBox(" - Use R", "rUse");
            JungleClearMenu.AddGroupLabel("Settings");
            JungleClearMenu.CreateSlider("Mana must be higher than [{0}%] to use JungleClear spells", "manaSlider", 30);

            KillStealMenu.AddGroupLabel("Spells");
            KillStealMenu.CreateCheckBox(" - Use Q", "qUse");
            KillStealMenu.CreateCheckBox(" - Use W", "wUse");
            KillStealMenu.CreateCheckBox(" - Use E", "eUse");
            KillStealMenu.CreateCheckBox(" - Use R", "rUse");
            KillStealMenu.AddGroupLabel("Settings");
            KillStealMenu.CreateSlider("Mana must be higher than [{0}%] to use Killsteal spells", "manaSlider", 30);

            MiscMenu.AddGroupLabel("Skin Changer");

            var skinList = Skins.SkinsDB.FirstOrDefault(list => list.Champ == Player.Instance.Hero);
            if (skinList != null)
            {
                MiscMenu.CreateComboBox("Choose the skin", "skinComboBox", skinList.Skins);
                MiscMenu.Get<ComboBox>("skinComboBox").OnValueChange +=
                    delegate (ValueBase<int> sender, ValueBase<int>.ValueChangeArgs args) { Player.Instance.SetSkinId(sender.CurrentValue); };
                Player.Instance.SetSkinId(MiscMenu.Get<ComboBox>("skinComboBox").CurrentValue);
            }

            MiscMenu.AddGroupLabel("Auto Level UP");
            MiscMenu.CreateCheckBox("Activate Auto Leveler", "activateAutoLVL", false);
            MiscMenu.AddLabel("The auto leveler will always focus R than the rest of the spells");
            MiscMenu.CreateComboBox("1st Spell to focus", "firstFocus", new List<string> {"Q", "W", "E"});
            MiscMenu.CreateComboBox("2nd Spell to focus", "secondFocus", new List<string> {"Q", "W", "E"}, 1);
            MiscMenu.CreateComboBox("3rd Spell to focus", "thirdFocus", new List<string> {"Q", "W", "E"}, 2);
            MiscMenu.CreateSlider("Delay slider", "delaySlider", 200, 150, 500);

            DrawingsMenu.AddGroupLabel("Setting");
            DrawingsMenu.CreateCheckBox(" - Draw Spell`s range only if they are ready.", "readyDraw");
            DrawingsMenu.CreateCheckBox(" - Draw damage indicator.", "damageDraw");
            DrawingsMenu.CreateCheckBox(" - Draw damage indicator percent.", "perDraw");
            DrawingsMenu.CreateCheckBox(" - Draw damage indicator statistics.", "statDraw", false);
            DrawingsMenu.AddGroupLabel("Spells");
            DrawingsMenu.CreateCheckBox(" - Draw Q.", "qDraw");
            DrawingsMenu.CreateCheckBox(" - Draw W.", "wDraw");
            DrawingsMenu.CreateCheckBox(" - Draw E.", "eDraw");
            DrawingsMenu.CreateCheckBox(" - Draw R.", "rDraw");
            DrawingsMenu.AddGroupLabel("Drawings Color");
            QColorSlide = new ColorSlide(DrawingsMenu, "qColor", Color.Red, "Q Color:");
            WColorSlide = new ColorSlide(DrawingsMenu, "wColor", Color.Purple, "W Color:");
//.........这里部分代码省略.........
开发者ID:Casanje,项目名称:ItsMeMario,代码行数:101,代码来源:Menus.cs

示例2: Summoners

 static Summoners()
 {
     Menu = Loader.Menu.AddSubMenu("Summoners");
     Menu.AddGroupLabel("Summoners settings");
     #region Smite
     if (Managers.SummonerManager.PlayerHasSmite)
     {
         Menu.AddGroupLabel("Smite");
         Menu.CreateKeyBind("Enable smite", "Summoners.Smite.Keybind", 'S', 'B');
         Menu.AddSeparator(10);
         Menu.CreateCheckBox("Draw smite range", "Summoners.Smite.Draw.Range", false);
         Menu.CreateCheckBox("Draw smite status", "Summoners.Smite.Draw.Status");
         Menu.CreateCheckBox("Draw smite damage", "Summoners.Smite.Draw.Damage");
         Menu.AddSeparator(10);
         Menu.CreateSlider("Keep {0} smite's", "Summoners.Smite.Keep.Count", 1, 0, 2);
         Menu.CreateSlider("Subtract {0} from damage calculations", "Summoners.Smite.Substract", 5, 0, 35);
         Menu.CreateCheckBox("Use smite on champions", "Summoners.Smite.Champions");
         Menu.CreateSlider("Smite if enemies HP <= {0}%", "Summoners.Smite.Champions.Health", 45, 0, 100);
         Menu.CreateCheckBox("KS with smite", "Summoners.Smite.KillSteal");
         Menu.AddSeparator(10);
         switch (Game.MapId)
         {
             case GameMapId.SummonersRift:
                 Menu.AddLabel("Epic monsters");
                 Menu.CreateCheckBox("Smite Baron", "Smite.Monster." + "SRU_Baron");
                 Menu.CreateCheckBox("Smite Herald", "Smite.Monster." + "SRU_RiftHerald");
                 Menu.CreateCheckBox("Smite Cloud Drake", "Smite.Monster." + "SRU_Dragon_Air");
                 Menu.CreateCheckBox("Smite Infernal Drake", "Smite.Monster." + "SRU_Dragon_Fire");
                 Menu.CreateCheckBox("Smite Mountain Drake", "Smite.Monster." + "SRU_Dragon_Earth");
                 Menu.CreateCheckBox("Smite Ocean Drake", "Smite.Monster." + "SRU_Dragon_Water");
                 Menu.CreateCheckBox("Smite Elder Drake", "Smite.Monster." + "SRU_Dragon_Elder");
                 Menu.AddLabel("Normal monsters");
                 Menu.CreateCheckBox("Smite Red", "Smite.Monster." + "SRU_Red");
                 Menu.CreateCheckBox("Smite Blue", "Smite.Monster." + "SRU_Blue");
                 Menu.AddLabel("Other monsters");
                 Menu.CreateCheckBox("Smite Gromp", "Smite.Monster." + "SRU_Gromp", false);
                 Menu.CreateCheckBox("Smite Murkwolf", "Smite.Monster." + "SRU_Murkwolf", false);
                 Menu.CreateCheckBox("Smite Razorbeak", "Smite.Monster." + "SRU_Razorbeak", false);
                 Menu.CreateCheckBox("Smite Krug", "Smite.Monster." + "SRU_Krug", false);
                 Menu.CreateCheckBox("Smite Crab", "Smite.Monster." + "Sru_Crab", false);
                 break;
             case GameMapId.TwistedTreeline:
                 Menu.AddLabel("Epic monsters");
                 Menu.CreateCheckBox("Smite Vilemaw", "Smite.Monster." + "TT_Spiderboss");
                 Menu.AddLabel("Normal monsters");
                 Menu.CreateCheckBox("Smite Golem", "Smite.Monster." + "TTNGolem");
                 Menu.CreateCheckBox("Smite Wolf", "Smite.Monster." + "TTNWolf");
                 Menu.CreateCheckBox("Smite Wraith", "Smite.Monster." + "TTNWraith");
                 break;
         }
         Menu.AddSeparator(10);
     }
     #endregion
     #region Ignite
     if (Managers.SummonerManager.PlayerHasIgnite)
     {
         Menu.AddGroupLabel("Ignite");
         Menu.CreateCheckBox("Enable ignite", "Summoners.Ignite.Status");
         Menu.CreateCheckBox("KS with ignite", "Summoners.Ignite.KillSteal");
         Menu.CreateSlider("Ignite if enemies HP <= {0}%", "Summoners.Ignite.Health", 15);
         Menu.AddSeparator(10);
     }
     #endregion
     #region Exhaust
     if (Managers.SummonerManager.PlayerHasExhaust)
     {
         Menu.AddGroupLabel("Exhaust");
         Menu.CreateCheckBox("Enable exhaust", "Summoners.Exhaust.Status");
         Menu.CreateSlider("Exhaust if enemies HP <= {0}%", "Summoners.Exhaust.Health", 35);
         Menu.AddSeparator(10);
     }
     #endregion
     #region Heal
     if (Managers.SummonerManager.PlayerHasHeal)
     {
         Menu.AddGroupLabel("Heal");
         Menu.AddLabel("Heal can be configurable in Protector section.");
         Menu.AddSeparator(10);
     }
     #endregion
     #region Barrier
     if (Managers.SummonerManager.PlayerHasBarrier)
     {
         Menu.AddGroupLabel("Barrier");
         Menu.CreateCheckBox("Enable barrier", "Summoners.Barrier.Status");
         Menu.CreateCheckBox("Barrier only dangerous", "Summoners.Barrier.Dangerous");
         Menu.CreateSlider("Barrier if my HP <= {0}%", "Summoners.Barrier.Health", 10);
         Menu.AddSeparator(10);
     }
     #endregion
     #region Snowball
     if (Managers.SummonerManager.PlayerHasSnowball)
     {
         Menu.AddGroupLabel("Snowball");
         Menu.CreateCheckBox("Enable snowball", "Summoners.Snowball.Status");
         Menu.AddSeparator(10);
     }
     #endregion
     #region Cleanse
     if (Managers.SummonerManager.PlayerHasCleanse)
//.........这里部分代码省略.........
开发者ID:,项目名称:,代码行数:101,代码来源:

示例3: CreateMenu

        public static void CreateMenu()
        {
            FirstMenu = MainMenu.AddMenu("Ronin " + Player.Instance.ChampionName, Player.Instance.ChampionName.ToLower() + "hue");
            ComboMenu = FirstMenu.AddSubMenu("• Combo", ComboMenuID);
            HarassMenu = FirstMenu.AddSubMenu("• Harass", HarassMenuID);
            //AutoHarassMenu = FirstMenu.AddSubMenu("• AutoHarass", AutoHarassMenuID);
            LaneClearMenu = FirstMenu.AddSubMenu("• LaneClear", LaneClearMenuID);
            //LasthitMenu = FirstMenu.AddSubMenu("• LastHit", LastHitMenuID);
            JungleClearMenu = FirstMenu.AddSubMenu("• JungleClear", JungleClearMenuID);
            //KillStealMenu = FirstMenu.AddSubMenu("• KillSteal", KillStealMenuID);
            MiscMenu = FirstMenu.AddSubMenu("• Misc", MiscMenuID);
            DrawingsMenu = FirstMenu.AddSubMenu("• Drawings", DrawingsMenuID);

            ComboMenu.AddGroupLabel("Combo");
            ComboMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
            //ComboMenu.Add("gankc", new KeyBind("Gank Combo", false, KeyBind.BindTypes.HoldActive, 'T'));
            ComboMenu.CreateKeyBind("Enable/Disable GankCombo", "gankcombokey", 'T', 'Z');
            //Menu.Add("flashq", new KeyBind("FlashQ - Select Target (Hold)", false, KeyBind.BindTypes.HoldActive, 'T'));
            ComboMenu.AddSeparator(10);
            ComboMenu.AddLabel("İnsan Ayarları");
            ComboMenu.CreateCheckBox(" - Kullan Q", "qUse");
            ComboMenu.CreateCheckBox(" - Kullan W", "wUse");
            ComboMenu.CreateCheckBox(" - Kullan E", "eUse");
            ComboMenu.CreateCheckBox(" - Kullan R", "rUse");
            ComboMenu.AddLabel("Örümcek Ayarları");
            ComboMenu.CreateCheckBox(" - Ayarları Q2", "q2Use");
            ComboMenu.CreateCheckBox(" - Kullan W2", "w2Use");
            ComboMenu.CreateCheckBox(" - Kullan E2", "e2Use");
            ComboMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");

            HarassMenu.AddGroupLabel("Dürtme");
            HarassMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
            HarassMenu.AddLabel("İnsan Ayarları");
            HarassMenu.CreateCheckBox(" - Kullan Q", "qUse");
            HarassMenu.CreateCheckBox(" - Kullan W", "wUse", false);
            HarassMenu.CreateCheckBox(" - Kullan E", "eUse");
            HarassMenu.AddLabel("Örümcek Ayarları");
            HarassMenu.CreateCheckBox(" - Kullan Q2", "q2Use");
            HarassMenu.CreateCheckBox(" - Kullan W2", "w2Use", false);
            HarassMenu.CreateCheckBox(" - Kullan E2", "e2Use", false);
            HarassMenu.AddGroupLabel("Ayarlar");
            HarassMenu.CreateSlider("Dürtme için gereken mana", "manaSlider", 30);
            HarassMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");

            LaneClearMenu.AddGroupLabel("Sonvuruş ve Lantemizleme");
            LaneClearMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
            LaneClearMenu.CreateCheckBox(" - Kullan Q/Q2", "qUse");
            LaneClearMenu.AddGroupLabel("Ayarlar");
            LaneClearMenu.CreateSlider("Gereken mana", "manaSlider", 30);
            LaneClearMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");

            JungleClearMenu.AddGroupLabel("OrmanTemizleme");
            JungleClearMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
            JungleClearMenu.AddLabel("İnsan Ayarları");
            JungleClearMenu.CreateCheckBox(" - Kullan Q", "qUse");
            JungleClearMenu.CreateCheckBox(" - Kullan W", "wUse");
            JungleClearMenu.CreateCheckBox(" - Kullan E", "eUse");
            JungleClearMenu.CreateCheckBox(" - Kullan R", "rUse");
            JungleClearMenu.AddLabel("Örümcek Ayarları");
            JungleClearMenu.CreateCheckBox(" - Kullan Q2", "q2Use");
            JungleClearMenu.CreateCheckBox(" - Kullan W2", "w2Use");
            JungleClearMenu.CreateCheckBox(" - Kullan E2", "e2Use");
            JungleClearMenu.AddGroupLabel("Ayarlar");
            JungleClearMenu.CreateSlider("Ormantemizleme için gereken mana", "manaSlider", 20);
            JungleClearMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");

            //KillStealMenu.AddGroupLabel("KS");
            //KillStealMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
            //KillStealMenu.CreateCheckBox(" - Kullan Q", "qUse");
            //KillStealMenu.CreateCheckBox(" - Kullan W", "wUse");
            //KillStealMenu.CreateCheckBox(" - Kullan E", "eUse");
            //KillStealMenu.CreateCheckBox(" - Kullan R", "rUse");
            //KillStealMenu.AddGroupLabel("Ayarlar");
            //KillStealMenu.CreateSlider("Manam şundan fazla", "manaSlider", 30);
            //KillStealMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");

            MiscMenu.CreateCheckBox("- E kullan Antigapcloser için(betadır)", "eGap");
            MiscMenu.AddGroupLabel("Skin Değiştirici");
            
            var skinList = Mario_s_Lib.DataBases.Skins.SkinsDB.FirstOrDefault(list => list.Champ == Player.Instance.Hero);
            if (skinList != null)
            {
                MiscMenu.CreateComboBox("Kostümünüzü seçin", "skinComboBox", skinList.Skins);
                MiscMenu.Get<ComboBox>("skinComboBox").OnValueChange += delegate(ValueBase<int> sender, ValueBase<int>.ValueChangeArgs args)
                {
                    Player.Instance.SetSkinId(sender.CurrentValue);
                };
            }

            MiscMenu.AddGroupLabel("Otomatik level arttırma");
            MiscMenu.CreateCheckBox("Otomatik level", "activateAutoLVL", false);
            MiscMenu.AddLabel("Otomatik level herşeyden önce Rye öncelik verir gerisini ayarlayın");
            MiscMenu.CreateComboBox("1.ci büyü", "firstFocus", new List<string> {"Q", "W", "E"});
            MiscMenu.CreateComboBox("2.ci büyü", "secondFocus", new List<string> {"Q", "W", "E"}, 1);
            MiscMenu.CreateComboBox("3.cü büyü", "thirdFocus", new List<string> {"Q", "W", "E"}, 2);
            MiscMenu.CreateSlider("Gecikme Ayarı", "delaySlider", 200, 150, 500);

            DrawingsMenu.AddGroupLabel("Gösterge Ayarları");
            DrawingsMenu.CreateCheckBox(" - Sadece büyü hazırsa göster.", "readyDraw");
            DrawingsMenu.CreateCheckBox(" - Hasar tespitçisi göster.", "damageDraw");
//.........这里部分代码省略.........
开发者ID:,项目名称:,代码行数:101,代码来源:

示例4: CreateMenu

        public static void CreateMenu()
        {
            FirstMenu = MainMenu.AddMenu("KappAzir", "KappAzir");
            FleeMenu = FirstMenu.AddSubMenu("• Jumper", FleeMenuID);
            SpellsMenu = FirstMenu.AddSubMenu("• Spells Handler", SpellsMenuID);
            ComboMenu = FirstMenu.AddSubMenu("• Combo", ComboMenuID);
            HarassMenu = FirstMenu.AddSubMenu("• Harass", HarassMenuID);
            AutoHarassMenu = FirstMenu.AddSubMenu("• AutoHarass", AutoHarassMenuID);
            LaneClearMenu = FirstMenu.AddSubMenu("• LaneClear", LaneClearMenuID);
            LasthitMenu = FirstMenu.AddSubMenu("• LastHit", LastHitMenuID);
            JungleClearMenu = FirstMenu.AddSubMenu("• JungleClear", JungleClearMenuID);
            KillStealMenu = FirstMenu.AddSubMenu("• KillSteal", KillStealMenuID);
            MiscMenu = FirstMenu.AddSubMenu("• Misc", MiscMenuID);
            DrawingsMenu = FirstMenu.AddSubMenu("• Drawings", DrawingsMenuID);

            FleeMenu.AddGroupLabel("Jumper - Flee Mode");
            FleeMenu.Add("flee", new KeyBind("Jumper Key", false, KeyBind.BindTypes.HoldActive, 'A'));
            FleeMenu.CreateSlider("Use Soldiers in {0} Range", "range", 1000, 150, 1500);
            FleeMenu.CreateSlider("EQ Delay = {0}", "delay", 250, 150, 500);
            FleeMenu.AddSeparator(0);
            FleeMenu.AddLabel("This is used for the Delay of Casting between E > Q");
            FleeMenu.AddLabel("Used In Insec / Flee Mode");
            FleeMenu.AddSeparator(0);
            FleeMenu.AddGroupLabel("Insec Mode");
            FleeMenu.AddLabel("Select a Target then hold the insec key");
            FleeMenu.Add("insect", new KeyBind("Normal InSec", false, KeyBind.BindTypes.HoldActive, 'S'));
            FleeMenu.Add("insected", new KeyBind("New InSec", false, KeyBind.BindTypes.HoldActive, 'Z'));
            FleeMenu.AddGroupLabel("Normal Insec Settings");
            FleeMenu.CreateCheckBox(" - Push Enemy To Allis", "Ally");
            FleeMenu.CreateCheckBox(" - Push Enemy To Ally Tower", "Tower");
            FleeMenu.AddSeparator(0);
            FleeMenu.AddGroupLabel("New Insec Settings");
            FleeMenu.CreateComboBox("Q Position", "qpos", new List<string> { "To Mouse", "To Old Position", "To Tower", "To Ally" });
            FleeMenu.CreateComboBox("R Position", "rpos", new List<string> { "To Mouse", "To Old Position", "To Tower", "To Ally" });
            FleeMenu.CreateSlider("Lower Q Distance by [{0}]", "dis", 0, 0, 500);

            SpellsMenu.AddGroupLabel("Spells Handler");
            SpellsMenu.CreateCheckBox(" - R Anti GapCloser", "rUseGap");
            SpellsMenu.CreateCheckBox(" - R Interrupter", "rUseInt");
            SpellsMenu.CreateComboBox("Interrupter DangerLevel", "Intdanger", new List<string> { "High", "Medium", "Low" });
            SpellsMenu.AddGroupLabel("Hit Chance");
            SpellsMenu.CreateComboBox("HitChance", "chance", new List<string> { "High", "Medium", "Low" });

            ComboMenu.AddGroupLabel("Spells");
            ComboMenu.CreateCheckBox(" - Use Q", "qUse");
            ComboMenu.CreateCheckBox(" - Use W", "wUse");
            ComboMenu.CreateCheckBox(" - Use E", "eUse");
            ComboMenu.CreateCheckBox(" - Use R", "rUse");
            ComboMenu.CreateSlider("Create Tower If Enemies Near [{0}]", "TowerPls", 2, 1, 5);
            ComboMenu.AddSeparator();
            ComboMenu.AddGroupLabel("Q Extra Settings");
            ComboMenu.CreateCheckBox(" - Use Q If Target Not In Soldiers Range", "qUseAA", false);
            ComboMenu.CreateSlider("Soldier Count to Cast Q [{0}]", "Qcount", 1, 1, 3);
            ComboMenu.CreateSlider("Q AoE hit [{0}]", "Qaoe", 2, 1, 5);
            ComboMenu.AddSeparator();
            ComboMenu.AddGroupLabel("W Extra Settings");
            ComboMenu.CreateCheckBox(" - Use W If Target Not In Soldiers Range", "wUseAA", false);
            ComboMenu.CreateCheckBox(" - Save 1 W Stack", "wSave", false);
            ComboMenu.AddSeparator();
            ComboMenu.AddGroupLabel("E Extra Settings");
            ComboMenu.CreateCheckBox(" - Use E Only if target Killable", "eUsekill");
            ComboMenu.CreateCheckBox(" - E Dive Towers", "eUseDive", false);
            ComboMenu.CreateSlider("No E if Target Health more than my health by [{0}%]", "eHealth", 15);
            ComboMenu.CreateSlider("No E if Enemies Near target more than [{0}]", "eSave", 2, 1, 5);
            ComboMenu.AddSeparator();
            ComboMenu.AddGroupLabel("R Extra Settings");
            ComboMenu.CreateCheckBox(" - R Over Kill Check", "rOverKill");
            ComboMenu.CreateCheckBox(" - Use R Finisher", "rUsekill");
            ComboMenu.CreateCheckBox(" - Use R Saver", "rUseSave", false);
            ComboMenu.CreateCheckBox(" - Push Enemy To Allis", "rUseAlly");
            ComboMenu.CreateCheckBox(" - Push Enemy To Ally Tower", "rUseTower");
            ComboMenu.Add("Rcast", new KeyBind("Semi-Auto R", false, KeyBind.BindTypes.HoldActive, 'R'));
            ComboMenu.CreateSlider("R AoE hit [{0}]", "Raoe", 2, 1, 5);

            HarassMenu.AddGroupLabel("Spells");
            HarassMenu.CreateCheckBox(" - Use Q", "qUse");
            HarassMenu.CreateCheckBox(" - Use W", "wUse");
            HarassMenu.CreateCheckBox(" - Use E", "eUse");
            HarassMenu.AddGroupLabel("Settings");
            HarassMenu.CreateCheckBox(" - Save 1 W Stack", "wSave");
            HarassMenu.CreateCheckBox(" - E Dive Towers", "eUseDive", false);
            HarassMenu.CreateSlider("No E if Enemies Near target more than [{0}]", "eSave", 3, 1, 5);
            HarassMenu.CreateSlider("Mana must be more than [{0}%] to use Harass spells", "manaSlider", 60);

            AutoHarassMenu.AddGroupLabel("Spells");
            AutoHarassMenu.CreateCheckBox(" - Use Q", "qUse");
            AutoHarassMenu.CreateCheckBox(" - Use W", "wUse");
            AutoHarassMenu.CreateCheckBox(" - Use E", "eUse");
            AutoHarassMenu.AddGroupLabel("Settings");
            AutoHarassMenu.CreateCheckBox(" - Save 1 W Stack", "wSave");
            AutoHarassMenu.CreateCheckBox(" - Always AutoAttack with soldiers", "attack", false);
            AutoHarassMenu.CreateCheckBox(" - E Dive Towers", "eDive", false);
            AutoHarassMenu.CreateSlider("No E if Enemies Near target more than [{0}]", "eSave", 3, 1, 5);
            AutoHarassMenu.CreateKeyBind("Enable/Disable AutoHrass", "autoHarassKey", 'Z', 'U');
            AutoHarassMenu.CreateSlider("Mana must be more than [{0}%] to use AutoHarass spells", "manaSlider", 60);

            LaneClearMenu.AddGroupLabel("Spells");
            LaneClearMenu.CreateCheckBox(" - Use Q", "qUse");
            LaneClearMenu.CreateCheckBox(" - Use W", "wUse");
            LaneClearMenu.AddGroupLabel("Settings");
//.........这里部分代码省略.........
开发者ID:FireBuddy,项目名称:karthus,代码行数:101,代码来源:Menus.cs


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