Help changing ui textures

Have modding questions or discovered something new? Post here.
Post Reply
User avatar
FlamingC64
Machine Gunner
Machine Gunner
Posts: 24
Joined: Mon Jan 17, 2022 9:40 am
United States of America

Help changing ui textures

Post by FlamingC64 »

I was wondering if you guys knew were the graphics for the build selection bar (not the icons) and the boarder around the map are located?
User avatar
TommyCD1
Moderator
Moderator
Posts: 1146
Joined: Tue Jun 04, 2013 8:55 am
Location: East Coast
Contact:
United States of America

Re: Help changing ui textures

Post by TommyCD1 »

The actual texture file for them is in the ingame.x archive in the files if_interface_game.tga and if_interfacealpha_game.tga.

But keep in mind the way this game draws the interface isn't as straight forward as "take this texture file and apply it". Instead the texture file contains every possible "part" that an interface element could want to draw with, and then it defines exactly which portion of the file it wants for what purpose.

So for example, in the if_interfacealpha_game.tga file IIRC, in the bottom left there is a transparent rounded square with four corner rivets. Since an element can be drawn in any arbitrary size, instead of the game asking for, say, this entire 64x64 chunk of the texture, instead it defines each individual element. So the top left corner would be at (XX, XX) offset of the image, and XX by XX pixels in size. And it would do so again for the three following corners, and also for the four edges between those corners.

It is rather hard to explain without a reference for me to use, so I hope this is sufficient an explanation?
I may not make the best maps, or be the best player, but I put a lot of time, effort, and care into my stuff. That counts for something, right? No.
Image
"Can we order a pizza?"
GameRanger ID: 913974
User avatar
FlamingC64
Machine Gunner
Machine Gunner
Posts: 24
Joined: Mon Jan 17, 2022 9:40 am
United States of America

Re: Help changing ui textures

Post by FlamingC64 »

This was very helpful. Thank you so much for the explanation.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest