Your own GUI Color Codes
by Sebastien Bourgon · 03/18/2003 (2:56 pm) · 1 comments
If your looking to add colors to your GUI items, you can do 1 of 2 things.
You could set the font colors in the GUIDefaultProfile (or whatever GUI profile you happen to be using) using this
If your someone who would rather not mess around with the defaults like myself, so I can port my scripts to other games without a hassle, your other option is to create your own profile and put the font colors in that. Best bet would be to copy the profile your using now, change its name, and add the colors.
If you are looking to change the Console coloring for echos. The profile is GuiConsoleProfile It has some fontColors set already but you can add more.
Heres your little copy and paste part so you'll have an easy time checking what your colors are:
I hope this is useful to anyone who reads it
You could set the font colors in the GUIDefaultProfile (or whatever GUI profile you happen to be using) using this
fontColors[1] = "150 50 50"; // Dark Red fontColors[2] = "50 150 50"; // Dark Green ...There is a maxColor set to 9 by default. So fontColors will work for 1 through 9.
If your someone who would rather not mess around with the defaults like myself, so I can port my scripts to other games without a hassle, your other option is to create your own profile and put the font colors in that. Best bet would be to copy the profile your using now, change its name, and add the colors.
If you are looking to change the Console coloring for echos. The profile is GuiConsoleProfile It has some fontColors set already but you can add more.
Heres your little copy and paste part so you'll have an easy time checking what your colors are:
echo("\c0test \c1test \c2test \c3test \c4test \c5test \c6test \c7test \c8test \c9test");I hope this is useful to anyone who reads it
About the author
Former Indie Game Developer for Max Gaming Technologies. I then spent a couple years doing mobile work for Capcom Interactive Canada, the highlight being Mega Man II for iPhone. Now doing various mobile contract jobs (mostly iPhone)

Torque Owner Philip Bloom