A user dialog created with createDisplay over mission display (findDisplay 46) will stop display event handlers added to mission display from firing. However if it is created with createDialog then the event handlers continue to work.
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:
dialogName: String - class name used in the description.ext, resource.cpp or config.cpp
Returns: Boolean - true when the dialog was created successfully
Syntax 2
since arma3 2.08
createDialog [dialogName, forceOnTop]
Parameters:
dialogName: String - class name used in the description.ext, resource.cpp or config.cppforceOnTop: Boolean - (Optional, default false) if true, dialog will be rendered on top of displays
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