Game Development Community

Changing font color for chat hud, controls?

by Howard Liu · in Torque Game Engine · 10/21/2001 (2:39 am) · 1 replies

How do you change the color of the font in the chat hud, and the controls? The default colors are really unreadable, especially since I'm trying to work on a white background. I can change the background image of the chat window, but it's still translucent enough to cause problems. I tried Labrat's modified chat GUI, but it doesn't seem to work with my build (crashes the game due to not being able to render the bitmap array, or something like that).

Also, how do the matches work? I kind of assumed that they would change to the color specified in the matchColor fields if it corresponded to an element in the allowedMatch array, but this doesn't seem to be the case. "http barglefargle" doesn't change color, but "http://barglefargle" does. In fact, it seems to be linked to :// more than anything else. Am I looking in the wrong place?

Thanks for any help.

#1
10/22/2001 (9:15 am)
Fonts and colors are set in Gui profiles. The profiles for all the default controls are in fps/common/scripts/defaultProfile.cs (Release 1.1), for SDK 1.0, I believe they are in base/scripts/defaultProfiles.cs.

The game ones (mainly the hud) are in fps/client/ui/defaultGameProfiles.cs or for SDK 1.0, client/ui/defaultGameProfiles.cs.