Datatype · Userdata
GuiInput
userdata
Single-line text input proxy returned by GuiCategory:add_input.
Fields
| Name | Type | Description |
|---|---|---|
| category | GuiCategory? | Back-reference to the owning category. |
| destroy | () -> () | Marks the input destroyed. |
| get_text | () -> string | Returns the current buffer contents. |
| is_destroyed | () -> boolean | Returns the destroyed flag. |
| is_visible | () -> boolean | Returns the visibility flag. |
| kind | ControlKind | Always |
| label | string | Current label text. |
| name | string | Alias for |
| on_changed | (callback: (value: string) -> ()) -> GuiConnection | Registers an additional change listener. |
| set_label | (text: string) -> () | Replaces the label. |
| set_text | (text: string) -> () | Writes the buffer. |
| set_visible | (visible: boolean) -> () | Shows or hides the input. |