Exemplo n.º 1
0
 public TextInputBox(String name, String text, TextBoxEnterEvent enterEvent, String defaultText, String suffix = "")
     : base(name, text, enterEvent)
 {
     field = new TextInputField(TextureBin.mainFont, this.position - Vector2.UnitY * 48, Keys.F12, suffix);
     field.enabled = true;
     field.inputString = defaultText;
 }
Exemplo n.º 2
0
 public TextInputBox(String name, String text, TextBoxEnterEvent enterEvent, String defaultText, String suffix = "")
     : base(name, text, enterEvent)
 {
     field             = new TextInputField(TextureBin.mainFont, this.position - Vector2.UnitY * 48, Keys.F12, suffix);
     field.enabled     = true;
     field.inputString = defaultText;
 }
Exemplo n.º 3
0
 public TextInputBox(String name, String text, TextBoxEnterEvent enterEvent)
     : base(name, text, enterEvent)
 {
     field = new TextInputField(TextureBin.mainFont, this.position - Vector2.UnitY * 48, Keys.F12);
     field.enabled = true;
 }
Exemplo n.º 4
0
 public TextInputBox(String name, String text, TextBoxEnterEvent enterEvent)
     : base(name, text, enterEvent)
 {
     field         = new TextInputField(TextureBin.mainFont, this.position - Vector2.UnitY * 48, Keys.F12);
     field.enabled = true;
 }