Changing the Text Font Color

Catch-all for all development not having a specific forum.
Post Reply
dingusdangus
Posts: 109
Joined: Sun Nov 23, 2008 4:44 pm
Location: Philadelphia, PA

Post by dingusdangus »

I mentioned in another topic that I have trouble reading the chat text due to vision problems, so I have been trying to solve this problem with mods. I used cortui to get more lines of text, and made the text font larger by editing the font.mdl file. I have two questions about other possible changes.

1) Is there a way to change the text chat colors. The other day someone was screwing around and made their text a neon green color. The color was hideous, but much easier to read. Is there a way to change all text chat color?

2) Is there a way to make the text chat window wider? Or to change the height of the lines that define the text chat?

I posted this in another forum, but was told to post it here instead. Sorry.

Thanks,
Dingus
notjarvis
Posts: 4629
Joined: Tue Jun 03, 2008 11:08 am
Location: Birmingham, UK

Post by notjarvis »

dingusdangus wrote:QUOTE (dingusdangus @ Jan 7 2009, 03:23 AM) 2) Is there a way to make the text chat window wider? Or to change the height of the lines that define the text chat?
I think Madpeople did a mod for the font size to make it easier to read - might be worth Pm ing him for any ideas

MadPeoples Blog entry
dingusdangus
Posts: 109
Joined: Sun Nov 23, 2008 4:44 pm
Location: Philadelphia, PA

Post by dingusdangus »

I actually already spoke with madpeople. He helped me increased the text size. The problem is, while his method increased the font size, it does not iincrease the line height, so if you make the text too big, it starts getting cut off at the top and bottom. I already asked him how to do my requested modifications, and sadly he didnt know.

Thanks though.
madpeople
Posts: 4787
Joined: Tue Dec 16, 2003 8:00 am
Location: England

Post by madpeople »

cortex would be the best to ask i think
dingusdangus
Posts: 109
Joined: Sun Nov 23, 2008 4:44 pm
Location: Philadelphia, PA

Post by dingusdangus »

madpeople wrote:QUOTE (madpeople @ Jan 9 2009, 04:50 AM) cortex would be the best to ask i think
Thanks, I was actually just about to pm you and ask if there was someone specific i should talk to, because this posting thing sure isnt working.
Andon
Posts: 5453
Joined: Sun Jun 03, 2007 8:29 pm
Location: Maryland, USA
Contact:

Post by Andon »

I've meddled with the colors, and in order to change them, it involves a code change. It may be possible to override the 'team chat' colors of the chat window, but again, Cort would be the one to talk to about that

EDIT: Looking through dialog.mdl, it is probably possible to change the colors of things. The issue I'm seeing now is that it seems to be at least very difficult to differentiate between other teams. Let me work on it more and I'll see if I can get something to work.
Last edited by Andon on Fri Jan 09, 2009 9:15 pm, edited 1 time in total.
Image
ImageImage
badpazzword
Posts: 3627
Joined: Thu Jan 12, 2006 8:00 am
Contact:

Post by badpazzword »

The problem with font size, in a nutshell, is that resizing and the Allegiance gfx engine don't go too well together. :sad:
Last edited by badpazzword on Fri Jan 09, 2009 9:19 pm, edited 1 time in total.
Have gaming questions? Get expert answers! Image Image
dingusdangus
Posts: 109
Joined: Sun Nov 23, 2008 4:44 pm
Location: Philadelphia, PA

Post by dingusdangus »

Andon wrote:QUOTE (Andon @ Jan 9 2009, 01:04 PM) I've meddled with the colors, and in order to change them, it involves a code change. It may be possible to override the 'team chat' colors of the chat window, but again, Cort would be the one to talk to about that

EDIT: Looking through dialog.mdl, it is probably possible to change the colors of things. The issue I'm seeing now is that it seems to be at least very difficult to differentiate between other teams. Let me work on it more and I'll see if I can get something to work.
Thanks, your help is very much appreciated. Let me know if you make any progress.
Cortex
Posts: 2578
Joined: Sun Nov 28, 2004 8:00 am
Location: Germany
Contact:

Post by Cortex »

Most fonts and colors can be changed. However, it looks like this isn't the case for the chat window.

The chat is defined through a variable called chatListPane (l. 340 in CortUI's dialog.mdl). It invokes a function called ChatListPane() which seems to construct that section. However, the only parameter is a Point() used to define the size of it. The arguments to that Point() can be used to change the size (and the number of lines seems to be calculated from the size -- or Ksero would never have been able to create that 'more chat' mod which spawned CortUI in the first place). But there's no way to change text colour or style. Probably because the colour depends on the team of the person who said something.

So yeah, I'm afraid changing text colour or style of the chat is only possible through a code change.


-- Cort
Image
This is Sparta. Not spa. — Wurf
Image
Weylin
Posts: 669
Joined: Fri Mar 17, 2006 8:00 am

Post by Weylin »

would changing the display settings like hue and tint of the monitor help at all?
Post Reply