Exemplo n.º 1
0
        public static void Initialize(Menu menuConfig)
        {
            LocalMenu = new EnsoulSharp.Common.Menu("Drawings", "Drawings");
            {
                var menuSword = new EnsoulSharp.Common.Menu("Sword", "Menu.Sword");
                {
                    menuSword.AddItem(
                        new MenuItem("Draw.SwordPosition", "Draw: Sword Position").SetValue(new Circle(true, Color.Red)));
                    menuSword.AddItem(
                        new MenuItem("Draw.SwordHitPosition", "Draw: Sword Enemy Hit Position").SetValue(new Circle(
                                                                                                             true, Color.Wheat)));
                    LocalMenu.AddSubMenu(menuSword);
                }
                LocalMenu.AddItem(new MenuItem("Draw.Q", "Q: Extra AA Range").SetValue(new Circle(true, Color.Gray)))
                .SetFontStyle(FontStyle.Regular, MrShen.Champion.PlayerSpells.W.MenuColor());
                LocalMenu.AddItem(new MenuItem("Draw.W", "W: Effect Range").SetValue(new Circle(true, Color.Gray)))
                .SetFontStyle(FontStyle.Regular, MrShen.Champion.PlayerSpells.W.MenuColor());
                LocalMenu.AddItem(new MenuItem("Draw.E", "E: Range").SetValue(new Circle(false, Color.GreenYellow)))
                .SetFontStyle(FontStyle.Regular, MrShen.Champion.PlayerSpells.R.MenuColor());
                LocalMenu.AddItem(new MenuItem("Draw.EF", "Flash + E Range").SetValue(new Circle(false, Color.Coral)))
                .SetFontStyle(FontStyle.Regular, MrShen.Champion.PlayerSpells.E.MenuColor());
                menuConfig.AddSubMenu(LocalMenu);
            }

            Drawing.OnDraw += DrawingOnOnDraw;
        }
Exemplo n.º 2
0
        public static void Initialize(EnsoulSharp.Common.Menu MenuConfig)
        {
            LocalMenu = MenuConfig;
            LocalMenu.AddItem(new MenuItem("Perma.FlashE", "Flash + E:").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));
            LocalMenu.AddItem(new MenuItem("Perma.Flee", "Flee").SetValue(new KeyBind("A".ToCharArray()[0], KeyBindType.Press)).SetFontStyle(System.Drawing.FontStyle.Regular, SharpDX.Color.Coral));

            LoadDangerousTargetedSpells();

            Game.OnUpdate += GameOnOnUpdate;
            //Obj_AI_Base.OnProcessSpellCast += ObjAiHeroOnOnProcessSpellCast;
        }
Exemplo n.º 3
0
        public static void Initialize(EnsoulSharp.Common.Menu MenuConfig)
        {
            LocalMenu = new EnsoulSharp.Common.Menu("Combo", "Combo");
            {
                LocalMenu.AddItem(new MenuItem("Combo.PassiveControl", "Passive Control:").SetValue(new StringList(new[] { "Off", "On" }, 1)).SetFontStyle(FontStyle.Regular, W.MenuColor()));
                LocalMenu.AddItem(new MenuItem("Combo.UseW", "W:").SetValue(true).SetFontStyle(FontStyle.Regular, W.MenuColor()));
                LocalMenu.AddItem(new MenuItem("Combo.UseE", "E: Auto use if enemy under ally turret").SetValue(new StringList(new[] { "Off", "On" }, 1)).SetFontStyle(FontStyle.Regular, E.MenuColor()));

                MenuConfig.AddSubMenu(LocalMenu);
            }
            Game.OnUpdate += GameOnOnUpdate;

            AIBaseClient.OnProcessSpellCast += Obj_AI_Hero_OnProcessSpellCast;
        }
Exemplo n.º 4
0
        public static void Initialize(EnsoulSharp.Common.Menu MenuConfig)
        {
            LocalMenu = new EnsoulSharp.Common.Menu("Jungle", "Jungle");
            {
                LocalMenu.AddItem(
                    new MenuItem("Jungle.UseQ", "Q:").SetValue(false)
                    .SetFontStyle(System.Drawing.FontStyle.Regular, MrShen.Champion.PlayerSpells.Q.MenuColor()));
                LocalMenu.AddItem(
                    new MenuItem("Jungle.UseW", "W:").SetValue(new StringList(new[] { "Off", "On", "Just for Big Mobs" },
                                                                              2)).SetFontStyle(FontStyle.Regular, MrShen.Champion.PlayerSpells.W.MenuColor()));
                LocalMenu.AddItem(
                    new MenuItem("Jungle.UseE", "E:").SetValue(new StringList(new[] { "Off", "On", "Just for Big Mobs" },
                                                                              2)).SetFontStyle(FontStyle.Regular, MrShen.Champion.PlayerSpells.W.MenuColor()));
                LocalMenu.AddItem(new MenuItem("Jungle.Energy", "Min. Energy Percent: ").SetValue(new Slider(50, 100, 0)));
                MenuConfig.AddSubMenu(LocalMenu);
            }

            //Obj_AI_Base.OnProcessSpellCast += Obj_AI_Hero_OnProcessSpellCast;
            Game.OnUpdate += GameOnOnUpdate;
        }
