This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
YimMenu/docs/lua/classes/base_text_element.md

28 lines
434 B
Markdown
Raw Normal View History

2023-07-02 00:59:02 +02:00
# Class: base_text_element
Class representing a gui text element.
## Functions (2)
### `set_text(new_text)`
- **Parameters:**
- `new_text` (string): The new text for that gui text element.
**Example Usage:**
2023-07-02 00:59:02 +02:00
```lua
base_text_element:set_text(new_text)
```
### `get_text()`
- **Returns:**
- `string`: Returns the current text for that gui text element.
**Example Usage:**
2023-07-02 00:59:02 +02:00
```lua
string = base_text_element:get_text()
```