예제 #1
0
 public DrawableString(string text, UIManagerSpriteRenderer.TextType type, RectangleF Offset, TextAlignment alignment, Color color, int fontSize = 0)
 {
     this.Text      = text;
     this.Type      = type;
     this.Color     = color;
     this.Offset    = Offset;
     this.Alignment = alignment;
     this.Fontsize  = fontSize;
 }
예제 #2
0
파일: UI.cs 프로젝트: anikan/LeafMeAlone
 /// <summary>
 /// Text UI.
 /// </summary>
 public UI(string text, UIManagerSpriteRenderer.TextType type, RectangleF offset, SpriteTextRenderer.TextAlignment alignment, Color color)
 {
     UIText = UIManagerSpriteRenderer.DrawTextContinuous(text, type, offset, alignment, color);
 }