mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 11:42:39 -06:00
Fix cast member crash
This commit is contained in:
parent
0976a80bef
commit
1d1e96d055
1 changed files with 7 additions and 1 deletions
|
@ -526,8 +526,14 @@ class ToonAvatarPanel(AvatarPanelBase.AvatarPanelBase):
|
||||||
def __handleCastDialog(self):
|
def __handleCastDialog(self):
|
||||||
self.cleanupDialog()
|
self.cleanupDialog()
|
||||||
base.cr.playGame.getPlace().setState('stopped')
|
base.cr.playGame.getPlace().setState('stopped')
|
||||||
self.dialog = TTDialog.TTDialog(style=TTDialog.Acknowledge, text=TTLocalizer.AvatarPanelCastInfo % self.avatar.getName(), text_wordwrap=20, command=self.cleanupDialogAndWalk)
|
self.dialog = TTDialog.TTDialog(style=TTDialog.Acknowledge, text=TTLocalizer.AvatarPanelCastInfo % self.avatar.getName(), text_wordwrap=20, command=self.__cleanupDialogAndWalk)
|
||||||
self.dialog.show()
|
self.dialog.show()
|
||||||
|
|
||||||
|
def __cleanupDialogAndWalk(self, extra=None):
|
||||||
|
if self.dialog:
|
||||||
|
self.dialog.destroy()
|
||||||
|
self.dialog = None
|
||||||
|
base.cr.playGame.getPlace().fsm.request('walk')
|
||||||
|
|
||||||
def __makeBoardingGui(self):
|
def __makeBoardingGui(self):
|
||||||
self.confirmKickOutDialog = None
|
self.confirmKickOutDialog = None
|
||||||
|
|
Loading…
Reference in a new issue