def onWindowActivation(self, argsList): 'Called when the game window activates or deactivates' bActive = argsList[0] if(bActive): EnhancedTechConquest.loadConfigurationData()
def __init__(self, eventManager): eventManager.addEventHandler("cityAcquired", self.onCityAcquired) eventManager.addEventHandler("windowActivation", self.onWindowActivation) EnhancedTechConquest.loadConfigurationData()
def onWindowActivation(self, argsList): bActive = argsList[0] if bActive: EnhancedTechConquest.loadConfigurationData()