# Main Interface Screen
if ( argsList[0] == MAIN_INTERFACE ):
[B][COLOR="Red"]mainInterface.redraw()[/COLOR][/B]
elif ( argsList[0] == WORLDBUILDER_SCREEN ):
worldBuilderScreen.redraw()
elif ( argsList[0] == WORLDBUILDER_DIPLOMACY_SCREEN ):
worldBuilderDiplomacyScreen.redraw()
elif ( argsList[0] == TECH_CHOOSER ):
techChooser.updateTechRecords(true)
# BugUtil.debug("dirty PlotListButtons start - %s %s %s", self.bVanCurrentlyShowing, self.bPLECurrentlyShowing, self.bBUGCurrentlyShowing)
if ( CyInterface().isDirty(InterfaceDirtyBits.SelectionButtons_DIRTY_BIT) == True ):
# Selection Buttons Dirty
[B][COLOR="red"]self.updateSelectionButtons()[/COLOR][/B]
CyInterface().setDirty(InterfaceDirtyBits.SelectionButtons_DIRTY_BIT, False)
if ( CyInterface().isDirty(InterfaceDirtyBits.ResearchButtons_DIRTY_BIT) == True ):
# Research Buttons Dirty
self.updateResearchButtons()
CyInterface().setDirty(InterfaceDirtyBits.ResearchButtons_DIRTY_BIT, False)
if ( CyInterface().isDirty(InterfaceDirtyBits.CitizenButtons_DIRTY_BIT) == True ):
# Citizen Buttons Dirty
if (CyInterface().getInterfaceMode() == InterfaceModeTypes.INTERFACEMODE_SELECTION):
if ( pHeadSelectedUnit.getOwner() == gc.getGame().getActivePlayer() and g_pSelectedUnit != pHeadSelectedUnit ):
g_pSelectedUnit = pHeadSelectedUnit
iCount = 0
[B][COLOR="red"]actions = CyInterface().getActionsToShow()[/COLOR][/B]
for i in actions:
screen.appendMultiListButton( "BottomButtonContainer", gc.getActionInfo(i).getButton(), 0, WidgetTypes.WIDGET_ACTION, i, -1, False )
screen.show( "BottomButtonContainer" )
After a night without sleep, finally I've managed to merged this mod with RevDCM 2.90 (also with BBAI 1.01). I've tested in game and the mod works well, but a problem still persist, the interface for unit actions won't show up.
look at the settler below.
Spoiler :
So, i have to press 'B' to build a city. I enter the city screen, but when I want to exit (Esc) this is happened.
Spoiler :
what might be the cause??
okay, i know that error message, but shouldn't have to do anything with the merge, that's rather a unit problem (not matching .kfm file names).
-> does it happen only with some units, or always, everywhere?
edit2
solved!! misconfiguration in compiling
I've merged the new Advanced Diplomacy features from A New Dawn and plan to release it as an update to Advanced Diplomacy.