Hi, I'm working on a change of the city screen, but I'm stuck with it.
I want to extend the pane that shows the food and hammer boxes. This can in principal be done by modifying CvMainInterface.py
However, when I change
screen.addPanel( "InterfaceTopLeftBackgroundWidget", u"", u"", True, False, 258, 0, xResolution - 516, yResolution-149, PanelStyles.PANEL_STYLE_STANDARD )
the widget does not extend vertically. Instead, it can only shift down or shrink vertically. (Changes in the width or horizontal position are not a problem though.)
If I also change
screen.setStyle( "InterfaceTopLeftBackgroundWidget", "Panel_City_Top_Style")
to use "Panel_Game_HudMap_Style" instead, the widget does extend vertically, just as I would expect; arguments 6 - 9 then are the lop left position and the width and height of the widget.
This lead me to the conclusion that it is the "Panel_City_Top_Style" that prevents the widget from extending vertically. The styles are defined in Civ4Theme_Custom.thm, but if I change the style there, no changes are reflected in the city screen. Neither after reloading the mod.
Does this mean the SDK has to be recompiled, or are there easier methods available?
Thanks for any help
I want to extend the pane that shows the food and hammer boxes. This can in principal be done by modifying CvMainInterface.py
However, when I change
screen.addPanel( "InterfaceTopLeftBackgroundWidget", u"", u"", True, False, 258, 0, xResolution - 516, yResolution-149, PanelStyles.PANEL_STYLE_STANDARD )
the widget does not extend vertically. Instead, it can only shift down or shrink vertically. (Changes in the width or horizontal position are not a problem though.)
If I also change
screen.setStyle( "InterfaceTopLeftBackgroundWidget", "Panel_City_Top_Style")
to use "Panel_Game_HudMap_Style" instead, the widget does extend vertically, just as I would expect; arguments 6 - 9 then are the lop left position and the width and height of the widget.
This lead me to the conclusion that it is the "Panel_City_Top_Style" that prevents the widget from extending vertically. The styles are defined in Civ4Theme_Custom.thm, but if I change the style there, no changes are reflected in the city screen. Neither after reloading the mod.
Does this mean the SDK has to be recompiled, or are there easier methods available?
Thanks for any help
