Exemple #1
0
        private static void GameOnDraw(EventArgs args)
        {
            if (OwlsticksMenu.Nodraw())
            {
                return;
            }

            if (!OwlsticksMenu.OnlyReady())
            {
                if (OwlsticksMenu.DrawingsQ())
                {
                    new Circle {
                        Color = Color.AliceBlue, Radius = Q.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (OwlsticksMenu.DrawingsW())
                {
                    new Circle {
                        Color = Color.OrangeRed, Radius = W.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (OwlsticksMenu.DrawingsE())
                {
                    new Circle {
                        Color = Color.Cyan, Radius = E.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (OwlsticksMenu.DrawingsR())
                {
                    new Circle {
                        Color = Color.SkyBlue, Radius = R.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (OwlsticksMenu.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 && OwlsticksMenu.DrawingsQ())
                {
                    new Circle {
                        Color = Color.AliceBlue, Radius = 575, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (!W.IsOnCooldown && OwlsticksMenu.DrawingsW())
                {
                    new Circle {
                        Color = Color.OrangeRed, Radius = 575, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (!E.IsOnCooldown && OwlsticksMenu.DrawingsE())
                {
                    new Circle {
                        Color = Color.Cyan, Radius = 750, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (!R.IsOnCooldown && OwlsticksMenu.DrawingsR())
                {
                    new Circle {
                        Color = Color.SkyBlue, Radius = 800, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (OwlsticksMenu.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);
                    }
                }
            }
        }