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,9 +526,15 @@ class ToonAvatarPanel(AvatarPanelBase.AvatarPanelBase):
|
|||
def __handleCastDialog(self):
|
||||
self.cleanupDialog()
|
||||
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()
|
||||
|
||||
def __cleanupDialogAndWalk(self, extra=None):
|
||||
if self.dialog:
|
||||
self.dialog.destroy()
|
||||
self.dialog = None
|
||||
base.cr.playGame.getPlace().fsm.request('walk')
|
||||
|
||||
def __makeBoardingGui(self):
|
||||
self.confirmKickOutDialog = None
|
||||
groupAvatarBgGui = loader.loadModel('phase_3.5/models/gui/tt_m_gui_brd_avatarPanelBg')
|
||||
|
|
Loading…
Reference in a new issue