def __init__(self, cr): DistributedNPCToonBase.__init__(self, cr) self.isInteractingWithLocalToon = 0 self.av = None self.button = None self.askGui = None self.teaserDialog = None
def __init__(self, cr): DistributedNPCToonBase.__init__(self, cr) self.isInteractingWithLocalToon = 0 self.av = None self.button = None self.askGui = None return
def updatePosition(self): if self.name in NPCToons.ClerkPositions: pos = NPCToons.ClerkPositions[self.name] self.setPos(*pos[0]) self.setH(pos[1]) else: DistributedNPCToonBase.initToonState(self)
def delete(self): if self.askGui: self.ignore(self.planPartyQuestionGuiDoneEvent) self.askGui.cleanup() del self.askGui DistributedNPCToonBase.delete(self)
def delete(self): if self.askGui: self.ignore(self.planPartyQuestionGuiDoneEvent) self.askGui.cleanup() del self.askGui DistributedNPCToonBase.delete(self)
def disable(self): self.ignoreAll() if self.laffGui: self.laffGui.destroy() self.laffGui = None self.av = None DistributedNPCToonBase.disable(self)
def updatePosition(self): if self.name in NPCToons.ClerkPositions: pos = NPCToons.ClerkPositions[self.name] self.setPos(*pos[0]) self.setH(pos[1]) else: DistributedNPCToonBase.initToonState(self)
def generateToon(self): DistributedNPCToonBase.generateToon(self) self.setupToonNodes() self.setModelHand('phase_4/models/props/tt_m_prp_acs_%s' % ('sillyReader' if self.style.getAnimal() == 'duck' else 'clipboard')) self.startSequence(config.GetInt('silly-meter-phase', 12)) self.accept('SillyMeterPhase', self.startSequence)
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 __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' return
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) return
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()
def announceGenerate(self): DistributedNPCToonBase.announceGenerate(self) # Make sure you look under stashed nodes as well, since street # visibility might have stashed the zone this origin is under 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()
def generate(self): """ This method is called when the DistributedObject is reintroduced to the world, either for the first time or from the cache. """ DistributedNPCToonBase.generate(self)
def disable(self): self.ignoreAll() self.destroyDialog() DistributedNPCToonBase.disable(self)
def generateToon(self): DistributedNPCToonBase.generateToon(self) self.setupToonNodes() self.setModelHand('phase_4/models/props/tt_m_prp_acs_%s' % ('sillyReader' if self.style.getAnimal() == 'duck' else 'clipboard')) self.startSequence(config.GetInt('silly-meter-phase', 12)) self.accept('SillyMeterPhase', self.startSequence)
def __init__(self, cr): DistributedNPCToonBase.__init__(self, cr) self.lastCollision = 0 self.purchaseGui = None
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()
def disable(self): self.stopSequence() self.ignore('SillyMeterPhase') DistributedNPCToonBase.disable(self)
def __init__(self, cr): DistributedNPCToonBase.__init__(self, cr) self.lastCollision = 0 self.purchaseGui = None
def generate(self): DistributedNPCToonBase.generate(self)
def __init__(self, cr): DistributedNPCToonBase.__init__(self, cr) self.lastCollision = 0 self.laffDialog = None
def disable(self): self.ignoreAll() self.destroyDialog() DistributedNPCToonBase.disable(self)
def disable(self): self.stopSequence() self.ignore('SillyMeterPhase') DistributedNPCToonBase.disable(self)
def __init__(self, cr): DistributedNPCToonBase.__init__(self, cr) self.lastCollision = 0 self.laffDialog = None
def __init__(self, cr): DistributedNPCToonBase.__init__(self, cr) self.isLocalToon = 0 self.av = None self.laffGui = None