Beispiel #1
0
 public UILabel( Font font, Vector2 position, float scale = 1.0f )
     : base(new Vector2(), position)
 {
     myFont = font;
     myText = new Text( font, scale );
     Colour = Color4.Black;
     CanResize = false;
     IsEnabled = false;
 }
Beispiel #2
0
 public Text( Font font, float scale = 1.0f )
     : base(font.Texture, scale)
 {
     myText = "";
     myFont = font;
 }
Beispiel #3
0
 public UILabel( Font font, float scale = 1.0f )
     : this(font, new Vector2(), scale)
 {
 }