Adding the round buttons

Its been a long time since I did any modding for this game, but if I remember correctly...

The round buttons were for the city bar (to show what the city was producing).
I believe the game automatically adjust the square one into the circle.

On the citybar, yes, but not in the above scenario... when I select one of my new units and drag the cursor offscreen, I get a pink circle, rather than an adjusted button.
 
Don't forget that the square button must be exactly 64x64 otherwise it can turn pink and cause CTDs when you try and build the unit.
 
Here's the problem in pictures:
YjPLbY5.jpg

It likes this, in the select-unit screen.

C8E7viY.jpg

It likes this, in the city bar.

LvD2FVc.jpg

It likes this, in the stack view.

MLSsKI1.jpg

But it does not, for some reason, like this.
 
The entries in CIV4ArtDefines_Unit.xml for vanilla units contains two paths for buttons
Code:
<Button>[COLOR="Red"],[/COLOR]Art/Interface/Buttons/Units/Frigate.dds[COLOR="Red"],[/COLOR]Art/Interface/Buttons/Unit_Resource_Atlas.dds,2,9</Button>
these are called a comma-separated values (CSV), note the commas highlighted in Red. If you want to use a button that can only be found in Art/Interface/Buttons you add a single path to it and drop the comma's
Code:
<Button>Art/Interface/Buttons/Units/Manowar.dds</Button>
if you leave the comma you will get the problem you describe.

Reason for this: the game will use the Atlas as preference, if there is a comma in your entry it will look for the atlas button to place in the bubble, if there is no Atlas entry it will be pink.
 
Back
Top Bottom