AddColorMarker

From King Arthur's Gold Wiki
Revision as of 14:03, 20 August 2012 by Shadlington (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This defines a token (e.g. $RED$) for colouring text in menus and suchlike.


It takes a string representing the token to be replaced and a colour (as an SColor) to give the text. Text following the token will be given the colour assigned to the token.

void AddColorToken( const string &token, SColor color )

Example from Scripts/autostart.as:

AddColorToken( "$RED$", SColor(255, 105, 25, 5) );

This colour token means that whenever $RED$ is included in menu text, any following text will be coloured red.