Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

TextColor

Kromster80 edited this page Mar 29, 2015 · 2 revisions

How to color the text in the game

How does it work

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.