|
Lua API
0.4.0
Game Engine
|
Functions | |
| setText (object, text) | |
| Changes the string displayed by a text object. More... | |
| getText (object) | |
| Retrieves the string displayed by a text object. More... | |
| getTextColor (object) | |
| Retrieves the color displayed by a text object. More... | |
| setTextColor (object, color) | |
| Sets the color displayed by a text object. More... | |
| getText | ( | object | ) |
Retrieves the string displayed by a text object.
| object | The text object. |
| getTextColor | ( | object | ) |
Retrieves the color displayed by a text object.
| object | The text object. |
Example:
| setText | ( | object | , |
| text | |||
| ) |
Changes the string displayed by a text object.
| object | The text object. |
| text | The new string. |
Example:
| setTextColor | ( | object | , |
| color | |||
| ) |
Sets the color displayed by a text object.
| object | The text object. |
| color | The new color as a vec4. |
Example: