How to change color of infobar

T.c.w7468

...
Joined
Jan 23, 2008
Messages
88
Location
US
I was wondering how to change the color of the population side of the city information bar so that for your own cities, it displays your civ color (like the other civs) rather than the population growth status indicator colors (red, white, green).
 
Yeah, I worded that kind of badly...

It's the little thing that appears over all cities that has the population bar on top and production bar on bottom, as well as what is being produced on the right and the current population on the left. I was wondering how to change the color of the circle (or star if capital) on the left so that it reflects your civ color, not pale red/white/pale green.
 
There was a mod which increased the size of the city bar. If you could find that it may help. I can't find it to provide a link.
 
Hm... I did compare the original CvMainInterface to Rhye's and Fall's, because I found that mod actually designs the bar it the way that I want it to, but I can't find the specific code that determines that variable.
 
The colors of these things are controlled in the DLL (and displayed by the executable, not in the Python for the interface - these functions are not even exposed to Python). The object itself is called the city billboard. (I have no idea how the mod that makes these bigger works... It may be a purely graphical change, in which case it would just be modified art files.)

The colors are set in CvCity::getCityBillboardSizeIconColors. In regular BtS it uses the growing/stagnant/shrinking color for the background and black for the text if it is owned by the team of the player who is looking at it, and the civ's primary color for the background and secondary color for the text otherwise. So to make it use civ color for the player, you'd just wipe out the whole "if" check for the city owner's team being the active team and just go with what is in the "else" block of that code. And then recompile the DLL, of course.
 
Back
Top Bottom