public TextSprite(
     string text,
     FontId font      = default(FontId),
     float fontSize   = 12,
     Vector2 position = default(Vector2),
     Color?color      = null)
 {
     this.Text     = text;
     this.Font     = font;
     this.FontSize = fontSize;
     this.Position = position;
     this.Color    = color ?? Color.White;
 }
Esempio n. 2
0
 public TextSprite(
     string text,
     FontId font               = default(FontId),
     float fontSize            = 12,
     Vector2 position          = default(Vector2),
     Color?color               = null,
     float border              = 0,
     Color?borderColor         = null,
     StringBuilder textBuilder = null)
 {
     this.Text        = text;
     this.Font        = font;
     this.FontSize    = fontSize;
     this.Position    = position;
     this.Color       = color ?? Color.White;
     this.Border      = border;
     this.BorderColor = borderColor ?? Color.White;
     this.TextBuilder = textBuilder;
 }