Text Color Codes & Object Rendering

Overview

Colors are defined in display.text.

Each color is defined by a single letter. &<code> means to set the foreground color, ^<code> means to set the background color.

Only the preset letter codes are allowed, adding new colors isn't totally trivial at the moment.

CodeColor
rdark red
Rbright red
w

brown

Wyellow
cdark cyan
Cbright cyan
bdark blue
Bbright blue
gdark green
Gbright green
mdark magenta
Mbright magenta
ybright grey
Ywhite
kblack
Kdark grey
PrefixTextXml
Foreground&<code>&amp;<code>
Background^<code>^<code>

Render Part

ColorString contains the foreground and background string for the ascii and tiles.

DetailColor changes the "third" color used only for tiles, not the ascii.

So ColorString="&M^g" would be foreground bright magenta with a background color of gree.

TileColor overrides ColorString when tiles are being used.

Detail color takes just a single character.

If you want to color the display name, you enter color codes directly in the display name itself, for example the beaded bracelet:

<part Name="Render" DisplayName="&amp;Cb&amp;Be&amp;ba&amp;cd&amp;Ce&amp;Bd&amp;y bracelet" ColorString="&amp;C"></part>