Ejemplo n.º 1
0
        private static void GameOnDraw(EventArgs args)
        {
            if (MissInopportuneMenu.Nodraw())
            {
                return;
            }

            if (!MissInopportuneMenu.OnlyReady())
            {
                if (MissInopportuneMenu.DrawingsQ())
                {
                    new Circle {
                        Color = Color.AliceBlue, Radius = Q.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (MissInopportuneMenu.DrawingsW())
                {
                    new Circle {
                        Color = Color.OrangeRed, Radius = W.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (MissInopportuneMenu.DrawingsE())
                {
                    new Circle {
                        Color = Color.Cyan, Radius = E.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (MissInopportuneMenu.DrawingsR())
                {
                    new Circle {
                        Color = Color.SkyBlue, Radius = R.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (MissInopportuneMenu.DrawingsT() && _wardLocation.Normal.Any())
                {
                    foreach (
                        var place in
                        _wardLocation.Normal.Where(pos => pos.Distance(ObjectManager.Player.Position) <= 1500))
                    {
                        Drawing.DrawCircle(place, 100, IsWarded(place) ? Color.Red : Color.Green);
                    }
                }
            }
            else
            {
                if (!Q.IsOnCooldown && MissInopportuneMenu.DrawingsQ())
                {
                    new Circle {
                        Color = Color.AliceBlue, Radius = 650, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (!W.IsOnCooldown && MissInopportuneMenu.DrawingsW())
                {
                    new Circle {
                        Color = Color.OrangeRed, Radius = 500, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (!E.IsOnCooldown && MissInopportuneMenu.DrawingsE())
                {
                    new Circle {
                        Color = Color.Cyan, Radius = 1000, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (!R.IsOnCooldown && MissInopportuneMenu.DrawingsR())
                {
                    new Circle {
                        Color = Color.SkyBlue, Radius = 1400, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (MissInopportuneMenu.DrawingsT() && _wardLocation.Normal.Any())
                {
                    foreach (
                        var place in
                        _wardLocation.Normal.Where(pos => pos.Distance(ObjectManager.Player.Position) <= 1500))
                    {
                        Drawing.DrawCircle(place, 100, IsWarded(place) ? Color.Red : Color.Green);
                    }
                }
            }
        }