Message text color

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Message text color

Post 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?
501st_commander
Master Bounty Hunter
Master Bounty Hunter
Posts: 1570
Joined: Wed Dec 10, 2008 7:48 pm

Re: Message text color

Post 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.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Message text color

Post by Teancum »

That's all covered in the HUD files, which are munged to ingame.lvl
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Message text color

Post 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.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Message text color

Post by Teancum »

Not that I know of. You can't directly access the HUD files through lua.
Post Reply