Example #1
0
        internal static void OnLoad(EventArgs args)
        {
            Config    = new Menu(Menuname, Menuname, true);
            Orbwalker = new Orbwalking.Orbwalker(Menu.root);
            ActivatorMenu.LoadActivator();
            DamagesMenu.LoadDamagesMenu();
            EnviormentMenu.LoadEnviormentMenu();
            JungleMenu.LoadJungleMenu();
            DrawingsMenu.DrawingsMenus();
            SummonersMenu.LoadSummonersMenu();
            AutoLevelMenu.OnLoad();
            Config.Item("useautolevel").SetValue(false);
            Config.AddToMainMenu();

            // Activator
            Defensive.OnLoad();
            Offensive.OnLoad();
            Consumables.OnLoad();

            // Summoners
            Ignite.OnLoad();
            Heal.OnLoad();
            Cleanse.OnLoad();
            Barrier.OnLoad();

            //Drawings //todo DtoP
            EnemyRanges.OnLoad();
            AllyRanges.OnLoad();
            Wards.OnLoad();
            TrackerSpell.OnLoad();
            //DtoT.OnLoad();s
            //  DtoP.OnLoad();

            //Jungle (yes smite contains everything in jungle) //todo Jungle timers
            Smite.OnLoad();

            //Enviormenet //todo Ult Manager, Inhibs, Turn Around, Turrets
            AntiRengar.OnLoad();
            Auto_Level_Manager.AutoLevel.OnLoad();
            //UltManager.OnLoad();
            //Inhibitors.OnLoad();
            //TurnAround.OnLoad();
            //Turrets.OnLoad();
        }
