ctrlSetTextColor: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (template:command argument fix) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Sets text color of given control. Color is in format [[Color]]. As of Arma 3 v1.40 this command could also be used to change fill colour or the [[DialogControls-ProgressBar]].|= | | Sets text color of given control. Color is in format [[Color]]. As of Arma 3 v1.40 this command could also be used to change fill colour or the [[DialogControls-ProgressBar]].|DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| display '''ctrlSetTextColor''' color |= | | display '''ctrlSetTextColor''' color |SYNTAX= | ||
|p1= display: [[Control]] |= | |p1= display: [[Control]] |PARAMETER1= | ||
|p2= color: [[Array]] |= | |p2= color: [[Array]] |PARAMETER2= | ||
| [[Nothing]] |= | | [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_control [[ctrlSetTextColor]] [1, 0, 0, 1]</code> |= | |x1= <code>_control [[ctrlSetTextColor]] [1, 0, 0, 1]</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|[[ctrlSetText]] |= | |[[ctrlSetText]] |SEEALSO= | ||
}} | }} |
Revision as of 14:37, 7 April 2019
Description
- Description:
- Sets text color of given control. Color is in format Color. As of Arma 3 v1.40 this command could also be used to change fill colour or the DialogControls-ProgressBar.
- Groups:
- Uncategorised
Syntax
- Syntax:
- display ctrlSetTextColor color
- Parameters:
- display: Control
- color: Array
- Return Value:
- Nothing
Examples
- Example 1:
_control ctrlSetTextColor [1, 0, 0, 1]
Additional Information
- See also:
- ctrlSetText
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
Notes
Bottom Section
- Posted on April 10, 2015 - 06:47 (UTC)
- Fight9
- When used on a RscProgress control, remove the configured "texture" first. The two will affect each other. - Arma 3 v1.42
- Posted on March 4, 2018 - 22:57 (UTC)
- feint
- This command can be used to change the color of the light that is illuminating a texture in a display. By default, textures are lit with white light at 100% [1,1,1,1];