ctrlSetTextColor: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *arma1 * * *\| *([0-1]\.[0-9]{2}) * \|game2" to "|game1= arma1 |version1= $1 |game2") |
Lou Montana (talk | contribs) m (Text replacement - "{{Feature|Informative|" to "{{Feature|informative|") |
||
(12 intermediate revisions by 3 users not shown) | |||
Line 20: | Line 20: | ||
|descr= 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. | |descr= 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. | ||
|s1= | {{Feature|informative|Also try [[ctrlSetForegroundColor]], if this command doesn't have the desired effect.}} | ||
|s1= control [[ctrlSetTextColor]] color | |||
|p1= control: [[Control]] | |p1= control: [[Control]] | ||
Line 26: | Line 28: | ||
|p2= color: [[Array]] | |p2= color: [[Array]] | ||
|r1=[[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>_control ctrlSetTextColor [1, 0, 0, 1];</sqf> | ||
|seealso= [[ctrlTextColor]] | |seealso= [[ctrlSetForegroundColor]] [[ctrlTextColor]] [[ctrlSetText]] | ||
}} | }} | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<dt></dt> | <dt></dt> | ||
<dd class="notedate">Posted on | <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"> | ||
Line 47: | Line 46: | ||
<dt><dt> | <dt><dt> | ||
<dd class="notedate">Posted on | <dd class="notedate">Posted on 2018-03-04 - 22:57 (UTC)</dd> | ||
<dt class="note">[[User:feint|feint]]</dt> | <dt class="note">[[User:feint|feint]]</dt> | ||
<dd class="note"> | <dd class="note"> | ||
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]; | 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]; | ||
</dd> | </dd> | ||
</dl> | </dl> |
Latest revision as of 00:26, 2 February 2024
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:
- 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];
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: GUI Control