Пример #1
0
        private static void GameOnDraw(EventArgs args)
        {
            if (TristanaMenu.Nodraw())
            {
                return;
            }

            if (InsecTarget.IsValidTarget())
            {
                Circle.Draw(SharpDX.Color.Red, InsecTarget.BoundingRadius + 100, InsecTarget.Position);
            }
            if (AllyTarget.IsValidTarget())
            {
                Circle.Draw(SharpDX.Color.BlueViolet, AllyTarget.BoundingRadius + 100, AllyTarget.Position);
            }

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