-
-
Notifications
You must be signed in to change notification settings - Fork 7
Text style
There are three supported tags for now:
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 normally yellow in game and apply [$FF0000]
to a text rendered with it, it will look black, because original font has no blue component in it.
[s]
- will start the striked out text
[/s]
- will end the striked out text
[u]
- will start the underlined text
[/u]
- will end the underlined text
[]
- will end all styles and revert text to default style