awesome. Does it fix the minor civ to writing "you declared war on us" bug?
Major change is the inclusion of the Civ4lerts component which will warn you of pending issues in your cities.
jdog,
i have a fire icon for your revolution button, but i couldn't find where the game gets the fist. Is it the one on GameFont.tga or is there another source for the buttons?
# < Revolution Mod Start >
# Appears name must have a one at the end to register mouseover events ...
if (revConfig.getboolean("Revolution", "WatchButtonInLine", False)):
screen.setImageButton("RevWatchButton1", "Art/Interface/Buttons/Highscores/RevolutionButton.dds", xResolution - 277 - 25, 27, 28, 28, WidgetTypes.WIDGET_GENERAL, -1, -1 )
else :
screen.setImageButton("RevWatchButton1", "Art/Interface/Buttons/Highscores/RevolutionButton.dds", xResolution - 28, 56, 28, 28, WidgetTypes.WIDGET_GENERAL, -1, -1 )
#screen.setStyle( "RevWatchButton1", "Button_HUDAdvisorVictory_Style" )
screen.hide( "RevWatchButton1" )
# < Revolution Mod End >
I don't really know the answer to that ... I just mimicked the code for the Victory advisor button, which passes "Button_HUDAdvisorVictory_Style" to CyGInferfaceScreen as the style for the button. This class isn't in the SDK, so I can't look up how it works internally ...
I got the idea for the button and how to place it from the Unit Statistics mod, which has it's own custom button icon. One way to go would be to copy what they did, which is basically just place the DDS somewhere in the art folder and then change lines 157-165 of CvMainInterface.py to:
Spoiler :
# < Revolution Mod Start >
# Appears name must have a one at the end to register mouseover events ...
if (revConfig.getboolean("Revolution", "WatchButtonInLine", False)):
screen.setImageButton("RevWatchButton1", "Art/Interface/Buttons/Highscores/RevolutionButton.dds", xResolution - 277 - 25, 27, 28, 28, WidgetTypes.WIDGET_GENERAL, -1, -1 )
else :
screen.setImageButton("RevWatchButton1", "Art/Interface/Buttons/Highscores/RevolutionButton.dds", xResolution - 28, 56, 28, 28, WidgetTypes.WIDGET_GENERAL, -1, -1 )
#screen.setStyle( "RevWatchButton1", "Button_HUDAdvisorVictory_Style" )
screen.hide( "RevWatchButton1" )
# < Revolution Mod End >
in case you want to try it out.
# < Revolution Mod Start >
# Appears name must have a one at the end to register mouseover events ...
screen.setImageButton("RevWatchButton1", "Art/Interface/Buttons/revbtn.dds", xResolution - 28, 56, 28, 28, WidgetTypes.WIDGET_GENERAL, -1, -1 )
screen.setStyle( "RevWatchButton1", "Button_HUDAdvisorVictory_Style" )
screen.hide( "RevWatchButton1" )
# < Revolution Mod End >