예제 #1
0
 /// <summary>
 /// The Constructor for the UITextBox
 /// </summary>
 /// <param name="pos">The position of the object in pixels. If the parent parameter is not null, then the position is added on top of that.</param>
 /// <param name="size">The size of the button in pixels.</param>
 /// <param name="font">The font that the text is drawn with.</param>
 /// <param name="parent">The parent to the text box</param>
 public UITextBox(Vector2 pos, Vector2 size, SpriteFont font, UIObject parent = null) : base(pos, size, parent)
 {
     this.font = font;
     this.text = "";
 }
 /// <summary>
 /// The Constructor for the UIPanel. This tends to be your base object if you want a window.
 /// </summary>
 /// <param name="pos">The position of the object in pixels. If the parent parameter is not null, then the position is added on top of that.</param>
 /// <param name="size">The size of the object in pixels.</param>
 /// <param name="parent">The parent to the label</param>
 /// <param name="fullTexture">The texture to draw at the position with the size.</param>
 public UIPanel(Vector2 pos, Vector2 size, UIObject parent = null, Texture2D fullTexture = null) : base(pos, size, parent)
 {
     t = fullTexture;
 }