allControls: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)]]" to "{{GameCategory|arma3|Scripting Commands}}")
(added new syntax and code cleaning)
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3


| 1.38 |Game version=
|version1= 1.38


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


| Returns a list of all controls for desired existing display. Returned controls also include controls from control groups |DESCRIPTION=
|descr= Returns a list of all controls for desired existing display. Returned controls also include controls from control groups
____________________________________________________________________________________________


|s1= [[allControls]] display


| '''allControls''' display |SYNTAX=
|p1= display: [[Display]]


|p1= display: [[Display]]|=
|r1= [[Array]] of [[Control]]s


| [[Array]] of [[Control]]s |RETURNVALUE=
|s2= [[allControls]] control ({{since|arma3|2.03}})
____________________________________________________________________________________________


| x1= <code>_allCtrls = [[allControls]] [[findDisplay]] 46;</code>|EXAMPLE1=
|p21= control: [[Control]]
____________________________________________________________________________________________


| [[allDisplays]], [[controlsGroupCtrl]], [[ctrlCreate]], [[allVariables]], [[allCurators]], [[allGroups]], [[allDead]], [[allDeadMen]] |SEEALSO=
|r2= [[Array]] of [[Control]]s


| |MPBEHAVIOUR=  
|x1= <code>_allCtrls = [[allControls]] [[findDisplay]] 46;</code>
____________________________________________________________________________________________
 
}}
|x2= <code>_allSubCtrls = [[allControls]] _myControlsGroup;</code>


<h3 style='display:none'>Notes</h3>
|seealso= [[allDisplays]], [[controlsGroupCtrl]], [[ctrlCreate]], [[allVariables]], [[allCurators]], [[allGroups]], [[allDead]], [[allDeadMen]]
<dl class='command_description'>
<!-- Note Section BEGIN -->


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


<h3 style='display:none'>Bottom Section</h3>
{{GameCategory|arma3|New_Scripting_Commands_List}}
{{GameCategory|arma3|New_Scripting_Commands_List}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 00:06, 10 January 2021

Hover & click on the images for description

Description

Description:
Returns a list of all controls for desired existing display. Returned controls also include controls from control groups
Groups:
GUI Control

Syntax

Syntax:
allControls display
Parameters:
display: Display
Return Value:
Array of Controls

Alternative Syntax

Syntax:
allControls control (Template:since)
Parameters:
control: Control
Return Value:
Array of Controls

Examples

Example 1:
_allCtrls = allControls findDisplay 46;
Example 2:
_allSubCtrls = allControls _myControlsGroup;

Additional Information

See also:
allDisplayscontrolsGroupCtrlctrlCreateallVariablesallCuratorsallGroupsallDeadallDeadMen

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