ctrlSetTextColor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - ">Posted on March ([0-9]{1})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-03-0$1")
m (Text replacement - ">Posted on April ([0-9]{2})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-04-$1")
Line 39: Line 39:


<dt></dt>
<dt></dt>
<dd class="notedate">Posted on April 10, 2015 - 06:47 (UTC)</dd>
<dd class="notedate">Posted on 2015-04-10 - 06:47 (UTC)</dd>
<dt class="note">[[User:Fight9|Fight9]]</dt>
<dt class="note">[[User:Fight9|Fight9]]</dt>
<dd class="note">
<dd class="note">

Revision as of 23:07, 13 May 2023

Hover & click on the images for description

Description

Description:
Sets text color of given control. Color is in format Color (RGBA). As of Arma 3 v1.40 this command can also be used to change fill-color of a CT_PROGRESS control.
Also try ctrlSetForegroundColor, if this command doesn't have the desired effect.
Groups:
GUI Control

Syntax

Syntax:
control ctrlSetTextColor color
Parameters:
control: Control
color: Array
Return Value:
Nothing

Examples

Example 1:
_control ctrlSetTextColor [1, 0, 0, 1];

Additional Information

See also:
ctrlSetForegroundColor ctrlTextColor 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


Posted on 2015-04-10 - 06:47 (UTC)
Fight9
When used on a CT_PROGRESS control, remove the configured "texture" first. The two will affect each other. - Arma 3 v1.42
Posted on 2018-03-04 - 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];