A text entry (fl_text_entry) in the theme's colors with an optional character limit.
Set the limit with set_limit; once it is reached, further input is blocked. The drawing
can be replaced through the ChatboxEntryPaint hook. Used by the chatbox and by the
description field of the inventory menu. Derives from DTextEntry.
Summary
Methods
Methods
Blocks further input once the text has reached the character limit.
Parameters
- _char String the character being typed
Returns
- Boolean true to block the character, nil to allow it
Returns the maximum number of characters that can be typed into the entry.
Returns
- Number maximum length, 0 for no limit
Hides the language indicator, makes the entry report changes on every keystroke and applies the text font and color of the theme.
Draws the field and the text through the theme's PaintTextEntry hook, unless the ChatboxEntryPaint hook returns a truthy value.
Parameters
- w Number panel width
- h Number panel height
Sets the maximum number of characters that can be typed into the entry.
Parameters
- limit Number optional, defaults to
0maximum length, 0 for no limit; the absolute value is used