Arma 3 Scripting

ctrlSetTextColor

  • Arma 3 v0.50
  • First in Armed Assault v1.00

Command · Markdown · JSON · original wiki page

Description

Sets text color of given control. As of Arma 3 v1.40 this command can also be used to change fill-color of a CT_PROGRESS control.

Note

Also try ctrlSetForegroundColor, if this command doesn't have the desired effect.

Syntax

control ctrlSetTextColor color

Parameters:

Returns: Nothing

Examples

Example 1

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

See also

ctrlSetForegroundColor · ctrlTextColor · ctrlSetText

Community notes

Fight9

When used on a CT_PROGRESS control, remove the configured "texture" first. The two will affect each other. - Arma 3 v1.42

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];