Game Development Community

Color values of \c(n)

by Kiyaku · in Torque Game Engine · 09/05/2008 (1:17 am) · 2 replies

Hi,
how can i see the color values of the \c0 - \c9 escape sequence?
And even more important, how can i change them so i can use my own color values?

Thanks in advance!

#1
09/05/2008 (4:44 am)
I never could figure that out . . . I think they are hard coded . . . .
But if you are using a MLText control you can use the Torque Markup Language
#2
09/05/2008 (5:24 am)
I thinki found them:

new GuiControlProfile ("ChatHudMessageProfile")
{
   fontType = "Arial";
   fontSize = 16;
   fontColor = "44 172 181";      // default color (death msgs, scoring, inventory)
   fontColors[1] = "4 235 105";   // client join/drop, tournament mode
   fontColors[2] = "219 200 128"; // gameplay, admin/voting, pack/deployable
   fontColors[3] = "77 253 95";   // team chat, spam protection message, client tasks
   fontColors[4] = "40 231 240";  // global chat
   fontColors[5] = "200 200 50 200";  // used in single player game
   // WARNING! Colors 6-9 are reserved for name coloring 
   autoSizeWidth = true;
   autoSizeHeight = true;
};

This works for me. It is located in "scriptsAnsAssets/client/ui/defaultGameProfiles.cs" (for tgea at least).