allControls: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " {2,}\}\}" to " }}")
(Fix description)
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


|game1= arma3
|game1= arma3
|version1= 1.38
|version1= 1.38


|gr1= GUI Control
|gr1= GUI Control


|descr= Returns a list of all controls for desired existing display. Returned controls also include controls from control groups
|descr= Returns a list of all controls in the provided display or controls group, including "sub"-controls from other [[CT_CONTROLS_GROUP]]s.


|s1= [[allControls]] display
|s1= [[allControls]] display
Line 15: Line 14:
|r1= [[Array]] of [[Control]]s
|r1= [[Array]] of [[Control]]s


|s2= [[allControls]] control ({{Since|arma3|2.03}})
|s2= [[allControls]] controlsGroup


|p21= control: [[Control]]
|s2since= arma3 2.04
 
|p21= controlsGroup: [[Control]] - [[CT_CONTROLS_GROUP]]


|r2= [[Array]] of [[Control]]s
|r2= [[Array]] of [[Control]]s


|x1= <code>_allCtrls = [[allControls]] [[findDisplay]] 46;</code>
|x1= <sqf>_allCtrls = allControls findDisplay 46;</sqf>


|x2= <code>_allSubCtrls = [[allControls]] _myControlsGroup;</code>
|x2= <sqf>_allSubCtrls = allControls _myControlsGroup;</sqf>


|seealso= [[allDisplays]], [[controlsGroupCtrl]], [[ctrlCreate]], [[allVariables]], [[allCurators]], [[allGroups]], [[allDead]], [[allDeadMen]]
|seealso= [[allDisplays]] [[controlsGroupCtrl]] [[ctrlCreate]] [[allVariables]] [[allCurators]] [[allGroups]] [[allDead]] [[allDeadMen]]
}}
}}
{{GameCategory|arma3|New Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 00:03, 5 February 2024

Hover & click on the images for description

Description

Description:
Returns a list of all controls in the provided display or controls group, including "sub"-controls from other CT_CONTROLS_GROUPs.
Groups:
GUI Control

Syntax

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

Alternative Syntax

Syntax:
allControls controlsGroup
Parameters:
controlsGroup: Control - CT_CONTROLS_GROUP
Return Value:
Array of Controls

Examples

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

Additional Information

See also:
allDisplays controlsGroupCtrl ctrlCreate allVariables allCurators allGroups allDead allDeadMen

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