Exemplo n.º 1
0
 public void Line(Point startPoint, Point endPoint, IDrawingProperties properties)
 {
     if (properties != null)
     {
         this.pen.Color = Color.FromArgb(properties.Colour.Red, properties.Colour.Green, properties.Colour.Blue);
         this.pen.Width = properties.Width;
     }
     graphics.DrawLine(pen, startPoint.X, startPoint.Y, endPoint.X, endPoint.Y);
 }
Exemplo n.º 2
0
 public static void DrawInMenuCorrected(
     this Item item,
     SpriteBatch spriteBatch,
     Vector2 location,
     float scaleSize,
     float transparency,
     float layerDepth,
     StackDrawType drawStackNumber,
     Color color,
     bool drawShadow,
     IDrawOrigin origin
     )
 {
     IDrawingProperties drawingProperties = item switch
     {
         // BigCraftable
         SObject {
             bigCraftable : { Value : true }
         } => new BigCraftableDrawingProperties(),
Exemplo n.º 3
0
 public void Arc(Point point, int height, int width, int startAngle, int sweepAngle, IDrawingProperties properties)
 {
     if (properties != null)
     {
         this.pen.Color = Color.FromArgb(properties.Colour.Red, properties.Colour.Green, properties.Colour.Blue);
         this.pen.Width = properties.Width;
     }
     graphics.DrawArc(pen, point.X, point.Y, width, height, startAngle, sweepAngle);
 }