예제 #1
0
 /// <summary>
 /// Constructs a new text input box.
 /// </summary>
 /// <param name="text">The default text in the box.</param>
 /// <param name="info">Information about the box.</param>
 /// <param name="fonts">The font to use.</param>
 /// <param name="pos">The position of the element.</param>
 public UIInputBox(string text, string info, FontSet fonts, UIPositionHelper pos)
     : base(pos.Height <= 0 ? pos.ConstantHeight((int)fonts.font_default.Height) : pos)
 {
     Text  = text;
     Info  = info;
     Fonts = fonts;
 }