[Vanilla] How to add a new screen in the main screen?

Paolo80

Chieftain
Joined
Dec 20, 2019
Messages
85
Hi guys,

I would want to add a new screen in the main screen, similar the score screen, as for example city target screen in the Desert War scenario.

I read the "Add new screens to CIV4" and "Display a blank CIV4 screen" guides, but the result is not what I want.

In particular I would want to set the new screen always visible with trasparent background, and to update the text in real time. For example I would want to show a screen with total units for the human player, divided by type (10 archers, 5 swordsmen...).

How can I do?

Thank you
 
You basically want to edit the main interface, which is primarily implemented in CvMainInterface.py (warning, large). You can go about adding an element there as you would elsewhere, i.e. create a widget and write the code that fills it with content. My suggestion would be to find the interface element that is most similar to what you have in mind, and start by copying it. Then you can tweak it to be closer to your intentions.
 
Top Bottom