public TextInputWidget ( |
||
wr | ||
f | ||
t | Microsoft.Xna.Framework.Graphics.Texture2D | |
return | System |
public TextInputWidget(WidgetRenderer wr, SpriteFont f = null, Texture2D t = null)
: base(wr, f)
{
Caret = new RectWidget(wr, t);
Caret.Parent = this;
Caret.Width = 1;
Caret.Height = Height;
TextInput = new TextInput();
TextInput.OnTextChanged += tInput_OnTextChanged;
TextInput.OnCaretMoved += TextInput_OnCaretMoved;
}