closeDialog: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|CLOSEDIALOG]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|CLOSEDIALOG]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|CLOSEDIALOG]]


| ofpr |= Game name


<h2 style="color:#000066"> '''closeDialog ''idc'''''</h2>
|1.5|= Game version


|arg= local |= Arguments in MP


'''Operand types:'''
|eff= local |= Effects in MP
____________________________________________________________________________________________


'''idc:''' [[Number]]
| Close the currently active user dialog. |= Description
____________________________________________________________________________________________


'''Type of returned value:'''
| '''closeDialog''' idc |= Syntax


[[Nothing]]
|p1= idc: [[Integer]] - control ID |= Parameter 1


'''Compatibility:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>closeDialog 0</pre> |= Example 1
____________________________________________________________________________________________


Added in version '''1.50'''
| [[createDialog]], [[dialog]] |= See also


'''Description:'''
}}


Close topmost user [[dialog]] as if button with id '''idc''' was pressed.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


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


'''closeDialog''' 1
[[Category:Scripting Commands|CLOSEDIALOG]]
[[Category:Scripting Commands OFP 1.96|CLOSEDIALOG]]
[[Category:Scripting Commands ArmA|CLOSEDIALOG]]

Revision as of 23:55, 1 August 2006

Hover & click on the images for description

Description

Description:
Close the currently active user dialog.
Groups:
Uncategorised

Syntax

Syntax:
closeDialog idc
Parameters:
idc: Integer - control ID
Return Value:
Nothing

Examples

Example 1:
closeDialog 0

Additional Information

See also:
createDialogdialog

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