コード例 #1
0
ファイル: Config.cs プロジェクト: NeTeLead/elobuddy
                static AutoShield()
                {
                    ShieldAllyList  = new List <CheckBox>();
                    ShieldSpellList = new List <CheckBox>();

                    Menu4.AddGroupLabel("Auto-Shield Settings");

                    foreach (var ally in EntityManager.Heroes.Allies)
                    {
                        ShieldAllyList.Add(Menu4.Add("shield" + ally.ChampionName,
                                                     new CheckBox($"Shield {ally.ChampionName} ({ally.Name})")));
                    }

                    Menu4.AddSeparator(13);

                    foreach (var enemy in EntityManager.Heroes.Enemies)
                    {
                        for (var i = 0; i <= 185; i++)
                        {
                            if (MissileDatabase.missileDatabase[i, 2] == enemy.ChampionName)
                            {
                                ShieldSpellList.Add(Menu4.Add(MissileDatabase.missileDatabase[i, 0] + i,
                                                              new CheckBox(
                                                                  $"Shield from {MissileDatabase.missileDatabase[i, 2]}'s {MissileDatabase.missileDatabase[i, 1]} ({MissileDatabase.missileDatabase[i, 0]})                                                 {i}")));
                            }
                        }
                    }

                    Menu4.AddSeparator(13);

                    _priorMode = Menu4.Add("autoShieldPriorMode",
                                           new ComboBox("AutoShield Priority Mode:", 0, "Lowest Health", "Priority Level"));
                    Menu4.AddSeparator(13);

                    Sliders = new List <Slider>();
                    Heros   = new List <AIHeroClient>();

                    foreach (var ally in EntityManager.Heroes.Allies)
                    {
                        var PrioritySlider = Menu4.Add(ally.ChampionName,
                                                       new Slider(string.Format("{0} Priority:", ally.ChampionName, ally.Name), 1, 1,
                                                                  EntityManager.Heroes.Allies.Count));

                        Menu4.AddSeparator(13);

                        Sliders.Add(PrioritySlider);

                        Heros.Add(ally);
                    }
                }
コード例 #2
0
                static AutoShield()
                {
                    _shieldAllyList  = new List <CheckBox>();
                    _shieldSpellList = new List <CheckBox>();
                    _ultAllyList     = new List <CheckBox>();

                    Menu4.AddGroupLabel("Auto-Shield Settings");

                    _boostAD = Menu4.Add("autoShieldBoostAd", new CheckBox("Boost ADCarry Basic Attacks with Shield"));
                    Menu4.AddSeparator(13);

                    foreach (var ally in EntityManager.Heroes.Allies.Where(x => x.ChampionName == "Ezreal"))
                    {
                        _boostEzQ = Menu4.Add("autoShieldBoostEzQ", new CheckBox("Boost Ezreal Q with Shield"));
                        Menu4.AddSeparator(13);
                    }

                    _selfShield = Menu4.Add("selfShield", new CheckBox("Shield Yourself from Basic Attacks"));
                    Menu4.AddSeparator(13);

                    _turretShieldMinion = Menu4.Add("turretShieldMinion", new CheckBox("Shield Turrets from Enemy Minions", false));
                    Menu4.AddSeparator(13);

                    _turretShieldChampion = Menu4.Add("turretShieldChampion", new CheckBox("Shield Turrets from Enemy Champions"));
                    Menu4.AddSeparator(13);

                    _priorMode = Menu4.Add("autoShieldPriorMode", new ComboBox("AutoShield Priority Mode:", 0, new string[] { "Lowest Health", "Priority Level" }));
                    Menu4.AddSeparator(13);

                    Menu4.AddGroupLabel("Janna Shield");

                    foreach (var ally in EntityManager.Heroes.Allies)
                    {
                        _shieldAllyList.Add(Menu4.Add <CheckBox>("shield" + ally.ChampionName, new CheckBox(string.Format("Shield {0} ({1})", ally.ChampionName, ally.Name))));
                    }

                    Menu4.AddSeparator(13);

                    _sliders = new List <Slider>();
                    _heros   = new List <AIHeroClient>();

                    foreach (var ally in EntityManager.Heroes.Allies)
                    {
                        _sliders.Add(Menu4.Add <Slider>("prior" + ally.ChampionName, new Slider(string.Format("{0}'s Priority:", ally.ChampionName), 1, 1, EntityManager.Heroes.Allies.Count)));

                        Menu4.AddSeparator(13);

                        _heros.Add(ally);
                    }

                    foreach (var enemy in EntityManager.Heroes.Enemies)
                    {
                        for (int i = 0; i <= 185; i++)
                        {
                            if (MissileDatabase.missileDatabase[i, 2] == enemy.ChampionName)
                            {
                                _shieldSpellList.Add(Menu4.Add <CheckBox>(MissileDatabase.missileDatabase[i, 0] + i, new CheckBox(string.Format("Shield from {0}'s {1} ({2})                                                 {3}", MissileDatabase.missileDatabase[i, 2], MissileDatabase.missileDatabase[i, 1], MissileDatabase.missileDatabase[i, 0], i))));
                            }
                        }
                    }

                    Menu4.AddGroupLabel("Janna Ultimate");

                    _autoUltimate = Menu4.Add("autoUltimate", new CheckBox("Auto-Ult Enabled", false));

                    foreach (var ally in EntityManager.Heroes.Allies)
                    {
                        _ultAllyList.Add(Menu4.Add <CheckBox>("autoUlt" + ally.ChampionName, new CheckBox(string.Format("Ultimate on {0} ({1})", ally.ChampionName, ally.Name))));
                    }

                    Menu4.AddSeparator(13);

                    _ultSliders = new List <Slider>();

                    foreach (var ally in EntityManager.Heroes.Allies)
                    {
                        _ultSliders.Add(Menu4.Add <Slider>("ultHealth" + ally.ChampionName, new Slider(string.Format("{0}'s Health (%):", ally.ChampionName), 50, 1)));

                        Menu4.AddSeparator(13);
                    }
                }