ctrlClassName: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (version) |
Killzone Kid (talk | contribs) (format) |
||
Line 21: | Line 21: | ||
[[with]] [[uiNamespace]] [[do]] { | [[with]] [[uiNamespace]] [[do]] { | ||
_ctrl = [[findDisplay]] 46 [[displayCtrl]] _i; | _ctrl = [[findDisplay]] 46 [[displayCtrl]] _i; | ||
[[if]] (![[isNull]] _ctrl) then { | [[if]] (![[isNull]] _ctrl) [[then]] { | ||
_ctrls = _ctrls + [[format]] ["IDC: %1, Class Name: %2\n", _i, [[ctrlClassName]] _ctrl]; | _ctrls = _ctrls + [[format]] ["IDC: %1, Class Name: %2\n", _i, [[ctrlClassName]] _ctrl]; | ||
}; | }; |
Revision as of 11:01, 31 August 2014
Description
- Description:
- Returns the class name of a control as it defined in config.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
- List class names of all controls present on display 46:
_ctrls = ""; for "_i" from -1 to 10000 do { with uiNamespace do { _ctrl = findDisplay 46 displayCtrl _i; if (!isNull _ctrl) then { _ctrls = _ctrls + format ["IDC: %1, Class Name: %2\n", _i, ctrlClassName _ctrl]; }; }; }; hint _ctrls;
Additional Information
- See also:
- ctrlCreatectrlDeletectrlSetDirectionctrlModelctrlSetModelctrlModelDirectionctrlModelUpctrlModelSidectrlPositionctrlSetPosition
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