ctrlSetTextColor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma1 |Game name=
| arma1


|1.00|Game version=
|1.00


|gr1= GUI Control |GROUP1=
|gr1= GUI Control






| Sets text color of given control. Color is in format [[Color|Color (RGBA)]]. As of Arma 3 v1.40 this command can also be used to change fill-color of a [[CT_PROGRESS]] control.|DESCRIPTION=
| Sets text color of given control. Color is in format [[Color|Color (RGBA)]]. As of Arma 3 v1.40 this command can also be used to change fill-color of a [[CT_PROGRESS]] control.


| control '''ctrlSetTextColor''' color |SYNTAX=
| control '''ctrlSetTextColor''' color


|p1= control: [[Control]] |PARAMETER1=
|p1= control: [[Control]]


|p2= color: [[Array]] |PARAMETER2=
|p2= color: [[Array]]


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]
   
   
|x1= <code>_control [[ctrlSetTextColor]] [1, 0, 0, 1]</code> |EXAMPLE1=
|x1= <code>_control [[ctrlSetTextColor]] [1, 0, 0, 1]</code>


|[[ctrlTextColor]], [[ctrlSetText]] |SEEALSO=
|[[ctrlTextColor]], [[ctrlSetText]]


}}
}}

Revision as of 01:27, 18 January 2021

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.
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:
ctrlTextColorctrlSetText

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

Bottom Section

Posted on April 10, 2015 - 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 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];