Esempio n. 1
0
 def __init__(self, cr):
     DistributedNPCToonBase.__init__(self, cr)
     self.isInteractingWithLocalToon = 0
     self.av = None
     self.button = None
     self.askGui = None
     self.teaserDialog = None
     self.npcType = 'Party Planner'
Esempio n. 2
0
 def disable(self):
     self.ignoreAll()
     taskMgr.remove(self.uniqueName('popupAskGUI'))
     taskMgr.remove(self.uniqueName('lerpCamera'))
     self.av = None
     if self.isInteractingWithLocalToon:
         base.localAvatar.posCamera(0, 0)
     DistributedNPCToonBase.disable(self)
 def announceGenerate(self):
     DistributedNPCToonBase.announceGenerate(self)
     self.planPartyQuestionGuiDoneEvent = 'planPartyQuestionDone'
     self.askGui = TTDialog.TTGlobalDialog(
         dialogName=self.uniqueName('askGui'),
         doneEvent=self.planPartyQuestionGuiDoneEvent,
         message=TTLocalizer.PartyDoYouWantToPlan,
         style=TTDialog.YesNo,
         okButtonText=OTPLocalizer.DialogYes,
         cancelButtonText=OTPLocalizer.DialogNo)
     self.askGui.hide()
Esempio n. 4
0
 def generate(self):
     DistributedNPCToonBase.generate(self)
Esempio n. 5
0
 def delete(self):
     if self.askGui:
         self.ignore(self.planPartyQuestionGuiDoneEvent)
         self.askGui.cleanup()
         del self.askGui
     DistributedNPCToonBase.delete(self)