TmpMenu/docs/lua/classes/checkbox.md

30 lines
433 B
Markdown
Raw Normal View History

2023-07-02 00:59:02 +02:00
# Class: checkbox
## Inherit from 1 class: base_text_element
Class representing a gui checkbox.
## Functions (2)
### `is_enabled()`
- **Returns:**
- `boolean`: Is the checkbox checked?
**Example Usage:**
2023-07-02 00:59:02 +02:00
```lua
boolean = checkbox:is_enabled()
```
### `set_enabled(enabled)`
- **Parameters:**
- `enabled` (boolean): The desired enabled state of the checkbox.
**Example Usage:**
2023-07-02 00:59:02 +02:00
```lua
checkbox:set_enabled(enabled)
```