mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-25 04:32:33 -06:00
Fix Toon deletion bug
This commit is contained in:
parent
0247ec5daf
commit
e7f17e5299
2 changed files with 7 additions and 3 deletions
|
@ -42,3 +42,4 @@ show-population #t
|
|||
want-instant-parties #t
|
||||
cogdo-pop-factor 1.5
|
||||
cogdo-ratio 0.5
|
||||
default-directnotify-level info
|
||||
|
|
|
@ -212,13 +212,16 @@ class AvatarChooser(StateData.StateData):
|
|||
elif panelDoneStatus == 'nameIt':
|
||||
self.__handleChoice()
|
||||
elif panelDoneStatus == 'delete':
|
||||
self.__handleChoice()
|
||||
self.__handleDelete()
|
||||
elif panelDoneStatus == 'create':
|
||||
self.__handleChoice()
|
||||
|
||||
def __handleChoice(self):
|
||||
base.transitions.fadeOut(finishIval=EventInterval(self.doneEvent, [self.doneStatus]))
|
||||
|
||||
def __handleDelete(self):
|
||||
messenger.send(self.doneEvent, [self.doneStatus])
|
||||
|
||||
def __handleQuit(self):
|
||||
cleanupDialog('globalDialog')
|
||||
self.doneStatus = {'mode': 'exit'}
|
||||
|
@ -226,7 +229,7 @@ class AvatarChooser(StateData.StateData):
|
|||
|
||||
def getChoice(self):
|
||||
return self.choice
|
||||
|
||||
|
||||
def openLanguageGui(self):
|
||||
self.exit()
|
||||
LanguageSelector.LanguageSelector(self.enter).create()
|
||||
LanguageSelector.LanguageSelector(self.enter).create()
|
||||
|
|
Loading…
Reference in a new issue