示例#1
0
 /// <summary>
 /// Draws a string at the specified point.
 /// </summary>
 public void DrawString(string text, Point point, ColorBrush color, Rectangle bounds, bool ignoreFormatting = false) => DrawString(text, point, color, defaultSize, bounds, ignoreFormatting);
示例#2
0
 public override void DrawTexture(string name, Rectangle rectangle, ColorBrush brush, Rectangle bounds)
 {
     var rect = new RectangleXNA((int) rectangle.X, (int) rectangle.Y, (int) rectangle.Width,
         (int) rectangle.Height);
     var texture = GetTexture(name);
     var col = new ColorXNA(brush.Color.R, brush.Color.G, brush.Color.B, brush.Color.A);
     manager.SpriteBatch.Draw(texture, rect, col);
 }
示例#3
0
 /// <summary>
 /// Draws a texture loaded by the skin in the specified region with the specified tint.
 /// </summary>
 public abstract void DrawTexture(string name, Rectangle rectangle, ColorBrush color, Rectangle bounds);