ctrlClassName: Difference between revisions
Jump to navigation
Jump to search
m (template:command argument fix) |
m (template:command argument fix) |
||
Line 8: | Line 8: | ||
| Returns the class name of a [[Control]] as it is defined in config. If you need config class of a game created [[Display]], it is stored on display itself: | | Returns the class name of a [[Control]] as it is defined in config. If you need config class of a game created [[Display]], it is stored on display itself: | ||
<code>_className <nowiki>=</nowiki> [[findDisplay]] 12 [[getVariable]] ["BIS_fnc_initDisplay_configClass", ""]; // "RscDiary"</code> |= | <code>_className <nowiki>=</nowiki> [[findDisplay]] 12 [[getVariable]] ["BIS_fnc_initDisplay_configClass", ""]; // "RscDiary"</code> |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| '''ctrlClassName''' control |= | | '''ctrlClassName''' control |SYNTAX= | ||
|p1= control : [[Control]] |PARAMETER1= | |p1= control : [[Control]] |PARAMETER1= |
Revision as of 14:36, 7 April 2019
Description
- Description:
- Returns the class name of a Control as it is defined in config. If you need config class of a game created Display, it is stored on display itself:
_className = findDisplay 12 getVariable ["BIS_fnc_initDisplay_configClass", ""]; // "RscDiary"
- 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:
- ctrlIDCctrlIDDctrlTypectrlCreatectrlDeletectrlModelctrlSetModelctrlPositionctrlSetPositionctrlModelScalectrlSetModelScalectrlModelDirAndUpctrlSetModelDirAndUp
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