Difference between revisions of "Lua:createColorDialog"
Jump to navigation
Jump to search
m (Syntax Highlighting.) |
m (Added related function template.) |
||
| Line 29: | Line 29: | ||
{{LuaSeeAlso}} | {{LuaSeeAlso}} | ||
| + | |||
| + | {{Creation}} | ||
Latest revision as of 23:52, 26 June 2026
Creates a ColorDialog.
Call execute() to show the dialog, then read Color when the user confirms the selection.
Function Parameters[edit]
| Parameter | Type | Description |
|---|---|---|
| owner | Component or nil | Optional owner of the dialog. |
Returns[edit]
ColorDialog — The created color dialog.
Examples[edit]
1 local dialog = createColorDialog()
2 if dialog.execute() then
3 print(string.format("Selected color: %X", dialog.Color))
4 end