PDA

View Full Version : setting color (colour) of a TextWidget



Mainframemouse
August 6th, 2007, 12:59
I'm re-attempting my SLA Ruleset and would like to know how to set the colour of a TextWidget?

joshuha
August 6th, 2007, 15:38
Do you mean modifying the color of the text itself?

You can't really do this without declaring a new font with the new color you want to use. As far as I know, the fonts can't be created at runtime but its easy to modify as the color tag changes the RGB value of the font. Just look in the bmpfonts.xml file.

Mainframemouse
August 7th, 2007, 08:23
FANTASTIC!

Exactly what i was looking for. Thanks