Arma 3 Scripting

Command in GUI Control

createDialog

Also available as Markdown and JSON, or read the original wiki page.

Description

Creates a dialog which is defined either in the mission's description.ext, in the campaign's description.ext or in the global resource.cpp. The given name has to be the class name used in one of these files. If another dialog is already opened, the desired dialog is created as a child dialog of the one already opened.

Note

By default, displays created with createDisplay are rendered on top of dialogs created with createDialog. If forceOnTop is set to true, the dialog will be rendered on top of displays.

Syntax

Syntax 1

createDialog dialogName

Parameters:

Returns: Boolean - true when the dialog was created successfully

Syntax 2

since arma3 2.08

createDialog [dialogName, forceOnTop]

Parameters:

Returns: Display - created dialog

Examples

Example 1

private _ok = createDialog "RscDisplayGame";
if (!_ok) then { hint "Dialog could not be opened!" };

See also

displayCtrl · createDisplay · closeDialog · dialog · displayNull · controlNull · ctrlCreate · displayParent

Community notes