Beispiel #1
0
        public override void DrawInEditor(SpriteBatch spriteBatch)
        {
            if (!_properties.Visible)
            {
                return;
            }

            Color c = Constants.Instance.ColorPrimitives;

            if (IsHovering && Constants.Instance.EnableHighlightOnMouseOver)
            {
                c = Constants.Instance.ColorHighlight;
            }

            _drawing.DrawCircle(spriteBatch, _properties.Position, _properties.Range, c, 5);
        }
 public override void Draw(IDrawing d)
 {
     d.DrawCircle(x, y, size, color);
 }
Beispiel #3
0
 public void DrawCircle(Graphics graphics, Color color, PointF centerPoint, float radius)
 {
     _drawing?.DrawCircle(graphics, color, centerPoint, radius);
 }