BlisterUI.Widgets.TextInputWidget.TextInputWidget C# (CSharp) Method

TextInputWidget() public method

public TextInputWidget ( WidgetRenderer wr, SpriteFont f = null, Microsoft.Xna.Framework.Graphics.Texture2D t = null ) : System
wr WidgetRenderer
f Microsoft.Xna.Framework.Graphics.SpriteFont
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;
        }