Skip to content

Control

Methods of Control objects. Nyx Lua API v1.

Control:get() -> any

The control's value.

Control:set(value: any) -> ()

Sets the value (saved with the config).

Control:visible(visible: boolean) -> ()

Shows or hides the row.

Control:tooltip(text: string) -> ()

The circled-i hover text.

Control:on_change(fn: (value: any) -> ()) -> ()

Runs when the user changes the value.