Datatype · Userdata

GuiInput

userdata

Single-line text input proxy returned by GuiCategory:add_input.

Fields

NameTypeDescription
categoryGuiCategory?

Back-reference to the owning category. nil after the owning tab is gone.

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.

kindControlKind

Always Enum.ControlKind.Input.

labelstring

Current label text.

namestring

Alias for label.

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.