Text
┗> Object > Class
The Text object, made for displaying formatted text.
If you're looking for text which writes itself out over time, see DialogueText.
Constructor
Text(text: any, x: any, y: any, w: any, h: any, options: any)
Arguments:
| text: any | |
| x: any | |
| y: any | |
| w: any | |
| h: any | |
| options: any |
Methods
Text:cloneState(state: table)
A helper function to avoid deep-cloning the entire state table.
@param state — The state to clone.
@return state — The cloned state.
Arguments:
| state: table | The state to clone. |
Returns:
| state: table | The cloned state. |
Text:getCharPosition(node: any, state: any)
Arguments:
| node: any | |
| state: any |
Returns:
| 1: unknown | |
| 2: unknown |
Text:getNodeSize(node: any, state: any, include_scale: any)
Arguments:
| node: any | |
| state: any | |
| include_scale: any |
Returns:
| 1: integer | |
| 2: unknown |
Text:getTextColor(state: any, use_base_color: any)
Arguments:
| state: any | |
| use_base_color: any |
Returns:
| 1: unknown | |
| 2: unknown | |
| 3: unknown | |
| 4: number |
Text:registerCommand(command: any, func: any, options: any)
Arguments:
| command: any | |
| func: any | |
| options: any |