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