What is the size of a civ's flag as it appears in the game?

Joined
Apr 12, 2008
Messages
2,487
I'm having trouble making a button for a flag and would like to know the exact size of a civ's flag as it appears in Civ4.
 
I'm having trouble making a button for a flag and would like to know the exact size of a civ's flag as it appears in Civ4.

Are you asking about the 64X64, with DXT3?
 
No, I'm not talking about the button. I am talking about the flag itself. You know, the one that appears on the interface?
 
No, Flintlock, I mean how it appears in the interface.
 
I guess you like to know the pixels, but those may be dependend on the resolution. However, I haven't found that information so far although I have dealt with that topic recently. All I can tell you is, that the ratio is of 4 to 3 (at least approx.). Why do you need to know that?
 
I'm making a button out of a flag. I know how to do it so that it's colored right, but I want to know what size the flag should be so that the symbol is in the right proportions.
 
If I got you right, then I'd do the following:
- open the flag file, set the width to 96 pixels and leave the height as it is (ratio of 4 to 3) -> that should be at least close to what it is displayed in civ4
- create a new image with 96x96 pixels and completely "rectangle select" it -> use the selection to copy the necessary parts out of your flag into the new image
- set the size of the new image to 64x64 and proceed with the rest of the button creation

Don't know how big your symbol on the flag is (and of course the flag needs to be non-decal). If it is larger then 96 pixels in your original flag, then you got a problem... But then it is impossible to keep the proportions without editing the original file. You'd need to copy your flag on a larger image... Hmm... first step should be seting the width to 96 pixels again to have it in the right proportions. Create a new mage in 128x128 and set it the same way the background of your flag is (that can be difficult if the background is sort of structured). Copy your complete flag into the new image. With the right tools (from the toolbox) you should be able to get your flag centered. If the symbol is too small in relation to the whole picture, get a squared selection (width and height need to be the same) similarly to what I described above in the last step and use that to copy your symbol out of the flag.

I hope I got you right. If so, this is approx what you should have to do. The procedure is more general as I don't know which program you use for your work. For example some programs support it that you drag and drop a selection from one picture to another (without necessary copying the content of the selection), others don't. Hard to say what tricks you would have to do. However, no need to know the exact pixel size of the flag in-game. It would be hard to measure that anyways as the flag is displayed a bit distorted anyways.

If I don't got you right, my appologies.
 
Back
Top Bottom