def enterWalk(self, teleportIn=0, wantMouse=1): self.walkStateData.enter(wantMouse) if teleportIn == 0: self.walkStateData.fsm.request('walking') self.acceptOnce(self.walkDoneEvent, self.handleWalkDone) self.walkStateData.fsm.request('walking') self.watchTunnelSeq = Sequence(Wait(1.0), Func(LinkTunnel.globalAcceptCollisions)) self.watchTunnelSeq.start() NametagGlobals.setWantActiveNametags(True) NametagGlobals.makeTagsReady() if base.localAvatar.getBattleZone(): if self.useFirstPerson: base.localAvatar.stopSmartCamera() camera.setPos(base.localAvatar.smartCamera.firstPersonCamPos) self.firstPerson.start() self.firstPerson.reallyStart() self.firstPerson.disableMouse() base.localAvatar.getGeomNode().show() base.localAvatar.getShadow().hide() base.localAvatar.find('**/torso-top').hide() base.localAvatar.find('**/torso-bot').hide() base.localAvatar.getPart('head').hide() base.localAvatar.setBusy(1) else: base.localAvatar.setBusy(0) base.localAvatar.enablePicking() base.localAvatar.showFriendButton() base.localAvatar.questManager.enableShowQuestsHotkey() messenger.send(CIGlobals.ENTER_WALK_EVENT, [])
def enterShtickerBookGui(self): doneEvent = 'shtickerBookDone' self.shtickerBookStateData = ShtickerBook(doneEvent) self.acceptOnce(doneEvent, self.__shtickerBookDone) self.shtickerBookStateData.load() self.shtickerBookStateData.enter(self.lastBookPage) base.localAvatar.showBookButton(1) base.localAvatar.b_setAnimState('readBook') base.localAvatar.showFriendButton() NametagGlobals.setWantActiveNametags(True) NametagGlobals.makeTagsReady() self.acceptOnce('escape-up', base.localAvatar.bookButtonClicked, [0])