dialog: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| ofpr |Game name=
| ofpr |Game name=
Line 7: Line 6:


|gr1= GUI Control |GROUP1=
|gr1= GUI Control |GROUP1=
____________________________________________________________________________________________


| Tests whether any user dialog is open.|DESCRIPTION=
| Tests whether any user dialog is open.|DESCRIPTION=
____________________________________________________________________________________________


| [[Boolean]] <nowiki>=</nowiki> [[dialog]] |SYNTAX=
| [[Boolean]] <nowiki>=</nowiki> [[dialog]] |SYNTAX=
Line 16: Line 13:
| [[Boolean]] -   
| [[Boolean]] -   
true if a dialog is open, false if not |RETURNVALUE=
true if a dialog is open, false if not |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>[[if]] (![[dialog]]) [[then]] {[[createDialog]] "Dialog1";};</code> |EXAMPLE1=
|x1= <code>[[if]] (![[dialog]]) [[then]] {[[createDialog]] "Dialog1";};</code> |EXAMPLE1=
____________________________________________________________________________________________


|  [[displayCtrl]], [[createDisplay]], [[createDialog]], [[closeDialog]], [[displayNull]], [[controlNull]], [[createDisplay]], [[ctrlCreate]], [[displayParent]], [[Arma: GUI Configuration]]  |SEEALSO=
|  [[displayCtrl]], [[createDisplay]], [[createDialog]], [[closeDialog]], [[displayNull]], [[controlNull]], [[createDisplay]], [[ctrlCreate]], [[displayParent]], [[Arma: GUI Configuration]]  |SEEALSO=

Revision as of 01:41, 17 January 2021

Hover & click on the images for description

Description

Description:
Tests whether any user dialog is open.
Groups:
GUI Control

Syntax

Syntax:
Boolean = dialog
Return Value:
Boolean - true if a dialog is open, false if not

Examples

Example 1:
if (!dialog) then {createDialog "Dialog1";};

Additional Information

See also:
displayCtrlcreateDisplaycreateDialogcloseDialogdisplayNullcontrolNullcreateDisplayctrlCreatedisplayParentArma: GUI Configuration

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