TextInput
global instance
Allows you to hook and query the chat entry. Can be used to activate text commands for example.
Properties
Name | Type | Access | Description |
---|---|---|---|
prompt | String | RW | The prompt to display before the colon in chat entry |
text | String | R | The current content |
active | Boolean | R | If true, the user is chatting |
hooks | Table of TextInputHook | R | Currently registered hooks |
Functions and Enumerations
- Instance Functions
Functions that are used with a TextInput instance.
- hook( id, table, func, arg )
Hook all entered chat text.
- hook( id, table, func, arg, pattern )
Hook chat, using a pattern to filter input.
- unhook( id )
Remove a hook function from TextInput.
- unhook( hook )
Remove a hook from TextInput.
- hook( id, table, func, arg )