Edit;
Gimp or a
png to tga converter can help with this.
============================================
i'm guessing you want to make both unit images [the one you see when you select a unit] and button images.
Unit images must be 122x98 [WidthxHeith] and button images must be 62x50.
All of your images must be combined into one big image. Look at one of the sauserinterface512 images in Textures in the original Generals files to see what i mean.
This big image containing your images has to be .tga, and is stored in the same directory as the other texture images are. The name of your big image must always end with '512'. From looking at the game files, i think you can add '_xxx' [x's are numbers] to the end, but i haven't tested this.
============================================
But how do we use our images if they're all trapped in one mega-image?
MappedImages INIs.
============================================
Mapped Image INIs have entries that point to your unit and button images.
They must be named the same as the big image they are used on, minus the _xxx if you add that.
The Mapped Image INIs are in this directory;
'Data\INI\MappedImages\TextureSize_512\YourImage512.INI'
You might want to make your big image oversized, so you can add more images later.
You don't need borders like the game's big images have, those are optional.
Here is an entry from SAUserInterface512.INI.
Code:MappedImage SAChinook_L
Texture = SAUserInterface512_001.tga
TextureWidth = 512
TextureHeight = 512
Coords = Left:367 Top:393 Right:487 Bottom:489
Status = NONE
End
'MappedImage SAChinook_L' is what the Chinook wants, and it's what he's gonna get. You can name your MappedImage anything you want.
'Texture = SAUserInterface512_001.tga' is what big image we need to look at.
Texture Width and Height is size of our big image. It must be the size of the image, not always just 512.
'Coords =...' says where the borders of our image are in the big image. The Top and Bottom are measured down from the top, and the sides are measured from the left.
'Status = NONE' No clue what this does.
============================================
So that's basically it.
1.Make your unit images and button images
2.Put your images into one big image. The more organized the better. Must be .tga
3.Make a new MappedImage INI for your new big image and add entries.
4.Make your unit use your new images, change SelectPortrait and ButtonImage entries
5.Enjoy!
Edited by user Thursday, August 28, 2014 11:00:36 PM(UTC)
| Reason: Not specified