createDialog: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (formatting)
m (formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


|game1= ofp
| ofp


|version1= 1.75
|
 
|game2= ofpe
 
|version2= 1.00
 
|game3= arma1
 
|version3= 1.00
 
|game4= arma2
 
|version4= 1.00
 
|game5= arma2oa
 
|version5= 1.51
 
|game6= tkoh
 
|version6= 1.00
 
|game7= arma3
 
|version7= 0.50


|eff= local
|eff= local
Line 33: Line 9:
|gr1= GUI Control
|gr1= GUI Control


|descr= 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/bin|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.
| 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/bin|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.


|s1= '''createDialog''' dialogName
| '''createDialog''' dialogName


|p1= dialogName: [[String]] - Class name used in the description.ext, resource.cpp or config.cpp
|p1= dialogName: [[String]] - class name used in the description.ext / resource.cpp


|r1= [[Boolean]] -  [[true|True]] when the dialog was created successfully
| [[Boolean]] -   
true when the dialog was created successfully
   
   
|x1= <code>_ok = [[createDialog]] "RscDisplayGame";
|x1= <code>_ok = [[createDialog]] "RscDisplayGame";
Line 46: Line 23:
|seealso= [[displayCtrl]], [[createDisplay]], [[closeDialog]], [[dialog]], [[displayNull]], [[controlNull]], [[ctrlCreate]], [[displayParent]]
|seealso= [[displayCtrl]], [[createDisplay]], [[closeDialog]], [[dialog]], [[displayNull]], [[controlNull]], [[ctrlCreate]], [[displayParent]]
}}
}}
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}


<dl class="command_description">
<dl class="command_description">

Revision as of 18:41, 12 April 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
GUI Control

Syntax

Syntax:
Syntax needed
Parameters:
dialogName: String - class name used in the description.ext / resource.cpp
Return Value:
Return value needed

Examples

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

Additional Information

See also:
displayCtrlcreateDisplaycloseDialogdialogdisplayNullcontrolNullctrlCreatedisplayParent

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
Posted on July 29, 2017 - 09:04 (UTC)
Killzone Kid
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.