allControls: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) 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 | |game1= arma3 | ||
| 1.38 | |version1= 1.38 | ||
|gr1= GUI Control | |gr1= GUI Control | ||
| 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 for desired existing display. Returned controls also include controls from control groups | ||
|s1= [[allControls]] display | |||
| | |p1= display: [[Display]] | ||
| | |r1= [[Array]] of [[Control]]s | ||
| [[ | |s2= [[allControls]] control ({{since|arma3|2.03}}) | ||
| | |p21= control: [[Control]] | ||
| [[ | |r2= [[Array]] of [[Control]]s | ||
| | |x1= <code>_allCtrls = [[allControls]] [[findDisplay]] 46;</code> | ||
|x2= <code>_allSubCtrls = [[allControls]] _myControlsGroup;</code> | |||
|seealso= [[allDisplays]], [[controlsGroupCtrl]], [[ctrlCreate]], [[allVariables]], [[allCurators]], [[allGroups]], [[allDead]], [[allDeadMen]] | |||
}} | |||
{{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
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
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