Lua:createColorDialog

From Cheat Engine
Revision as of 19:24, 23 June 2026 by Leunsel (talk | contribs) (Initial page creation.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<> Reference

function createColorDialog(owner OPTIONAL) : ColorDialog

Creates a ColorDialog.

Call execute() to show the dialog, then read Color when the user confirms the selection.

Function Parameters

Parameter Type Description
owner Component or nil Optional owner of the dialog.

Returns

ColorDialog — The created color dialog.

Examples

local dialog = createColorDialog()
if dialog.execute() then
  print(string.format("Selected color: %X", dialog.Color))
end

See Also

Main Pages