Example #2
0
        private static void InitializeMenu()
        {
            PotionsAndElixirsMenu = ActivatorMenu.AddSubMenu("Potions and Elixirs");
            PotionsAndElixirsMenu.AddGroupLabel("Potions and Elixirs : ");
            PotionsAndElixirsMenu.AddLabel("Potions : ");
            PotionsAndElixirsMenu.Add("Activator.PotionsAndElixirsMenu.UsePotions", new CheckBox("Use Potions"));
            PotionsAndElixirsMenu.Add("Activator.PotionsAndElixirsMenu.OnlyIfTakingDamage", new CheckBox("Use Potions only if taking damage"));
            PotionsAndElixirsMenu.Add("Activator.PotionsAndElixirsMenu.BelowHealth", new Slider("Use potions if health is below {0}%", 35));
            PotionsAndElixirsMenu.Add("Activator.PotionsAndElixirsMenu.HealthPotion", new CheckBox("Use Health Potion"));
            PotionsAndElixirsMenu.Add("Activator.PotionsAndElixirsMenu.RefillablePotion", new CheckBox("Use Refillable Potion"));
            PotionsAndElixirsMenu.Add("Activator.PotionsAndElixirsMenu.HuntersPotion", new CheckBox("Use Hunter's Potion"));
            PotionsAndElixirsMenu.Add("Activator.PotionsAndElixirsMenu.CorruptingPotion", new CheckBox("Use Corrupting Potion"));
            PotionsAndElixirsMenu.AddSeparator(10);
            PotionsAndElixirsMenu.AddLabel("Elixirs : ");
            PotionsAndElixirsMenu.Add("Activator.PotionsAndElixirsMenu.ElixirofIron", new CheckBox("Use Elixir of Iron"));
            PotionsAndElixirsMenu.Add("Activator.PotionsAndElixirsMenu.ElixirofSorcery", new CheckBox("Use Elixir of Sorcery"));
            PotionsAndElixirsMenu.Add("Activator.PotionsAndElixirsMenu.ElixirofWrath", new CheckBox("Use Elixir of Wrath"));
            ItemsMenu = ActivatorMenu.AddSubMenu("Items");
            ItemsMenu.AddGroupLabel("Items : ");
            ItemsMenu.AddLabel("Bilgewater Cutlass : ");
            ItemsMenu.Add("Activator.ItemsMenu.Cutlass", new CheckBox("Use Bilgewater Cutlass"));
            ItemsMenu.Add("Activator.ItemsMenu.Cutlass.MyMinHP", new Slider("Only if my health is below {0}%", 100));
            ItemsMenu.Add("Activator.ItemsMenu.Cutlass.TargetsMinHP", new Slider("Only if target's health is below {0}%", 100));
            ItemsMenu.Add("Activator.ItemsMenu.Cutlass.IfEnemiesNear", new Slider("Only if {0} or more enemies are near", 1, 1, 5));
            ItemsMenu.AddSeparator(10);
            ItemsMenu.AddLabel("Blade of the Ruined King : ");
            ItemsMenu.Add("Activator.ItemsMenu.BladeOfTheRuinedKing", new CheckBox("Use Blade of the Ruined King"));
            ItemsMenu.Add("Activator.ItemsMenu.BladeOfTheRuinedKing.MyMinHP", new Slider("Only if my health is below {0}%", 100));
            ItemsMenu.Add("Activator.ItemsMenu.BladeOfTheRuinedKing.TargetsMinHP", new Slider("Only if target's health is below {0}%", 100));
            ItemsMenu.Add("Activator.ItemsMenu.BladeOfTheRuinedKing.IfEnemiesNear", new Slider("Only if {0} or more enemies are near", 1, 1, 5));
            ItemsMenu.AddSeparator(10);
            ItemsMenu.AddLabel("Hextech Gunblade : ");
            ItemsMenu.Add("Activator.ItemsMenu.Gunblade", new CheckBox("Use Hextech Gunblade"));
            ItemsMenu.Add("Activator.ItemsMenu.Gunblade.MyMinHP", new Slider("Only if my health is below {0}%", 100));
            ItemsMenu.Add("Activator.ItemsMenu.Gunblade.TargetsMinHP", new Slider("Only if target's health is below {0}%", 100));
            ItemsMenu.Add("Activator.ItemsMenu.Gunblade.IfEnemiesNear", new Slider("Only if {0} or more enemies are near", 1, 1, 5));
            ItemsMenu.AddSeparator(10);
            ItemsMenu.AddLabel("Youmuu's Ghostblade : ");
            ItemsMenu.Add("Activator.ItemsMenu.Ghostblade", new CheckBox("Use Youmuu's Ghostblade"));
            ItemsMenu.Add("Activator.ItemsMenu.Ghostblade.MyMinHP", new Slider("Only if my health is below {0}%", 100));
            ItemsMenu.Add("Activator.ItemsMenu.Ghostblade.TargetsMinHP", new Slider("Only if target's health is below {0}%", 100));
            ItemsMenu.Add("Activator.ItemsMenu.Ghostblade.IfEnemiesNear", new Slider("Only if {0} or more enemies are near", 1, 1, 5));
            ItemsMenu.AddSeparator(10);
            ItemsMenu.AddLabel("Misc settings : ");
            ItemsMenu.Add("Activator.ItemsMenu.OnlyInCombo", new CheckBox("Use items only in combo mode"));

            SummonersMenu = ActivatorMenu.AddSubMenu("Summoners");

            if (Summoners == null)
            {
                return;
            }

            if (Summoners.Any(x => x.Value?.Item1 == Summoner.Heal))
            {
                SummonersMenu.AddLabel("Heal : ");
                SummonersMenu.Add("Activator.SummonersMenu.UseHeal", new CheckBox("Use Heal"));
                SummonersMenu.AddSeparator(10);
            }

            if (Summoners.Any(x => x.Value?.Item1 == Summoner.Barrier))
            {
                SummonersMenu.AddLabel("Barrier : ");
                SummonersMenu.Add("Activator.SummonersMenu.UseBarrier", new CheckBox("Use Barrier"));
                SummonersMenu.AddSeparator(10);
            }

            if (Summoners.Any(x => x.Value?.Item1 == Summoner.Ignite))
            {
                SummonersMenu.AddLabel("Ignite : ");
                SummonersMenu.Add("Activator.SummonersMenu.UseIgnite", new CheckBox("Use Ignite"));
                SummonersMenu.AddSeparator(10);
            }

            if (Summoners.Any(x => x.Value?.Item1 == Summoner.Exhaust))
            {
                SummonersMenu.AddLabel("Exhaust : ");
                SummonersMenu.Add("Activator.SummonersMenu.UseExhaust", new CheckBox("Use Exhaust"));
                SummonersMenu.AddSeparator(10);
            }

            if (Summoners.Any(x => x.Value != null && x.Value.Item1 != Summoner.Unknown && x.Value.Item1.HasFlag(Summoner.Smite)))
            {
                SummonersMenu.AddLabel("Smite : ");
                SummonersMenu.Add("Activator.SummonersMenu.UseSmite", new CheckBox("Use Smite"));
                SummonersMenu.AddSeparator(2);
                SummonersMenu.Add("Activator.SummonersMenu.UseSmiteInCombo", new CheckBox("Use smite in combo"));
                SummonersMenu.AddSeparator(2);
                SummonersMenu.Add("Activator.SummonersMenu.SmiteBigMonsters", new CheckBox("Smite big monsters", false));
                SummonersMenu.Add("Activator.SummonersMenu.SmiteBuffs", new CheckBox("Smite buffs"));
                SummonersMenu.Add("Activator.SummonersMenu.SmiteEpicMonsters", new CheckBox("Smite epic monsters"));
                SummonersMenu.AddSeparator(10);

                MenuManager.PermaShow.AddItem("Activator.SmiteEnabled", new MenuItem("Use Smite", "Activator.SummonersMenu.UseSmite"));
            }

            CleanseMenu = ActivatorMenu.AddSubMenu("Cleanse");
            CleanseMenu.AddLabel("Cleanse items : ");
            CleanseMenu.Add("Activator.CleanseMenu.Scimitar", new CheckBox("Use Scimitar"));
            CleanseMenu.Add("Activator.CleanseMenu.Quicksilver", new CheckBox("Use Quicksilver"));
            CleanseMenu.AddSeparator(10);
            CleanseMenu.AddLabel("Crowd control settings : ");
            CleanseMenu.Add("Activator.CleanseMenu.Blind", new CheckBox("Cleanse Blind"));
            CleanseMenu.Add("Activator.CleanseMenu.Charm", new CheckBox("Cleanse Charm"));
            CleanseMenu.Add("Activator.CleanseMenu.Fear", new CheckBox("Cleanse Fear"));
            CleanseMenu.Add("Activator.CleanseMenu.Polymorph", new CheckBox("Cleanse Polymorph"));
            CleanseMenu.Add("Activator.CleanseMenu.Silence", new CheckBox("Cleanse Silence"));
            CleanseMenu.Add("Activator.CleanseMenu.Slow", new CheckBox("Cleanse Slow", false));
            CleanseMenu.Add("Activator.CleanseMenu.Snare", new CheckBox("Cleanse Snare"));
            CleanseMenu.Add("Activator.CleanseMenu.Stun", new CheckBox("Cleanse Stun"));
            CleanseMenu.Add("Activator.CleanseMenu.Suppression", new CheckBox("Cleanse Suppression"));
            CleanseMenu.Add("Activator.CleanseMenu.Taunt", new CheckBox("Cleanse Taunt"));
            CleanseMenu.AddSeparator(10);
            CleanseMenu.AddLabel("Misc settings : ");
            CleanseMenu.Add("Activator.CleanseMenu.OnlyInCombo", new CheckBox("Cleanse only in Combo"));
            CleanseMenu.Add("Activator.CleanseMenu.QssHP", new Slider("Cleanse only if my health is below {0}%", 100));

            var buffDuration = CleanseMenu.Add("Activator.CleanseMenu.BuffDuration", new Slider(" ", 15));

            buffDuration.DisplayName    = "Cleanse only if buff duration is longer than " + buffDuration.CurrentValue * 50 + " milliseconds";
            buffDuration.OnValueChange += delegate(ValueBase <int> sender, ValueBase <int> .ValueChangeArgs args) { sender.DisplayName = "Cleanse only if buff duration is higher than " + args.NewValue * 50 + " milliseconds"; };

            CleanseMenu.Add("Activator.CleanseMenu.MinimumDelay", new Slider("Minimum delay", 0, 0, 500));
            CleanseMenu.Add("Activator.CleanseMenu.MaximumDelay", new Slider("Maximum delay", 350, 0, 500));

            MenuManager.PermaShow.AddItem("Activator.Enabled", new MenuItem("Activator Enabled", "Activator.Enable"));
        }
