Lua:createColorDialog

From Cheat Engine
Jump to navigation Jump to search

<> Lua API 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[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

Main Pages

Core Lua documentation entry points

Lua
Script Engine

Basic Visual Controls

Text / Input Controls

Value / Progress Controls

Graphics / Resources

Strings / Streams

Timers / Hotkeys

Scanning / Found Lists

Other Creation Helpers