:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::
Do you want to advertise at Project Perfect Mod. Find out how to do it HERE.

The time now is Sun Mar 29, 2020 7:54 am
All times are UTC + 0
 Forum index » Modding Central » Tiberian Sun Editing Forum
Ingame UI - Blue Border
Moderators: Global Moderators, Tiberian Sun Moderators
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
Author Message
Ever_Valiant
Vehicle Drone


Joined: 04 Feb 2017

PostPosted: Fri Mar 13, 2020 6:02 pm    Post subject:  Ingame UI - Blue Border Reply with quote

How does one change the color of the ingame UI Border on objects like the sliders from that ugly blue. I've opened up Lanquage.dll using resource hacker but cannot find any indicators that say this object has a border around it. I checked TI and the borders are removed or changed color but may I ask how?


bordercolor.jpg
 Description:
Screenshot of what I mean.
 Filesize:  198.94 KB
 Viewed:  249 Time(s)

bordercolor.jpg



_________________

Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Fri Mar 13, 2020 7:15 pm    Post subject: Reply with quote

The boarder colours are hardcoded into the tibsun.exe AFAIK.
_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
E1 Elite
Commander


Joined: 28 May 2013

PostPosted: Sat Mar 14, 2020 2:19 am    Post subject: Reply with quote

RGB values (3 bytes) at 0x19138B in game.exe. TS Patches for game.exe.

Back to top
View user's profile Send private message
Ever_Valiant
Vehicle Drone


Joined: 04 Feb 2017

PostPosted: Sat Mar 14, 2020 5:32 pm    Post subject: Reply with quote

Great it worked!

I'm assuming the same goes for the Structure select boxes?
_________________

Back to top
View user's profile Send private message
E1 Elite
Commander


Joined: 28 May 2013

PostPosted: Sun Mar 15, 2020 9:21 am    Post subject: Reply with quote

Structure selection has normal color (white), limpet affected (yellow) and alpha lighting affected color. Palette index (should be unittem.pal etc.) is used for these. Courtesy goes to Tuc0.

0x22B2DC and 0x22C0BB - 0F (default white 15)
0x22B2E8 and 0x22C0C2 - 05 (limpet affected yellow 5)
0x22B2FF and 0x22C0D6 - 0C (inverted for alpha light 12)

Change like, if you want to change the limpet affected color to orange, then use 6 instead of 5.

Edit: There might be a catch in what index values could be used like the code checks for a value being less than -4 for the alpha light change (at 0x22B2F8 and 0x22C0D2 of FC).

Back to top
View user's profile Send private message
Ever_Valiant
Vehicle Drone


Joined: 04 Feb 2017

PostPosted: Sun Mar 15, 2020 4:15 pm    Post subject: Reply with quote

Great!, I was able to change both now and now the game has a much better atmosphere with the correct colors.

Well done with the research Smile


new select box.png
 Description:
 Filesize:  59.47 KB
 Viewed:  98 Time(s)

new select box.png



_________________

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
 Forum index » Modding Central » Tiberian Sun Editing Forum
Jump to:  
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1388s ][ Queries: 14 (0.0142s) ][ Debug on ]