A button displaying a color, opening a ColorPicker dialog when clicked. Fires OnColorChange.
Inherits from: Widget
Lua full name: lysa.ui.ColorPickerButton
|
| nil | set_dialog (title: string, buttons: string[]) |
| | Sets the title and the button labels of the dialog opened when clicking. More...
|
| |
| nil | set_dialog (title: string, buttons: string[], width: number, row_height: number, footer_height: number, resource: string) |
| | Sets the title, the button labels and the geometry of the dialog. More...
|
| |
| nil | set_resources (res_button: string) |
| | Reloads the visual style of the button. More...
|
| |
|
| lysa.float4 | color |
| | The currently selected RGBA color.
|
| |
| string | label |
| | The text displayed at the left of the color swatch.
|
| |
| number | swatch_width |
| | Width of the color swatch drawn inside the button.
|
| |
| Button | button |
| | The clickable button displaying the color. (read-only)
|
| |
| Text | label_widget |
| | The text widget displaying the label. (read-only)
|
| |