closeDisplay: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
m (Text replacement - "\[\[Category:[cC]ommand[_ ][gG]roup:[_ ][^|]+\|\{*uc:{{PAGENAME}*]\]" to "") |
||
Line 37: | Line 37: | ||
{{GameCategory|arma3|Scripting Commands}} | {{GameCategory|arma3|Scripting Commands}} | ||
{{GameCategory|tkoh|Scripting Commands}} | {{GameCategory|tkoh|Scripting Commands}} | ||
Revision as of 00:23, 18 January 2021
Description
- Description:
- Closes given display with exit code. It does not instantly close the display but does it on next simulation cycle. Most common exit codes are:
#define IDC_OK 1 // emulate "OK" button #define IDC_CANCEL 2 // emulate "Cancel" button
- Groups:
- GUI Control
Syntax
- Syntax:
- display closeDisplay exitCode
- Parameters:
- display: Display
- exitCode: Number
- Return Value:
- Nothing
Examples
- Example 1:
_display closeDisplay 1;
- Example 2:
#define IDC_OK 1 _display closeDisplay IDC_OK;
Additional Information
- See also:
- createDisplaycloseDialog
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