Exemplo n.º 5
0
        public static void Initialize(EnsoulSharp.Common.Menu menuConfig)
        {
            LocalMenu = new EnsoulSharp.Common.Menu("R Settings", "TeamMates").SetFontStyle(FontStyle.Regular, SharpDX.Color.GreenYellow);

            //var menuImportant = new LeagueSharp.Common.Menu("Important Ally", "Menu.Important");

            //string[] strImportantAlly = new string[5];
            //strImportantAlly[0] = "No one are important!";

            //List<Obj_AI_Hero> allyList = HeroManager.Allies.Where(a => !a.IsMe).ToList();

            //for (int i = 0; i < allyList.Count; i++)
            //{
            //    strImportantAlly[i + 1] = allyList[i].CharData.BaseSkinName;
            //}

            //menuImportant.AddItem(new MenuItem("Important.Champion", "Ally Champion:").SetValue(new StringList(strImportantAlly, 0)).SetFontStyle(FontStyle.Regular, Color.GreenYellow));
            //menuImportant.AddItem(new MenuItem("Important.ShowStatus", "Show Important Ally HP Status").SetValue(new StringList(new []{"Off", "On"}, 1)).SetFontStyle(FontStyle.Regular, Color.Aqua));
            //menuImportant.AddItem(new MenuItem("Important.ShowPosition", "Show Important Ally Position in Team Fight").SetValue(new Circle(true, System.Drawing.Color.Aqua)).SetFontStyle(FontStyle.Regular, Color.Aqua));

            //LocalMenu.AddSubMenu(menuImportant);

            foreach (var ally in HeroManager.Allies.Where(a => !a.IsMe))
            {
                var menuAlly = new EnsoulSharp.Common.Menu(ally.CharacterName, "Ally." + ally.CharacterName).SetFontStyle(FontStyle.Regular, SharpDX.Color.Coral);
                {
                    menuAlly.AddItem(new MenuItem(ally.CharacterName + ".UseW", "W: Auto Protection").SetValue(new StringList(new[] { "Don't Use", "Use if he need" }, GetProtection(ally.CharacterName) >= 3 ? 1 : 0)).SetFontStyle(FontStyle.Regular, W.MenuColor()));

                    string[] strR = new string[15];
                    strR[0] = "Off";

                    for (var i = 1; i < 15; i++)
                    {
                        strR[i] = "if hp <= % " + (i * 5);
                    }
                    menuAlly.AddItem(new MenuItem(ally.CharacterName + ".UseRWarning", "R: Warn me:").SetValue(new StringList(strR, GetProtection(ally.CharacterName) == 1 ? 2 : (GetProtection(ally.CharacterName) == 2 ? 5 : 8))).SetFontStyle(FontStyle.Regular, R.MenuColor()));
                    menuAlly.AddItem(new MenuItem(ally.CharacterName + ".UseRConfirm", "R: Confirm:").SetValue(new StringList(new[] { "I'll Confirm with Confirmation Key!", "Auto Use Ultimate!" }, GetProtection(ally.CharacterName) >= 3 ? 1 : 0)).SetFontStyle(FontStyle.Regular, R.MenuColor()));
                    menuAlly.AddItem(new MenuItem(ally.CharacterName + ".UseRPriority", "R: Priority:").SetValue(new Slider(GetProtection(ally.CharacterName) + 2, 1, 5)).SetFontStyle(FontStyle.Regular, R.MenuColor()));
                }
                LocalMenu.AddSubMenu(menuAlly);
            }

            string[] strHpBarStatus = new[] { "Off", "Priority >= 1", "Priority >= 2", "Priority >= 3", "Priority >= 4", "Priority = 5" };

            LocalMenu.AddItem(new MenuItem("SpellR.DrawHPBarStatus", "Show HP Bar Status").SetValue(new StringList(strHpBarStatus, 3)).SetFontStyle(FontStyle.Regular, SharpDX.Color.Aqua));
            LocalMenu.AddItem(new MenuItem("SpellR.WarnNotificationText", "Warn me with notification text").SetValue(new StringList(strHpBarStatus, 3)).SetFontStyle(FontStyle.Regular, SharpDX.Color.Aqua));
            LocalMenu.AddItem(new MenuItem("SpellR.WarnPingAlly", "Warn me with local ping").SetValue(new StringList(new[] { "Off", "Danger", "Fallback" }, 2)));

            string[] strAutoUltimate = new string[15];
            strAutoUltimate[0] = "Off";

            for (var i = 1; i < 15; i++)
            {
                strAutoUltimate[i] = "If my hp >= % " + (i * 5);
            }
            LocalMenu.AddItem(new MenuItem("SpellR.AutoUltimate", "Auto Ulti Condition:").SetValue(new StringList(strAutoUltimate, 8)).SetFontStyle(FontStyle.Regular, SharpDX.Color.IndianRed));
            LocalMenu.AddItem(new MenuItem("SpellR.ConfirmKey", "Ulti Confirm Key!").SetValue(new KeyBind("R".ToCharArray()[0], KeyBindType.Press)).SetFontStyle(FontStyle.Bold, SharpDX.Color.GreenYellow));

            menuConfig.AddSubMenu(LocalMenu);


            Drawing.OnDraw += Drawing_OnDraw;
            Drawing.OnDraw += DrawingOnOnDrawUlti;
            Game.OnUpdate  += GameOnOnUpdate;
            AIBaseClient.OnProcessSpellCast += Obj_AI_Hero_OnProcessSpellCast;
        }
