ctrlSetBackgroundColor: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)\]\]" to "{{GameCategory|arma2|Scripting Commands}}") |
m (Description format and missing ; in example) |
||
Line 9: | Line 9: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Sets background color of given control. Only affects [[CT_COMBO]] | | Sets background color of given control. Only affects: | ||
{{ | * [[CT_COMBO]] | ||
* [[CT_STATIC]] | |||
* [[CT_STRUCTURED_TEXT]] | |||
* [[CT_MAP]] | |||
* [[CT_MAP_MAIN]] | |||
* [[CT_BUTTON]] {{since|arma3|2.01}} | |||
* [[CT_SHORTCUTBUTTON]] {{since|arma3|2.01}} | |||
* [[CT_ACTIVETEXT]] {{since|arma3|2.01}} |DESCRIPTION= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 22: | Line 29: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_control [[ctrlSetBackgroundColor]] [1, 0, 0, 1]</code> |EXAMPLE1= | |x1= <code>_control [[ctrlSetBackgroundColor]] [1, 0, 0, 1];</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 18:53, 11 January 2021
Description
- Description:
- Sets background color of given control. Only affects:
- Groups:
- GUI Control
Syntax
- Syntax:
- control ctrlSetBackgroundColor color
- Parameters:
- control: Control
- color: Array (format Color (RGBA))
- Return Value:
- Nothing
Examples
- Example 1:
_control ctrlSetBackgroundColor [1, 0, 0, 1];
Additional Information
- See also:
- allControlsallDisplayscontrolsGroupCtrlctrlDeletectrlModelctrlSetModelctrlPositionctrlSetPositionctrlClassNamectrlModelScalectrlSetModelScalectrlModelDirAndUpctrlSetModelDirAndUpdisplayParent
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