Page 1 of 1
Message text color
Posted: Wed Sep 08, 2010 5:58 pm
by Fiodis
When you kill an enemy, a message shows up in red. When you gain an award weapon or use ShowMessageText, text shows up in yellow. When you get an award like War Hero, text shows up in cyan.
So my question is: can you output text like ShowMessageText does, but vary the color? Or, can you change the color in any way? Or is this hardcoded?
Re: Message text color
Posted: Wed Sep 08, 2010 6:09 pm
by 501st_commander
My guess would be hardcoded (last time i said that i was wrong

). The reason is (saying this as a beginner programmer) the text colors would be predefined in whatever they use to show message text. Then when it has the variable of what type the message is, it highlights the message before it "posts" it. So, if there is a way to do it at all, it
may be thought a lua.
Re: Message text color
Posted: Wed Sep 08, 2010 8:15 pm
by Teancum
That's all covered in the HUD files, which are munged to ingame.lvl
Re: Message text color
Posted: Thu Sep 09, 2010 8:40 am
by Fiodis
I see - is there any way to change it per message? I want to spawn a few lines of text and be able to have them in different colors, not just one color throughout the entire map.
Re: Message text color
Posted: Thu Sep 09, 2010 10:57 am
by Teancum
Not that I know of. You can't directly access the HUD files through lua.