-
Notifications
You must be signed in to change notification settings - Fork 92
TextColor
The game allows to color any text (except players name in multiplayer) with the following tag: [$BBGGRR]
where BB
is hex value for blue component, GG
- hex for green and RR
hex for red. []
ends the color and reverts to default white.
For example: [$FF00FF]One [$00FF0F]Two [$808080]Three[] Four
will print One in violet, Two in yellow, Three in grey and Four in default white color.
Text coloring is commonly used in multiplayer server names (list in lobby), multiplayer server greetings. However one can you use to say colored chat messages or mission texts.
Note that text coloring works multiplicatively, so if you take font which is yellow (for example Outline.fnt
) and apply [$FF0000]
to a text rendered with it, it will look black, because original font has no blue component in it.