Beispiel #1
0
        public static void CreateMenu()
        {
            var evadeMenu = new LeagueSharp.Common.Menu("Evade Skillshot", "Evade");

            {
                evadeMenu.Separator("Credit: Evade#");
                var evadeSpells = new LeagueSharp.Common.Menu("Spells", "Spells");
                {
                    foreach (
                        var spell in
                        EvadeSpellDatabase.Spells)
                    {
                        var subMenu = new LeagueSharp.Common.Menu(
                            string.Format("{0} ({1})", spell.Name, spell.Slot), spell.Name);
                        {
                            //if (spell.UnderTower)
                            //{
                            subMenu.Bool(spell.Slot + "Tower", "Under Tower", false);
                            //}
                            //if (spell.ExtraDelay)
                            //{
                            subMenu.Slider(spell.Slot + "Delay", "Extra Delay", 100, 0, 150);
                            //}
                            subMenu.Slider("DangerLevel", "If Danger Level >=", 1, 1, 5);
                            //if (spell.IsTargetted && spell.ValidTargets.Contains(SpellValidTargets.AllyWards))
                            //{
                            //    subMenu.Bool("WardJump", "Ward Jump");
                            //}
                            subMenu.Bool("Enabled", "Enabled");
                        }
                        evadeSpells.AddSubMenu(subMenu);
                    }
                    evadeMenu.AddSubMenu(evadeSpells);
                }
                //foreach (var hero in
                //    HeroManager.Enemies.Where(
                //        i =>
                //        SpellDatabase.Spells.Any(
                //            a =>
                //            string.Equals(a.ChampionName, i.ChampionName, StringComparison.InvariantCultureIgnoreCase)))
                //    )
                //{
                //    evadeMenu.AddSubMenu(new LeagueSharp.Common.Menu(hero.ChampionName.ToLowerInvariant(), "-> " + hero.ChampionName));
                //}
                foreach (var spell in
                         SpellDatabase.Spells.Where(
                             i =>
                             HeroManager.Enemies.Any(
                                 a =>
                                 string.Equals(a.ChampionName, i.ChampionName, StringComparison.InvariantCultureIgnoreCase)))
                         )
                {
                    var subMenu = new LeagueSharp.Common.Menu(string.Format("{0} ({1})", spell.SpellName, spell.Slot), spell.SpellName);
                    {
                        subMenu.Slider("DangerLevel", "Danger Level", spell.DangerValue, 1, 5);
                        subMenu.Bool("IsDangerous", "Is Dangerous", spell.IsDangerous);
                        subMenu.Bool("DisableFoW", "Disable FoW Dodging", false);
                        subMenu.Bool("Draw", "Draw", false);
                        subMenu.Bool("Enabled", "Enabled", false /*!spell.DisabledByDefault*/);
                        ((LeagueSharp.Common.Menu)evadeMenu.SubMenu(spell.ChampionName.ToLowerInvariant())).AddSubMenu(subMenu);
                    }
                }
                evadeMenu.Bool("DrawStatus", "Draw Evade Status");
                evadeMenu.KeyBind("Enabled", "Enabled", System.Windows.Forms.Keys.K, KeyBindType.Toggle);
                evadeMenu.KeyBind("OnlyDangerous", "Dodge Only Dangerous", System.Windows.Forms.Keys.Space);
            }
            FioraProject.Program.Menu.AddSubMenu(evadeMenu);
        }
Beispiel #2
0
 public static void CreateMenu()
 {
     var evadeMenu = new LeagueSharp.Common.Menu("Evade Skillshot", "Evade");
     {
         evadeMenu.Separator("Credit: Evade#");
         var evadeSpells = new LeagueSharp.Common.Menu("Spells", "Spells");
         {
             foreach (
                 var spell in
                     EvadeSpellDatabase.Spells)
             {
                 var subMenu = new LeagueSharp.Common.Menu(
                     string.Format("{0} ({1})", spell.Name, spell.Slot), spell.Name);
                 {
                     //if (spell.UnderTower)
                     //{
                     subMenu.Bool(spell.Slot + "Tower", "Under Tower", false);
                     //}
                     //if (spell.ExtraDelay)
                     //{
                     subMenu.Slider(spell.Slot + "Delay", "Extra Delay", 100, 0, 150);
                     //}
                     subMenu.Slider("DangerLevel", "If Danger Level >=", 3, 1, 5);
                     //if (spell.IsTargetted && spell.ValidTargets.Contains(SpellValidTargets.AllyWards))
                     //{
                     //    subMenu.Bool("WardJump", "Ward Jump");
                     //}
                     subMenu.Bool("Enabled", "Enabled");
                 }
                 evadeSpells.AddSubMenu(subMenu);
             }
             evadeMenu.AddSubMenu(evadeSpells);
         }
         //foreach (var hero in
         //    HeroManager.Enemies.Where(
         //        i =>
         //        SpellDatabase.Spells.Any(
         //            a =>
         //            string.Equals(a.ChampionName, i.ChampionName, StringComparison.InvariantCultureIgnoreCase)))
         //    )
         //{
         //    evadeMenu.AddSubMenu(new LeagueSharp.Common.Menu(hero.ChampionName.ToLowerInvariant(), "-> " + hero.ChampionName));
         //}
         foreach (var spell in
             SpellDatabase.Spells.Where(
                 i =>
                 HeroManager.Enemies.Any(
                     a =>
                     string.Equals(a.ChampionName, i.ChampionName, StringComparison.InvariantCultureIgnoreCase)))
             )
         {
             var subMenu = new LeagueSharp.Common.Menu(string.Format("{0} ({1})", spell.SpellName, spell.Slot), spell.SpellName);
             {
                 subMenu.Slider("DangerLevel", "Danger Level", spell.DangerValue, 1, 5);
                 subMenu.Bool("IsDangerous", "Is Dangerous", spell.IsDangerous);
                 subMenu.Bool("DisableFoW", "Disable FoW Dodging", false);
                 subMenu.Bool("Draw", "Draw",false);
                 subMenu.Bool("Enabled", "Enabled",false /*!spell.DisabledByDefault*/);
                 ((LeagueSharp.Common.Menu)evadeMenu.SubMenu(spell.ChampionName.ToLowerInvariant())).AddSubMenu(subMenu);
             }
         }
         evadeMenu.Bool("DrawStatus", "Draw Evade Status");
         evadeMenu.KeyBind("Enabled", "Enabled", Keys.K, KeyBindType.Toggle);
         evadeMenu.KeyBind("OnlyDangerous", "Dodge Only Dangerous", Keys.Space);
     }
     FioraProject.Program.Menu.AddSubMenu(evadeMenu);
 }