Exemplo n.º 6
0
        public static void Initialize(EnsoulSharp.Common.Menu mainMenu)
        {
            new Render.Sprite(Resources.selectedchampion, new Vector2())
            {
                PositionUpdate   = () => DrawPosition,
                Scale            = new Vector2(1f, 1f),
                VisibleCondition = sender => DrawSprite
            }.Add();

            Text = new Font(Drawing.Direct3DDevice, new FontDescription {
                FaceName = "Malgun Gothic", Height = 21, OutputPrecision = FontPrecision.Default, Weight = FontWeight.Bold, Quality = FontQuality.ClearTypeNatural
            });
            LocalMenu = new Menu("Target Selector", "AssassinTargetSelector").SetFontStyle(FontStyle.Regular, SharpDX.Color.Cyan);

            var menuTargetSelector = new Menu("Target Selector", "TargetSelector");

            {
                EnsoulSharp.Common.TargetSelector.AddToMenu(menuTargetSelector);
            }
            LocalMenu.AddItem(
                new MenuItem("TS", "Active Target Selector:").SetValue(
                    new StringList(new[] { "Shen Target Selector", "EnsoulSharp Target Selector" })))
            .SetFontStyle(FontStyle.Regular, SharpDX.Color.GreenYellow)
            .ValueChanged += (sender, args) =>
            {
                LocalMenu.Items.ForEach(
                    i =>
                {
                    i.Show();
                    switch (args.GetNewValue <StringList>().SelectedIndex)
                    {
                    case 0:
                        {
                            if (i.Tag == 22)
                            {
                                i.Show(false);
                            }
                            break;
                        }

                    case 1:
                        {
                            if (i.Tag == 11 || i.Tag == 12)
                            {
                                i.Show(false);
                            }
                            break;
                        }
                    }
                });
            };
            menuTargetSelector.Items.ForEach(i =>
            {
                LocalMenu.AddItem(i);
                i.SetTag(22);
            });
            LocalMenu.AddItem(new MenuItem("Set", "Target Select Mode:").SetValue(new StringList(new[] { "Single Target Select", "Multi Target Select" }))).SetFontStyle(FontStyle.Regular, SharpDX.Color.LightCoral).SetTag(11);
            LocalMenu.AddItem(new MenuItem("ModeSelector.Range", "Range (Recommend: Max):"))
            .SetValue(new Slider((int)(MrShen.Champion.PlayerSpells.E.Range * 3),
                                 (int)MrShen.Champion.PlayerSpells.E.Range,
                                 (int)(MrShen.Champion.PlayerSpells.Q.Range * 5))).SetTag(11);
            LocalMenu.AddItem(new MenuItem("Targets", "Targets:").SetFontStyle(FontStyle.Regular, SharpDX.Color.Aqua).SetTag(11));
            foreach (AIHeroClient e in HeroManager.Enemies)
            {
                LocalMenu.AddItem(
                    new MenuItem("enemy_" + e.CharacterName, $"{MrShen.Common.DrawHelper.MenuTab}Focus {e.CharacterName}")
                    .SetValue(false)).SetTag(12);
            }

            LocalMenu.AddItem(new MenuItem("Draw.Title", "Drawings").SetFontStyle(FontStyle.Regular, SharpDX.Color.Aqua).SetTag(11));
            LocalMenu.AddItem(new MenuItem("Draw.Range", MrShen.Common.DrawHelper.MenuTab + "ModeSelector.Range").SetValue(new Circle(true, System.Drawing.Color.Gray)).SetTag(11));
            LocalMenu.AddItem(new MenuItem("Draw.Enemy", MrShen.Common.DrawHelper.MenuTab + "ActiveJungle Enemy").SetValue(new Circle(true, System.Drawing.Color.GreenYellow)).SetTag(11));
            LocalMenu.AddItem(new MenuItem("Draw.Status", MrShen.Common.DrawHelper.MenuTab + "Show Enemy:").SetValue(new StringList(new[] { "Off", "Text", "Picture", "Line", "All" }, 0)));

            mainMenu.AddSubMenu(LocalMenu);
            Game.OnWndProc += Game_OnWndProc;
            Drawing.OnDraw += Drawing_OnDraw;

            RefreshMenuItemsStatus();
        }