Пример #1
0
 public TextBox()
 {
     SetSize(new Vector2(175, 30));
     _inputLineHeight = (int)Assets.GetFont("Arial10").MeasureString("00000").Y;
     Text             = "";
 }
Пример #2
0
 public static void DrawString(this SpriteBatch spriteBatch, string text, Vector2 pos, Color color)
 {
     spriteBatch.DrawString(Assets.GetFont("GadgetFont12"), text, pos, color);
 }