public TextEntryWidget(WidgetGroup parentGroup, TextEntryStyle style, float x, float y, string text)
     : base(parentGroup, style.Width, style.Height, x, y)
 {
     Text = text;
     FontSize = style.FontSize;
     Alignment = TextAnchor.UpperLeft;
     Color = new Color(1.0f, 1.0f, 1.0f, 1.0f);
     MaxLength = 255;
     Restrict = "";
     EnableReturnSignal = false;
     EnableTabSignal = false;
 }
Exemple #2
0
 public TextEntryWidget(WidgetGroup parentGroup, TextEntryStyle style, float x, float y, string text) :
     base(parentGroup, style.Width, style.Height, x, y)
 {
     Text               = text;
     FontSize           = style.FontSize;
     Alignment          = TextAnchor.UpperLeft;
     Color              = new Color(1.0f, 1.0f, 1.0f, 1.0f);
     MaxLength          = 255;
     Restrict           = "";
     EnableReturnSignal = false;
     EnableTabSignal    = false;
 }