tModLoader  0.12 Alpha
A mod to make and play Terraria mods
Terraria.GameContent.UI.Elements.UITextBox Class Reference

Inherits Terraria.GameContent.UI.Elements.UITextPanel< string >.

Public Member Functions

 UITextBox (string text, float textScale=1f, bool large=false)
 
void Backspace ()
 
void CursorLeft ()
 
void CursorRight ()
 
override void SetText (string text, float textScale, bool large)
 
void SetTextMaxLength (int maxLength)
 
void Write (string text)
 
- Public Member Functions inherited from Terraria.GameContent.UI.Elements.UITextPanel< string >
 UITextPanel (T text, float textScale=1f, bool large=false)
 
override void Recalculate ()
 
void SetText (T text)
 
virtual void SetText (T text, float textScale, bool large)
 

Public Attributes

bool HideSelf
 
bool ShowInputTicker = true
 
- Public Attributes inherited from Terraria.GameContent.UI.Elements.UITextPanel< string >
float TextHAlign
 

Protected Member Functions

override void DrawSelf (SpriteBatch spriteBatch)
 
- Protected Member Functions inherited from Terraria.GameContent.UI.Elements.UITextPanel< string >
override void DrawSelf (SpriteBatch spriteBatch)
 
void DrawText (SpriteBatch spriteBatch)
 

Additional Inherited Members

- Protected Attributes inherited from Terraria.GameContent.UI.Elements.UITextPanel< string >
Color _color
 
bool _drawPanel
 
bool _isLarge
 
_text
 
float _textScale
 
Vector2 _textSize
 
- Properties inherited from Terraria.GameContent.UI.Elements.UITextPanel< string >
bool DrawPanel [get, set]
 
bool IsLarge [get]
 
string Text [get]
 
Color TextColor [get, set]
 
float TextScale [get, set]
 
Vector2 TextSize [get]