Example #3
0
        private static void InitializeMenu()
        {
            PotionsAndElixirsMenu = ActivatorMenu.AddSubMenu("Potions and Elixirs");
            PotionsAndElixirsMenu.AddGroupLabel("Potions and Elixirs : ");
            PotionsAndElixirsMenu.AddLabel("Potions : ");
            PotionsAndElixirsMenu.Add("Activator.PotionsAndElixirsMenu.UsePotions", new CheckBox("Iksir Kullan"));
            PotionsAndElixirsMenu.Add("Activator.PotionsAndElixirsMenu.OnlyIfTakingDamage", new CheckBox("Sadece Hasar Aldigimda Iksir kullan"));
            PotionsAndElixirsMenu.Add("Activator.PotionsAndElixirsMenu.BelowHealth", new Slider("Iksir kullanmak icin dusuk can {0}%", 35));
            PotionsAndElixirsMenu.Add("Activator.PotionsAndElixirsMenu.HealthPotion", new CheckBox("Saglik iksiri kullan"));
            PotionsAndElixirsMenu.Add("Activator.PotionsAndElixirsMenu.RefillablePotion", new CheckBox("Yenilenebilir iksir kullan"));
            PotionsAndElixirsMenu.Add("Activator.PotionsAndElixirsMenu.HuntersPotion", new CheckBox("Avci iksiri kullan"));
            PotionsAndElixirsMenu.Add("Activator.PotionsAndElixirsMenu.CorruptingPotion", new CheckBox("Musubet iksiri kullan"));
            PotionsAndElixirsMenu.AddSeparator(10);
            PotionsAndElixirsMenu.AddLabel("Elixirs : ");
            PotionsAndElixirsMenu.Add("Activator.PotionsAndElixirsMenu.ElixirofIron", new CheckBox("Saglamlik iksiri kullan"));
            PotionsAndElixirsMenu.Add("Activator.PotionsAndElixirsMenu.ElixirofSorcery", new CheckBox("Buyucu iksiri kullan"));
            PotionsAndElixirsMenu.Add("Activator.PotionsAndElixirsMenu.ElixirofWrath", new CheckBox("Saldiri iksiri kullan"));
            ItemsMenu = ActivatorMenu.AddSubMenu("Items");
            ItemsMenu.AddGroupLabel("Items : ");
            ItemsMenu.AddLabel("Bilgewater Cutlass : ");
            ItemsMenu.Add("Activator.ItemsMenu.Cutlass", new CheckBox("Kullan Bilgewater Palasi"));
            ItemsMenu.Add("Activator.ItemsMenu.Cutlass.MyMinHP", new Slider("Canim sundan dusukse {0}%", 100));
            ItemsMenu.Add("Activator.ItemsMenu.Cutlass.TargetsMinHP", new Slider("Hedefin cani sundan dusukse {0}%", 100));
            ItemsMenu.Add("Activator.ItemsMenu.Cutlass.IfEnemiesNear", new Slider("Only if {0} or more enemies are near", 1, 1, 5));
            ItemsMenu.AddSeparator(10);
            ItemsMenu.AddLabel("Blade of the Ruined King : ");
            ItemsMenu.Add("Activator.ItemsMenu.BladeOfTheRuinedKing", new CheckBox("Kullan mahvolmus kralin kilici"));
            ItemsMenu.Add("Activator.ItemsMenu.BladeOfTheRuinedKing.MyMinHP", new Slider("Canim sundan dusukse {0}%", 100));
            ItemsMenu.Add("Activator.ItemsMenu.BladeOfTheRuinedKing.TargetsMinHP", new Slider("Hedefin cani sundan dusukse {0}%", 100));
            ItemsMenu.Add("Activator.ItemsMenu.BladeOfTheRuinedKing.IfEnemiesNear", new Slider("Only if {0} or more enemies are near", 1, 1, 5));
            ItemsMenu.AddSeparator(10);
            ItemsMenu.AddLabel("Hextech Gunblade : ");
            ItemsMenu.Add("Activator.ItemsMenu.Gunblade", new CheckBox("Kullan Hextech Silahkilic"));
            ItemsMenu.Add("Activator.ItemsMenu.Gunblade.MyMinHP", new Slider("Canim sundan dusukse {0}%", 100));
            ItemsMenu.Add("Activator.ItemsMenu.Gunblade.TargetsMinHP", new Slider("Hedefin cani sundan dusukse {0}%", 100));
            ItemsMenu.Add("Activator.ItemsMenu.Gunblade.IfEnemiesNear", new Slider("Only if {0} or more enemies are near", 1, 1, 5));
            ItemsMenu.AddSeparator(10);
            ItemsMenu.AddLabel("Youmuu's Ghostblade : ");
            ItemsMenu.Add("Activator.ItemsMenu.Ghostblade", new CheckBox("Kullan Youmuu"));
            ItemsMenu.Add("Activator.ItemsMenu.Ghostblade.MyMinHP", new Slider("Canim sundan dusukse {0}%", 100));
            ItemsMenu.Add("Activator.ItemsMenu.Ghostblade.TargetsMinHP", new Slider("Hedefin cani sundan dusukse {0}%", 100));
            ItemsMenu.Add("Activator.ItemsMenu.Ghostblade.IfEnemiesNear", new Slider("Only if {0} or more enemies are near", 1, 1, 5));
            ItemsMenu.AddSeparator(10);
            ItemsMenu.AddLabel("Misc settings : ");
            ItemsMenu.Add("Activator.ItemsMenu.OnlyInCombo", new CheckBox("Itemleri sadece komboda kullan"));

            SummonersMenu = ActivatorMenu.AddSubMenu("Summoners");

            if (Summoners == null)
            {
                return;
            }

            if (Summoners.Any(x => x.Value?.Item1 == Summoner.Heal))
            {
                SummonersMenu.AddLabel("Heal : ");
                SummonersMenu.Add("Activator.SummonersMenu.UseHeal", new CheckBox("Sifa kullan"));
                SummonersMenu.AddSeparator(10);
            }

            if (Summoners.Any(x => x.Value?.Item1 == Summoner.Barrier))
            {
                SummonersMenu.AddLabel("Barrier : ");
                SummonersMenu.Add("Activator.SummonersMenu.UseBarrier", new CheckBox("Bariyer Kullan"));
                SummonersMenu.AddSeparator(10);
            }

            if (Summoners.Any(x => x.Value?.Item1 == Summoner.Ignite))
            {
                SummonersMenu.AddLabel("Ignite : ");
                SummonersMenu.Add("Activator.SummonersMenu.UseIgnite", new CheckBox("Tutustur kullan"));
                SummonersMenu.AddSeparator(10);
            }

            if (Summoners.Any(x => x.Value?.Item1 == Summoner.Exhaust))
            {
                SummonersMenu.AddLabel("Exhaust : ");
                SummonersMenu.Add("Activator.SummonersMenu.UseExhaust", new CheckBox("Bitkinlik kullan"));
                SummonersMenu.AddSeparator(10);
            }

            if (Summoners.Any(x => x.Value != null && x.Value.Item1 != Summoner.Unknown && x.Value.Item1.HasFlag(Summoner.Smite)))
            {
                SummonersMenu.AddLabel("Smite : ");
                SummonersMenu.Add("Activator.SummonersMenu.UseSmite", new CheckBox("Carp kullan"));
                SummonersMenu.AddSeparator(2);
                SummonersMenu.Add("Activator.SummonersMenu.UseSmiteInCombo", new CheckBox("Komboda carp kullan"));
                SummonersMenu.AddSeparator(2);
                SummonersMenu.Add("Activator.SummonersMenu.SmiteBigMonsters", new CheckBox("Buyuk yaratiklara Carp kullan", false));
                SummonersMenu.Add("Activator.SummonersMenu.SmiteBuffs", new CheckBox("Canavarlara Carp kullan"));
                SummonersMenu.Add("Activator.SummonersMenu.SmiteEpicMonsters", new CheckBox("Destansi canavarlara carp kullan"));
                SummonersMenu.AddSeparator(10);

                MenuManager.PermaShow.AddItem("Activator.SmiteEnabled", new MenuItem("Use Smite", "Activator.SummonersMenu.UseSmite"));
            }

            CleanseMenu = ActivatorMenu.AddSubMenu("Cleanse");
            CleanseMenu.AddLabel("Cleanse items : ");
            CleanseMenu.Add("Activator.CleanseMenu.Scimitar", new CheckBox("Civa Yatagan Kullan"));
            CleanseMenu.Add("Activator.CleanseMenu.Quicksilver", new CheckBox("Kullan civali"));
            CleanseMenu.AddSeparator(10);
            CleanseMenu.AddLabel("Crowd control settings : ");
            CleanseMenu.Add("Activator.CleanseMenu.Blind", new CheckBox("Kor etmede"));
            CleanseMenu.Add("Activator.CleanseMenu.Charm", new CheckBox("Cekilmede"));
            CleanseMenu.Add("Activator.CleanseMenu.Fear", new CheckBox("Korkutmada"));
            CleanseMenu.Add("Activator.CleanseMenu.Polymorph", new CheckBox("Cleanse Polymorph"));
            CleanseMenu.Add("Activator.CleanseMenu.Silence", new CheckBox("Susturmada"));
            CleanseMenu.Add("Activator.CleanseMenu.Slow", new CheckBox("Yavaslamada", false));
            CleanseMenu.Add("Activator.CleanseMenu.Snare", new CheckBox("Yakalanmada"));
            CleanseMenu.Add("Activator.CleanseMenu.Stun", new CheckBox("Stan yiyince"));
            CleanseMenu.Add("Activator.CleanseMenu.Suppression", new CheckBox("Durdurmada Sindirilmede"));
            CleanseMenu.Add("Activator.CleanseMenu.Taunt", new CheckBox("Cleanse Taunt"));
            CleanseMenu.AddSeparator(10);
            CleanseMenu.AddLabel("Misc settings : ");
            CleanseMenu.Add("Activator.CleanseMenu.OnlyInCombo", new CheckBox("Sadece komboda civali kullan"));
            CleanseMenu.Add("Activator.CleanseMenu.QssHP", new Slider("Canim sundan dusukse kullan {0}%", 100));

            var buffDuration = CleanseMenu.Add("Activator.CleanseMenu.BuffDuration", new Slider(" ", 15));

            buffDuration.DisplayName    = "Cleanse only if buff duration is longer than " + buffDuration.CurrentValue * 50 + " milliseconds";
            buffDuration.OnValueChange += delegate(ValueBase <int> sender, ValueBase <int> .ValueChangeArgs args) { sender.DisplayName = "Cleanse only if buff duration is higher than " + args.NewValue * 50 + " milliseconds"; };

            CleanseMenu.Add("Activator.CleanseMenu.MinimumDelay", new Slider("Minimum delay", 0, 0, 500));
            CleanseMenu.Add("Activator.CleanseMenu.MaximumDelay", new Slider("Maximum delay", 350, 0, 500));

            MenuManager.PermaShow.AddItem("Activator.Enabled", new MenuItem("Activator Enabled", "Activator.Enable"));
        }