コード例 #1
0
 /// <summary>
 ///     Combo Keys
 /// </summary>
 /// <param name="useQ">Create Q COMBO menu</param>
 /// <param name="defaultQ">Determinate toggle status</param>
 /// <param name="useW">Create W COMBO menu</param>
 /// <param name="defaultW">Determinate toggle status</param>
 /// <param name="useE">Create E COMBO menu</param>
 /// <param name="defaultE">Determinate toggle status</param>
 /// <param name="useR">Create R COMBO menu</param>
 /// <param name="defaultR">Determinate toggle status</param>
 public static void ComboKeys(
     bool useQ     = true,
     bool defaultQ = true,
     bool useW     = true,
     bool defaultW = true,
     bool useE     = true,
     bool defaultE = true,
     bool useR     = true,
     bool defaultR = true)
 {
     if (useQ)
     {
         Combo.AddCheckBox("combo.q".AddName(), "Use Q", defaultQ);
     }
     if (useW)
     {
         Combo.AddCheckBox("combo.w".AddName(), "Use W", defaultW);
     }
     if (useE)
     {
         Combo.AddCheckBox("combo.e".AddName(), "Use E", defaultE);
     }
     if (useR)
     {
         Combo.AddCheckBox("combo.r".AddName(), "Use R", defaultR);
     }
     Combo.AddSeparator();
     Combo.Add("combo.advanced", new CheckBox("Show Advanced Menu", false)).OnValueChange +=
         Value.AdvancedModeChanged;
     JsonSettings.Profile.Options.Add(new JsonSetting("combo.advanced", Setting.Checkbox, Combo["combo.advanced"].Cast <CheckBox>().CurrentValue.ToString()));
 }
コード例 #2
0
ファイル: MenuManager.cs プロジェクト: tekintr/Elobuddy
        public static void Initialize()
        {
            mainMenu    = MainMenu.AddMenu("TekinGaren", "mainMenu");
            Combo       = mainMenu.AddSubMenu("Combo", "ComboMenu");
            LaneClear   = mainMenu.AddSubMenu("LaneClear", "LaneClearMenu");
            LastHit     = mainMenu.AddSubMenu("LastHit", "LastHitMenu");
            JungleClear = mainMenu.AddSubMenu("JungleClear", "JungleClearMenu");
            KillSteal   = mainMenu.AddSubMenu("KillSteal", "KillStealMenu");
            Rendering   = mainMenu.AddSubMenu("Rendering", "RenderingMenu");
            Settings    = mainMenu.AddSubMenu("Settings", "SettingsMenu");

            mainMenu.AddGroupLabel("Created by TekinTR");
            mainMenu.AddLabel("Bu addon Garen icin tasarlandi.");
            mainMenu.AddLabel("Bug yada hatami buldun? Benimle iletisime gec.");

            Combo.AddGroupLabel("Combo Features");
            Combo.AddCheckBox("comboQ", "Kullan Q");
            Combo.AddCheckBox("comboE", "Kullan E");

            LaneClear.AddGroupLabel("LaneClear Features");
            LaneClear.AddCheckBox("laneQ", "Use Q", false);
            LaneClear.AddCheckBox("laneE", "Use E");

            LastHit.AddGroupLabel("LastHit Features");
            LastHit.AddCheckBox("lasthitQ", "Kullan Q");

            JungleClear.AddGroupLabel("JungleClear Features");
            JungleClear.AddCheckBox("jungleQ", "Kullan Q");
            JungleClear.AddCheckBox("jungleE", "Kullan E");

            KillSteal.AddGroupLabel("KillSteal Features");
            KillSteal.AddCheckBox("ksAA", "Oto atak ile KS");
            KillSteal.AddCheckBox("ksQ", "Q ile KS");
            KillSteal.AddCheckBox("ksR", "R ile KS");

            Rendering.AddGroupLabel("Rendering Features");
            //Rendering.AddCheckBox("renderP", "Render Player HP Bar");
            //Rendering.AddCheckBox("renderA", "Render Ally HP Bar");
            Rendering.AddCheckBox("renderE", "Dusman HP bar goster");
            Rendering.AddCheckBox("killable", "Goster 'Olucek' yazisi");
            Rendering.AddLabel("Rendering Configurations");
            Rendering.AddCheckBox("renderS_dmg", "Goster Skill hasari");
            Rendering.AddCheckBox("renderI_dmg", "Goster Item hasari");
            Rendering.AddSlider("renderAA", "Goster Basit Atak hasari", 2, 0, 5);
            //Rendering.AddCheckBox("renderS_heal", "Render Spell healing");
            //Rendering.AddCheckBox("renderI_heal", "Render Item healing");

            Settings.AddGroupLabel("Settings Features");
            Settings.AddCheckBox("cleanseQ", "Yavaslatma temizle Q", false);
            Settings.AddCheckBox("destroy", "Q ile yapilari yok et");
            Settings.AddSlider("percentQ", "Kaydet Q ks icin can yüzdesi iken >= ", 35, 0, 100);

            Settings.GetSliderObject("percentQ").OnValueChange += MenuManager_OnValueChange;;

            Console.WriteLine("MenuManager initialized.");
        }
