Fix Toon deletion bug

This commit is contained in:
John Cote 2015-05-17 01:37:00 -04:00
parent 0247ec5daf
commit e7f17e5299
2 changed files with 7 additions and 3 deletions

View file

@ -42,3 +42,4 @@ show-population #t
want-instant-parties #t want-instant-parties #t
cogdo-pop-factor 1.5 cogdo-pop-factor 1.5
cogdo-ratio 0.5 cogdo-ratio 0.5
default-directnotify-level info

View file

@ -212,13 +212,16 @@ class AvatarChooser(StateData.StateData):
elif panelDoneStatus == 'nameIt': elif panelDoneStatus == 'nameIt':
self.__handleChoice() self.__handleChoice()
elif panelDoneStatus == 'delete': elif panelDoneStatus == 'delete':
self.__handleChoice() self.__handleDelete()
elif panelDoneStatus == 'create': elif panelDoneStatus == 'create':
self.__handleChoice() self.__handleChoice()
def __handleChoice(self): def __handleChoice(self):
base.transitions.fadeOut(finishIval=EventInterval(self.doneEvent, [self.doneStatus])) base.transitions.fadeOut(finishIval=EventInterval(self.doneEvent, [self.doneStatus]))
def __handleDelete(self):
messenger.send(self.doneEvent, [self.doneStatus])
def __handleQuit(self): def __handleQuit(self):
cleanupDialog('globalDialog') cleanupDialog('globalDialog')
self.doneStatus = {'mode': 'exit'} self.doneStatus = {'mode': 'exit'}