As far as i am aware if we miss the text in the corner then we miss the notice! Obviously we can then find a city is no longer to be seen in our map. but it would be alot better were a pop up to occur with perhaps a small bit of sad music , a picture and a noticifcation of these events.
From reading this i can see its very possible and not ot hard? However i have never used pealr before? Im a cpp boy .
Anyeon fancy helping out here with this one?
i can see the CvEventManager.py seems to hold the event handling for example 'cityLost' : self.onCityLost,
i thik i just neeed to understadn the po up notification?? withthe relevent city name defines and text output and its away??
The current define is ...
def onCityLost(self, argsList):
'City Lost'
city = argsList[0]
player = PyPlayer(city.getOwner())
if (not self.__LOG_CITYLOST):
return
CvUtil.pyPrint('City %s was lost by Player %d Civilization %s'
%(city.getName(), player.getID(), player.getCivilizationName()))
From reading this i can see its very possible and not ot hard? However i have never used pealr before? Im a cpp boy .
Anyeon fancy helping out here with this one?
i can see the CvEventManager.py seems to hold the event handling for example 'cityLost' : self.onCityLost,
i thik i just neeed to understadn the po up notification?? withthe relevent city name defines and text output and its away??
The current define is ...
def onCityLost(self, argsList):
'City Lost'
city = argsList[0]
player = PyPlayer(city.getOwner())
if (not self.__LOG_CITYLOST):
return
CvUtil.pyPrint('City %s was lost by Player %d Civilization %s'
%(city.getName(), player.getID(), player.getCivilizationName()))
Comment