Datatype · Userdata

GuiLabel

userdata

Static text proxy returned by GuiCategory:add_label.

Fields

NameTypeDescription
categoryGuiCategory?

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

destroy() -> ()

Marks the label destroyed.

get_text() -> string

Returns the displayed text.

is_destroyed() -> boolean

Returns the destroyed flag.

is_visible() -> boolean

Returns the visibility flag.

kindControlKind

Always Enum.ControlKind.Label.

labelstring

Current label text.

namestring

Alias for label.

set_label(text: string) -> ()

Replaces the displayed text. Equivalent to set_text.

set_text(text: string) -> ()

Replaces the displayed text. Equivalent to set_label.

set_visible(visible: boolean) -> ()

Shows or hides the label.