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/input_string.md

30 lines
514 B
Markdown
Raw Normal View History

2023-07-02 00:59:02 +02:00
# Class: input_string
## Inherit from 1 class: base_text_element
Class for representing an input field for editing a string value within the GUI.
## Functions (2)
### `get_value()`
- **Returns:**
- `string`: Get the value currently written inside the input field.
**Example Usage:**
2023-07-02 00:59:02 +02:00
```lua
string = input_string:get_value()
```
### `set_value(val)`
- **Parameters:**
- `val` (string): Set the value currently written inside the input field.
**Example Usage:**
2023-07-02 00:59:02 +02:00
```lua
input_string:set_value(val)
```