createDialog: Difference between revisions
Jump to navigation
Jump to search
Tag: Undo |
Lou Montana (talk | contribs) m (Text replacement - "|game5= arma2oa |version5= 1.51 " to "|game5= arma2oa |version5= 1.50 ") |
||
Line 19: | Line 19: | ||
|game5= arma2oa | |game5= arma2oa | ||
|version5= 1. | |version5= 1.50 | ||
|game6= tkoh | |game6= tkoh |
Revision as of 17:52, 27 April 2021
Description
- 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.
- Groups:
- GUI Control
Syntax
- Syntax:
- createDialog dialogName
- Parameters:
- dialogName: String - Class name used in the description.ext, resource.cpp or config.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
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.
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.75
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: GUI Control
- Scripting Commands: Local Effect