Datatype · Userdata

GuiColor

userdata

Colour-picker proxy returned by GuiCategory:add_color.

Fields

NameTypeDescription
categoryGuiCategory?

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

destroy() -> ()

Marks the picker destroyed.

get_color() -> Color4

Returns the current colour as a Color4.

is_destroyed() -> boolean

Returns the destroyed flag.

is_visible() -> boolean

Returns the visibility flag.

kindControlKind

Always Enum.ControlKind.Color.

labelstring

Current label text.

namestring

Alias for label.

on_changed(callback: (rgba: { number }) -> ()) -> GuiConnection

Registers an additional change listener.

set_color(value: Color4) -> ()

Writes the colour.

set_label(text: string) -> ()

Replaces the label.

set_visible(visible: boolean) -> ()

Shows or hides the picker.