def showPart6(self): if self.stage != 5: return self.panel6 = NewTutorialPanel.NewTutorialPanel([self.contentPart6, 'test4']) self.panel6.activate() self.panel6.setYesCommand(self.__handleOKButton3) self.stage = 6
def handleEnterGameArea(self, collEntry=None): if localAvatar.style.getTutorial() == PiratesGlobals.TUT_GOT_SEACHEST: inventory = localAvatar.getInventory() if self.uniqueId == TutorialGlobals.RAMBLESHACK_ISLE_UID and len( inventory.getWeapons()) < 1: popupDialogText = ['showBlacksmith', 'closeShowBlacksmith'] else: popupDialogText = None if popupDialogText: if base.localAvatar.showQuest: base.localAvatar.resetQuestShow() self.popupDialog = NewTutorialPanel.NewTutorialPanel( popupDialogText) self.popupDialog.activate() def closeTutorialWindow(): messenger.send(self.popupDialog.closeMessage) self.popupDialog.setYesCommand(closeTutorialWindow) self.acceptOnce('closeTutorialWindow', closeTutorialWindow) taskMgr.doMethodLater(1, self.showEnterMessage, 'showEnterMessage') UserFunnel.logSubmit(0, 'ENTERING_' + str(self.funnelDisplayName)) UserFunnel.logSubmit(1, 'ENTERING_' + str(self.funnelDisplayName)) displayName = PLocalizer.LocationNames.get(self.uniqueId) base.setLocationCode(displayName) self.storeLocationTime(self.funnelDisplayName, time.time()) self.builder.initEffects()
def announceGenerate(self): DistributedObject.DistributedObject.announceGenerate(self) QuestBase.QuestBase.announceGenerate(self) self.setActive() messenger.send('localAvatarQuestAdded', [self]) popupDialogText = QuestPopupDict.get(self.getQuestId()) if popupDialogText: if base.localAvatar.showQuest: base.localAvatar.resetQuestShow() self.popupDialog = NewTutorialPanel.NewTutorialPanel( popupDialogText) self.popupDialog.activate() def closeTutorialWindow(): messenger.send(self.popupDialog.closeMessage) if self.getQuestId() == 'c2_visit_will_turner': if localAvatar.style.getTutorial( ) != PiratesGlobals.TUT_GOT_SEACHEST: self.removePopup() self.accept('InputState-forward', self.removePopup) self.accept('InputState-reverse', self.removePopup) self.accept('InputState-turnLeft', self.removePopup) self.accept('InputState-turnRight', self.removePopup) else: self.popupDialog.setYesCommand(closeTutorialWindow) self.cr.uidMgr.addUid(self.questId, self.doId)
def showPart2(self): if self.stage != 1: return self.panel2 = NewTutorialPanel.NewTutorialPanel([self.contentPart2]) self.panel2.activate() self.acceptOnce('sentRegularChat', self.__handleSentChat) self.stage = 2
def showPart5(self): if self.stage != 4: return self.panel5 = NewTutorialPanel.NewTutorialPanel([self.contentPart5, 'test']) self.panel5.activate() self.panel5.setYesCommand(self.__handleOKButton2) self.stage = 5
def showPart3(self): if self.stage != 2: return self.panel3 = NewTutorialPanel.NewTutorialPanel([self.contentPart3, 'test']) self.panel3.activate() self.panel3.setYesCommand(self.__handleOKButton) self.stage = 3
def showPart4(self): if self.stage != 3: return self.panel4 = NewTutorialPanel.NewTutorialPanel([self.contentPart4, 'test2']) self.panel4.activate() self.panel4.setYesCommand(self.__handleOKButton1) self.stage = 4
def showPart3(self): if self.stage != 2: return self.panel3 = NewTutorialPanel.NewTutorialPanel([self.contentPart3]) self.panel3.activate() self.acceptOnce('sentSpeedChat', self.__handleSentSpeedChat) self.stage = 3
def showPart2(self): if self.stage != 1: return self.panel2 = NewTutorialPanel.NewTutorialPanel([self.contentPart2]) self.panel2.activate() self.acceptOnce('openedSpeedChat', self.__handleOpenSpeedChatWindow) self.stage = 2
def showPart4(self): if self.stage != 3: return base.localAvatar.guiMgr.profilePage.showProfile(base.localAvatar.getDoId(), example=True) self.panel4 = NewTutorialPanel.NewTutorialPanel([self.contentPart4, 'test']) self.panel4.activate() self.panel4.setYesCommand(self.__handleOKButton1) self.stage = 4
def showPart2(self): if self.stage != 1: return None self.panel2 = NewTutorialPanel.NewTutorialPanel( [self.contentPart2, 'test2']) self.panel2.activate() self.panel2.setYesCommand(self._CrewTutorial__handleOKButton2) self.stage = 2
def showPart1(self): if self.stage != 0: return None self.panel1 = NewTutorialPanel.NewTutorialPanel( [self.contentPart1, 'test1']) self.panel1.activate() self.panel1.setYesCommand(self._CrewTutorial__handleOKButton1) self.updateTutorialState() self.stage = 1
def showPart5(self): if self.stage != 4: return None base.localAvatar.guiMgr.profilePage.showProfile( base.localAvatar.getDoId(), example=True) self.panel5 = NewTutorialPanel.NewTutorialPanel( [self.contentPart5, 'test3']) self.panel5.activate() self.panel5.setYesCommand(self._ChatTutorialAlt__handleOKButton2) self.stage = 5
def __loadTutorialPanel(self): self.tutorialPanel = NewTutorialPanel.NewTutorialPanel( [self.tutorialMode])
def _InteractiveBase__loadTutorialPanel(self): self.tutorialPanel = NewTutorialPanel.NewTutorialPanel( [self.tutorialMode])
def showPart1(self): self.panel1 = NewTutorialPanel.NewTutorialPanel([self.contentPart1]) self.panel1.activate() self.stage = 1
def showPart1(self): self.panel1 = NewTutorialPanel.NewTutorialPanel([self.contentPart1, 'test1']) self.panel1.activate() self.panel1.setYesCommand(self.__handleOKButton) self.stage = 1