createDialog: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (linked description.ext and resource.cpp + <code>ed example)
(see also)
Line 12: Line 12:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Boolean]] <nowiki>=</nowiki> '''createDialog''' dialogName |= Syntax
| '''createDialog''' dialogName |= Syntax


|p1= dialogName: [[String]] - class name used in the description.ext / resource.cpp |= Parameter 1
|p1= dialogName: [[String]] - class name used in the description.ext / resource.cpp |= Parameter 1
Line 21: Line 21:
   
   
|x1= <code>_ok = [[createDialog]] "RscDisplayGame";
|x1= <code>_ok = [[createDialog]] "RscDisplayGame";
?!(_ok) : [[hint]] "Dialog couldn't be opened!";</code> |= Example 1
[[if]] (!_ok) [[then]] {[[hint]] "Dialog couldn't be opened!"};</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[closeDialog]], [[dialog]] |= See also
| [[closeDialog]], [[dialog]], [[createDisplay]] |= See also


}}
}}

Revision as of 01:39, 24 August 2014

Hover & click on the images for description

Description

Description:
Create 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.
Groups:
Uncategorised

Syntax

Syntax:
createDialog dialogName
Parameters:
dialogName: String - class name used in the description.ext / resource.cpp
Return Value:
Boolean - true when the dialog was created successfully

Examples

Example 1:
_ok = createDialog "RscDisplayGame"; if (!_ok) then {hint "Dialog couldn't be opened!"};

Additional Information

See also:
closeDialogdialogcreateDisplay

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section