dialog: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (template:command argument fix)
(14 intermediate revisions by 11 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|DIALOG]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|DIALOG]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|DIALOG]]


| ofpr |= Game name


<h2 style="color:#000066">'''dialog'''</h2>
|1.78|= Game version
____________________________________________________________________________________________


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


'''Operand types:'''
| [[Boolean]] <nowiki>=</nowiki> [[dialog]] |SYNTAX=


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


'''Type of returned value:'''
|  [[displayCtrl]], [[createDisplay]], [[createDialog]], [[closeDialog]], [[displayNull]], [[controlNull]], [[createDisplay]], [[ctrlCreate]], [[displayParent]], [[Dialog Control]]  |SEEALSO=


[[Boolean]]
}}


'''Compatibility:'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


Added in version '''1.78'''
<!-- Note Section END -->
</dl>


'''Description:'''
<h3 style="display:none">Bottom Section</h3>


Check if user '''dialog''' is present.
[[Category:Scripting Commands|DIALOG]]
 
[[Category:Scripting Commands OFP 1.99|DIALOG]]
 
[[Category:Scripting Commands OFP 1.96|DIALOG]]
'''Example:'''
[[Category:Scripting Commands ArmA|DIALOG]]
 
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
? ! '''dialog''' : [[goto]] "play"
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Interaction|{{uc:{{PAGENAME}}}}]]

Revision as of 15:37, 7 April 2019

Hover & click on the images for description

Description

Description:
Tests whether any user dialog is open.
Groups:
Uncategorised

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:
displayCtrlcreateDisplaycreateDialogcloseDialogdisplayNullcontrolNullcreateDisplayctrlCreatedisplayParentDialog Control

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