Page 1 of 1

Trying to get second chat window to show up on HUD

Posted: Thu Mar 15, 2012 3:06 am
by Zero Angel
I'm working on an 'aircraft style' HUD for BZ2 where it shows as much relevant information about the ship's status, targeting data, etc near the reticule and so far my idea has been to go off of the 'curvy gauges' addon packaged with UEP.

I am trying to get a miniature chat to show up near the center of the screen (last 2 lines of chat), and while I can get the box to render... the chat inside of the box does not show up. I copied the "Messages" control from bzgame_scores.cfg -- tried changing its name, control style, etc. But I can't get it to render the chat.

Anyone know how to get the chat to show up on the bzgame_weapon.cfg file in addition to the normal sized chat box that shows up on bzgame_scores.cfg?

Re: Trying to get second chat window to show up on HUD

Posted: Thu Mar 15, 2012 2:04 pm
by Red Devil
might have to use/point to a different font?

Re: Trying to get second chat window to show up on HUD

Posted: Thu Mar 15, 2012 3:22 pm
by General BlackDragon
The name must be "Messages" most likely.

Certain parts of the UI are hardcoded to the element's name. (MPIOpponant, Recylist, etc) All of the score tables are among them, and I do believe the recent chat window is too.

I don't know if you can have multiple windows with that name, it might only make one of them work.

Re: Trying to get second chat window to show up on HUD

Posted: Thu Mar 15, 2012 6:00 pm
by Zero Angel
Ah. If it's hardcoded to the element name, then that would explain a lot. Thanks.

Re: Trying to get second chat window to show up on HUD

Posted: Thu Mar 15, 2012 10:09 pm
by General BlackDragon
Did it work? :)