• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

Making very simple buttons (and flags) for dummies

Yes, i do this and i talking about team colour flags, in civilopedia they show me button, but in game they don't show flag. He show yellow color on flag as background. I first configured this way:
Spoiler :
<CivilizationArtInfo>
<Type>ART_DEF_CIVILIZATION_SKAVEN</Type>
<Button>Art/Interface/Buttons/civilizations/skaven_button.dds</Button>
<Path>Art/Interface/TeamColor/skaven_flag.dds</Path>
<bWhiteFlag>0</bWhiteFlag>
</CivilizationArtInfo>

and after this
Spoiler :
<CivilizationArtInfo>
<Type>ART_DEF_CIVILIZATION_SKAVEN</Type>
<Button>Art/Interface/Buttons/civilizations/skaven_button.dds</Button>
<Path>Art/Interface/TeamColor/skaven_flag.dds</Path>
<bWhiteFlag>1</bWhiteFlag>
</CivilizationArtInfo>

and nothing has changed
 
The files look fine for me :dunno:.
Sadly I can't test them ingame, because the fan of my graphics card is broken :sad:.

I'd suggest that you redo the flag. Had once the same problem (funnily it was also yellow), and I never figured out what the reason was :dunno:.
 
I am fix the problem :D my friend show me how to make a flag :) Open skaven_flag.dds in gimp and this white background remove with Eraser Tool in gimp and flag will change color with another civilizations. And one the important thing. Use this settings in CIV4ArtDefines_Civilization.xml for this flag, for some another flag names will be different:
Spoiler :
<CivilizationArtInfo>
<Type>ART_DEF_CIVILIZATION_SKAVEN</Type>
<Button>Art/Interface/Buttons/civilizations/skaven_button.dds</Button>
<Path>Art/Interface/TeamColor/skaven_flag.dds</Path>
<bWhiteFlag>0</bWhiteFlag>
</CivilizationArtInfo>

and use this flag which i attached in this post :)
 

Attachments

I have a question the search couldnt answer... It seems i can make buttons but what i cant do i change the border color. The thing that is most probably happening is that some generic button is overlaying the border and makes it default blueish. Is there a way to override this?
 
This is one of the shots i had. The custom is obvious but this is a 1st version of that button, so the border (red indicator) is pretty much the same. But i want to change that border to something else that (green for example) and it wont allow me. When i tested "no button" for a certain unit action it became entirely magenta with a generic border on it. I assume that the same file (that i cant find) could be responsible for border generic color.
 

Attachments

  • buttons.jpg
    buttons.jpg
    31.2 KB · Views: 196
Ah, now I see what you mean.
But I guess it's not related to the buttons at all, but rather to the interface colour...wait...checking my mod..no, borders also blue...then I guess it might be coded into the interface, so a Python thing. But that's just a guess, and I don't have a specific idea :dunno:.
 
Is there any chance u have some spare time to find out? I have no clue how to do that :S

EDIT: But it is related to buttons! Its part of them that cannot be changed (by me and u so far ;) ).
 
Its all good. If i manage to find it or find someone that could do it for me ill post it here so u might want to update the opening post ;).
 
Back
Top Bottom