ctrlStyle: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " |game1= arma3dev |version1= 2.01" to " |game1= arma3 |version1= 2.02") |
Lou Montana (talk | contribs) m (Text replacement - "{{HashLink" to "{{Link") |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.02 | |version1= 2.02 | ||
|arg= | |arg= local | ||
|gr1= GUI Control | |gr1= GUI Control | ||
|descr= Returns the provided control's style. See {{ | |descr= Returns the provided control's style. See {{Link|Arma: GUI Configuration#Control Styles}}. | ||
|s1= [[ctrlStyle]] control | |s1= [[ctrlStyle]] control | ||
|p1= control | |p1= control: [[Control]] | ||
|r1= [[Number]] - see {{ | |r1= [[Number]] - see {{Link|Arma: GUI Configuration#Control Styles}} | ||
|x1= < | |x1= <sqf> | ||
private _ctrlStyle = ctrlStyle _myControl; | |||
private _bitFlags = _ctrlStyle call BIS_fnc_bitflagsToArray; | |||
if (2 in _bitFlags) then | |||
{ | { | ||
hint "This control has centered text!"; | |||
}; | }; | ||
</ | </sqf> | ||
|seealso= [[ctrlType]] [[BIS_fnc_bitflagsToArray]] | |seealso= [[ctrlType]] [[BIS_fnc_bitflagsToArray]] | ||
}} | }} |
Latest revision as of 17:44, 4 January 2023
Description
- Description:
- Returns the provided control's style. See Arma: GUI Configuration - Control Styles.
- Groups:
- GUI Control
Syntax
- Syntax:
- ctrlStyle control
- Parameters:
- control: Control
- Return Value:
- Number - see Arma: GUI Configuration - Control Styles
Examples
- Example 1:
Additional Information
- See also:
- ctrlType BIS_fnc_bitflagsToArray
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