コード例 #3
0
        public static void Initialize()
        {
            mainMenu    = MainMenu.AddMenu("AbsoluteGaren", "mainMenu");
            Combo       = mainMenu.AddSubMenu("Combo", "ComboMenu");
            LaneClear   = mainMenu.AddSubMenu("LaneClear", "LaneClearMenu");
            LastHit     = mainMenu.AddSubMenu("LastHit", "LastHitMenu");
            JungleClear = mainMenu.AddSubMenu("JungleClear", "JungleClearMenu");
            KillSteal   = mainMenu.AddSubMenu("KillSteal", "KillStealMenu");
            Rendering   = mainMenu.AddSubMenu("Rendering", "RenderingMenu");
            Settings    = mainMenu.AddSubMenu("Settings", "SettingsMenu");

            mainMenu.AddGroupLabel("Created by Counter");
            mainMenu.AddLabel("This addon is designed for the Champion, Garen.");
            mainMenu.AddLabel("Found a bug or error? Please contact me by PM on EloBuddy.");

            Combo.AddGroupLabel("Combo Features");
            Combo.AddCheckBox("Q", "Use Q");
            Combo.AddCheckBox("E", "Use E");

            LaneClear.AddGroupLabel("LaneClear Features");
            LaneClear.AddCheckBox("Q", "Use Q", false);
            LaneClear.AddCheckBox("E", "Use E");

            LastHit.AddGroupLabel("LastHit Features");
            LastHit.AddCheckBox("Q", "Use Q");

            JungleClear.AddGroupLabel("JungleClear Features");
            JungleClear.AddCheckBox("Q", "Use Q");
            JungleClear.AddCheckBox("E", "Use E");

            KillSteal.AddGroupLabel("KillSteal Features");
            KillSteal.AddCheckBox("AA", "KS with Basic Attack");
            KillSteal.AddCheckBox("Q", "KS with Q");
            KillSteal.AddCheckBox("R", "KS with R");

            Rendering.AddGroupLabel("Rendering Features");
            Rendering.AddCheckBox("player", "Render Player HP Bar");
            Rendering.AddCheckBox("enemy", "Render Enemy HP Bar");
            Rendering.AddCheckBox("killable", "Display 'Killable' text");
            Rendering.AddLabel("Rendering Configurations");
            Rendering.AddCheckBox("spell_dmg", "Render Spell damage");
            Rendering.AddCheckBox("item_dmg", "Render Item damage");
            Rendering.AddSlider("aa_dmg", "Render Basic Attack damage", 2, 0, 5);
            Rendering.AddCheckBox("item_heal", "Render Item healing");

            Settings.AddGroupLabel("Settings Features");
            Settings.AddCheckBox("cleanse", "Cleanse Slows with Q", false);
            Settings.AddCheckBox("destroy", "Destroy structures with Q");
            Settings.AddSlider("percentQ", "Save Q for ks when unit Health percent >= ", 35, 0, 100);

            Settings.GetSliderObject("percentQ").OnValueChange += PercentageQ_OnValueChange;

            Console.WriteLine("MenuManager initialized.");
        }