Ulysses

General => Developers Corner => Topic started by: Jethro on July 20, 2007, 04:59:40 AM

Title: Change the Admin writing to red.
Post by: Jethro on July 20, 2007, 04:59:40 AM
Hi,
I have ULX "3.11" & ULIB "2.05".
I have been looking for ages to see where I can change the color of the Admin writing to Red when say:
@@ Message.

Can anyone help me?
Title: Re: Change the Admin writing to red.
Post by: atomicspark on July 20, 2007, 07:31:23 AM
UTeam allows a lot of customization as far as groups go. It's your best bet.

http://forums.ulyssesmod.net/index.php/topic,663.0.html (http://forums.ulyssesmod.net/index.php/topic,663.0.html)
Title: Re: Change the Admin writing to red.
Post by: Megiddo on July 20, 2007, 07:47:23 AM
What the crap are you talking about spark?

Jethro, you can specify the color by passing extra parameters to ULib.csay from the ULX command callback.
Title: Re: Change the Admin writing to red.
Post by: spbogie on July 20, 2007, 07:55:04 AM
@@ is tsay, in which case there is no way to change it. The color of these messages is defined in the game engine and can not be changed.
Title: Re: Change the Admin writing to red.
Post by: atomicspark on July 20, 2007, 08:44:05 AM
Haha. I fail. I thought you meant chat color. Sorry.

/me is embarrassed
Title: Re: Change the Admin writing to red.
Post by: Megiddo on July 20, 2007, 10:58:46 AM
@@ is tsay, in which case there is no way to change it. The color of these messages is defined in the game engine and can not be changed.

Wrong spbogie, we're drawing it ourself. :)
Title: Re: Change the Admin writing to red.
Post by: atomicspark on July 20, 2007, 11:07:53 AM
Interesting. Now I'm interested in this myself. Megiddo, give an example of how one would go about doing this.

Is it "ulx tsay 255 0 0 255" for red (red green blue alpha)?
Title: Re: Change the Admin writing to red.
Post by: spbogie on July 20, 2007, 12:04:52 PM
Wrong Megiddo, we draw csay ourselves, but tsay just calls ply:ChatPrint().
@ = asay
@@ = tsay
@@@ = csay
Title: Re: Change the Admin writing to red.
Post by: Megiddo on July 20, 2007, 01:21:45 PM
Oops, dunno why I assumed csay. Spbogie is right then, it's done by the engine and we don't have any control over it.
Title: Re: Change the Admin writing to red.
Post by: JamminR on July 20, 2007, 05:59:14 PM
Wow.
Scary. Flashback to http://forums.ulyssesmod.net/index.php/topic,1039.0.html
:P

Jethro,
 There is no current way in ULX to adjust the color of @@ (aka tsay) messages
Title: Re: Change the Admin writing to red.
Post by: Jethro on July 21, 2007, 04:00:34 AM
Ok, Thank You very much for all your help ist been driving me cracy looking for all the files seeing how to change the color to red =).
Do you think it will be in the next version or do I have to go and do this in the Suggestions part of the forum?
Title: Re: Change the Admin writing to red.
Post by: JamminR on July 21, 2007, 09:53:57 AM
Jethro,
 There is no way to change the text color. This is a limitation of Source, not gmod or ULX.
Title: Re: Change the Admin writing to red.
Post by: Megiddo on July 21, 2007, 11:43:50 AM
Jethro,
 There is no way to change the text color. This is a limitation of Source, not gmod or ULX.

We could change the color but we'd have to do something like what Conna did with CEmote, completely override the entire chatbox. Not an elegant solution for this problem. :)

So, in short: We can't do this feature and we will never be able to unless garry changes it himself. (And no, we're not going to go with the CEmote idea)
Title: Re: Change the Admin writing to red.
Post by: Neico on September 22, 2007, 12:31:57 PM
hm maybe ill include a custom chat window that looks the same as the standard one execpt draw with derma into my skin im making for ulx would be a good idea :P