Kiekos
Member
|
Text Style - font color
Hey there!
It's a stupid question, but... how do I change the font color in the chat box that's included in the MMO Source? I'd like to have different font colors for different types of messages (proximity, shout, group, etc).
I've been trying to load it in many different ways and it always stays white...
Cheers,
Kiekos
|
|
03-20-2014 11:53 PM |
|
Dwight
Member
|
RE: Text Style - font color
Did you load a new text style, or did you try and change it through code?
You will notice that in the MMO, there is the "white", "white small", "white small left" etc, text styles. I believe for the chat, it uses the standard white small one.
|
|
03-21-2014 12:02 AM |
|
Kiekos
Member
|
RE: Text Style - font color
I've tried both - changing through code with Gui.ts_text.color=GREEN; as well as creating new text styles such as "green.txds" or "green small.txds" and loading them before drawing the message by calling both Gui.ts_text.load(path); and ts.load(path); (if I remember correctly) with absolutely no effects... Still white as it was.
|
|
03-21-2014 12:42 AM |
|
Dwight
Member
|
RE: Text Style - font color
Client->Messages [lines 27-38]
Code:
ChatMessages& create()
{
super.create();
margin=0.01;
ts.reset();
ts.scale=0.05;
ts.align.set(1, -1);
return T;
}
In here, you can set something like:
I checked this, and it turns the whole message, including username, red.
|
|
03-21-2014 10:31 AM |
|
Kiekos
Member
|
RE: Text Style - font color
Hmm, funny thing. I've tried doing ts.load(path); exactly over there and it didn't work. I'll try changing color like that when I get home, thanks!
Yep, that works! Thanks a lot, Dwight! Right now I will only have to rewrite some sending functions to get everything working as I wanted it to, but that's what I needed.
(This post was last modified: 03-21-2014 05:00 PM by Kiekos.)
|
|
03-21-2014 12:02 PM |
|