MessageAll
by Tim Heldna · in Torque Game Engine · 09/01/2006 (10:21 am) · 7 replies
Hi,
I'd be extremely greatful if someone could tell me where:
- MsgClientKilled
- MsgClientJoin
- MsgObjective
And so on are defined. I want to change the default colours for these different types of messages. I always thought they were defined in defaultGameProfiles.cs but it appears I was mistaken.
Thanks.
- Tim.
I'd be extremely greatful if someone could tell me where:
- MsgClientKilled
- MsgClientJoin
- MsgObjective
And so on are defined. I want to change the default colours for these different types of messages. I always thought they were defined in defaultGameProfiles.cs but it appears I was mistaken.
Thanks.
- Tim.
About the author
#2
Just to clarify, I know I can change font colours with this in defaultGameProfiles.cs:
What I want to know is, where does it define MsgClientJoin = fontColors[1] etc?
09/01/2006 (10:33 am)
I tried Find in Files. Just to clarify, I know I can change font colours with this in defaultGameProfiles.cs:
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;
};What I want to know is, where does it define MsgClientJoin = fontColors[1] etc?
#3
ex:
'/c1Player has entered the game'
09/01/2006 (10:35 am)
I believe it is done using color codes: /c1 = fontColors[1] ex:
'/c1Player has entered the game'
#4
09/01/2006 (10:38 am)
Well, too late :)
#5
09/01/2006 (10:45 am)
Of course, ok thank you.
#6
09/01/2006 (11:24 am)
FYI, those commands are in the /common directory (common to any project, therefore in...common!). That's probably why they didn't get found with a find in files--most people forget about that directory.
#7
To be honest I still can't find where all the message types (%msgType) are actually stored.
Edit:
Don't mind me, I worked it out. Please forgive my stupidity =)
09/01/2006 (11:44 am)
No I searched my whole project, perhaps I was just using the wrong search words.To be honest I still can't find where all the message types (%msgType) are actually stored.
Edit:
Don't mind me, I worked it out. Please forgive my stupidity =)
Torque 3D Owner Peter Simard
Default Studio Name