ctrlEnable: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| ofpr |= Game name | |||
|1.5|= Game version | |||
|arg= local |= Arguments in MP | |||
|eff= local |= Effects in MP | |||
____________________________________________________________________________________________ | |||
| Enable or disable a control of the currently active user dialog. Disabled controls cannot be clicked onto. Read [[Dialog Control]] for more information about user dialogs and controls. |= Description | |||
____________________________________________________________________________________________ | |||
'''[idc, enable] | | '''ctrlEnable''' [idc, enable] |= Syntax | ||
|p1= idc: [[Integer]] - control ID |= Parameter 1 | |||
[[ | |p2= enable: [[Boolean]] - true to enable the dialog, false to disable it |= Parameter 2 | ||
| [[Nothing]] |= Return value | |||
____________________________________________________________________________________________ | |||
|x1= <pre>ctrlEnable [100,false]</pre> |= Example 1 | |||
____________________________________________________________________________________________ | |||
| [[ctrlEnabled]] |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
[[Category:Scripting Commands|CTRLENABLE]] | |||
[[Category:Scripting Commands OFP 1.96|CTRLENABLE]] | |||
[[Category:Scripting Commands ArmA|CTRLENABLE]] |
Revision as of 23:11, 1 August 2006
Description
- Description:
- Enable or disable a control of the currently active user dialog. Disabled controls cannot be clicked onto. Read Dialog Control for more information about user dialogs and controls.
- Groups:
- Uncategorised
Syntax
- Syntax:
- ctrlEnable [idc, enable]
- Parameters:
- idc: Integer - control ID
- enable: Boolean - true to enable the dialog, false to disable it
- Return Value:
- Nothing
Examples
- Example 1:
ctrlEnable [100,false]
Additional Information
- See also:
- ctrlEnabled
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