TmpMenu/docs/lua/classes/checkbox.md
2023-07-02 00:59:02 +02:00

433 B

Class: checkbox

Inherit from 1 class: base_text_element

Class representing a gui checkbox.

Functions (2)

is_enabled()

  • Returns:
    • boolean: Is the checkbox checked?

Exemple Usage:

boolean = checkbox:is_enabled()

set_enabled(enabled)

  • Parameters:
    • enabled (boolean): The desired enabled state of the checkbox.

Exemple Usage:

checkbox:set_enabled(enabled)