mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Quest map fixes in suit interiors
This commit is contained in:
parent
db14609bb6
commit
1f9dddf534
7 changed files with 6 additions and 47 deletions
|
@ -465,7 +465,6 @@ class DistributedElevator(DistributedObject.DistributedObject):
|
||||||
del self.elevatorFSM
|
del self.elevatorFSM
|
||||||
elevator.signalDone(doneStatus)
|
elevator.signalDone(doneStatus)
|
||||||
base.camLens.setMinFov(ToontownGlobals.CBElevatorFov/(4./3.))
|
base.camLens.setMinFov(ToontownGlobals.CBElevatorFov/(4./3.))
|
||||||
return
|
|
||||||
|
|
||||||
def getElevatorModel(self):
|
def getElevatorModel(self):
|
||||||
self.notify.error('getElevatorModel: pure virtual -- inheritors must override')
|
self.notify.error('getElevatorModel: pure virtual -- inheritors must override')
|
||||||
|
@ -530,10 +529,7 @@ class DistributedElevator(DistributedObject.DistributedObject):
|
||||||
return self.offsetNP.getPos(render)
|
return self.offsetNP.getPos(render)
|
||||||
|
|
||||||
def canHideBoardingQuitBtn(self, avId):
|
def canHideBoardingQuitBtn(self, avId):
|
||||||
if avId == localAvatar.doId and hasattr(localAvatar, 'boardingParty') and localAvatar.boardingParty and localAvatar.boardingParty.groupPanel:
|
return avId == localAvatar.doId and hasattr(localAvatar, 'boardingParty') and localAvatar.boardingParty and localAvatar.boardingParty.groupPanel
|
||||||
return True
|
|
||||||
else:
|
|
||||||
return False
|
|
||||||
|
|
||||||
def getBoardingTrack(self, toon, seatIndex, wantToonRotation):
|
def getBoardingTrack(self, toon, seatIndex, wantToonRotation):
|
||||||
self.boardingGroupShow = BoardingGroupShow.BoardingGroupShow(toon)
|
self.boardingGroupShow = BoardingGroupShow.BoardingGroupShow(toon)
|
||||||
|
|
|
@ -365,6 +365,7 @@ class DistributedSuitInterior(DistributedObject.DistributedObject):
|
||||||
|
|
||||||
def enterResting(self, ts = 0):
|
def enterResting(self, ts = 0):
|
||||||
base.playMusic(self.waitMusic, looping=1, volume=0.7)
|
base.playMusic(self.waitMusic, looping=1, volume=0.7)
|
||||||
|
base.localAvatar.questMap.stop()
|
||||||
self.__closeInElevator()
|
self.__closeInElevator()
|
||||||
|
|
||||||
def exitResting(self):
|
def exitResting(self):
|
||||||
|
|
|
@ -23,7 +23,6 @@ class CogdoBarrelRoom:
|
||||||
self.fog = None
|
self.fog = None
|
||||||
self.defaultFar = None
|
self.defaultFar = None
|
||||||
self.stomperSfx = None
|
self.stomperSfx = None
|
||||||
return
|
|
||||||
|
|
||||||
def destroy(self):
|
def destroy(self):
|
||||||
self.unload()
|
self.unload()
|
||||||
|
@ -71,7 +70,6 @@ class CogdoBarrelRoom:
|
||||||
taskMgr.remove(self.rewardUiTaskName)
|
taskMgr.remove(self.rewardUiTaskName)
|
||||||
taskMgr.remove(self.rewardCameraTaskName)
|
taskMgr.remove(self.rewardCameraTaskName)
|
||||||
self._isLoaded = False
|
self._isLoaded = False
|
||||||
return
|
|
||||||
|
|
||||||
def isLoaded(self):
|
def isLoaded(self):
|
||||||
return self._isLoaded
|
return self._isLoaded
|
||||||
|
|
|
@ -113,7 +113,6 @@ class DistributedCogdoInterior(DistributedObject.DistributedObject):
|
||||||
self._movie = None
|
self._movie = None
|
||||||
self.SOSToonName = None
|
self.SOSToonName = None
|
||||||
self.FOType = None
|
self.FOType = None
|
||||||
return
|
|
||||||
|
|
||||||
def setShopOwnerNpcId(self, npcId):
|
def setShopOwnerNpcId(self, npcId):
|
||||||
self.shopOwnerNpcId = npcId
|
self.shopOwnerNpcId = npcId
|
||||||
|
@ -202,13 +201,11 @@ class DistributedCogdoInterior(DistributedObject.DistributedObject):
|
||||||
self.shopOwnerNpc.removeActive()
|
self.shopOwnerNpc.removeActive()
|
||||||
self.shopOwnerNpc.delete()
|
self.shopOwnerNpc.delete()
|
||||||
self.shopOwnerNpc = None
|
self.shopOwnerNpc = None
|
||||||
return
|
|
||||||
|
|
||||||
def __cleanupPenthouseIntro(self):
|
def __cleanupPenthouseIntro(self):
|
||||||
if hasattr(self, '_movie') and self._movie:
|
if hasattr(self, '_movie') and self._movie:
|
||||||
self._movie.unload()
|
self._movie.unload()
|
||||||
self._movie = None
|
self._movie = None
|
||||||
return
|
|
||||||
|
|
||||||
def delete(self):
|
def delete(self):
|
||||||
self._stashEntranceElevatorFC.destroy()
|
self._stashEntranceElevatorFC.destroy()
|
||||||
|
@ -223,13 +220,9 @@ class DistributedCogdoInterior(DistributedObject.DistributedObject):
|
||||||
del self.fsm
|
del self.fsm
|
||||||
base.localAvatar.inventory.setBattleCreditMultiplier(1)
|
base.localAvatar.inventory.setBattleCreditMultiplier(1)
|
||||||
DistributedObject.DistributedObject.delete(self)
|
DistributedObject.DistributedObject.delete(self)
|
||||||
return
|
|
||||||
|
|
||||||
def isBossFloor(self, floorNum):
|
def isBossFloor(self, floorNum):
|
||||||
if not self.layout.hasBossBattle():
|
return self.layout.hasBossBattle() and (self.layout.getBossBattleFloor() + 0) == floorNum
|
||||||
return False
|
|
||||||
|
|
||||||
return (self.layout.getBossBattleFloor() + 0) == floorNum
|
|
||||||
|
|
||||||
def __cleanup(self):
|
def __cleanup(self):
|
||||||
self.toons = []
|
self.toons = []
|
||||||
|
@ -251,7 +244,6 @@ class DistributedCogdoInterior(DistributedObject.DistributedObject):
|
||||||
self.rightDoorIn = None
|
self.rightDoorIn = None
|
||||||
self.leftDoorOut = None
|
self.leftDoorOut = None
|
||||||
self.rightDoorOut = None
|
self.rightDoorOut = None
|
||||||
return
|
|
||||||
|
|
||||||
def __addToon(self, toon):
|
def __addToon(self, toon):
|
||||||
self.accept(toon.uniqueName('disable'), self.__handleUnexpectedExit, extraArgs=[toon])
|
self.accept(toon.uniqueName('disable'), self.__handleUnexpectedExit, extraArgs=[toon])
|
||||||
|
@ -404,7 +396,6 @@ class DistributedCogdoInterior(DistributedObject.DistributedObject):
|
||||||
|
|
||||||
def enterWaitForAllToonsInside(self, ts = 0):
|
def enterWaitForAllToonsInside(self, ts = 0):
|
||||||
base.transitions.fadeOut(0)
|
base.transitions.fadeOut(0)
|
||||||
return None
|
|
||||||
|
|
||||||
def exitWaitForAllToonsInside(self):
|
def exitWaitForAllToonsInside(self):
|
||||||
return None
|
return None
|
||||||
|
@ -568,7 +559,6 @@ class DistributedCogdoInterior(DistributedObject.DistributedObject):
|
||||||
self._movie.end()
|
self._movie.end()
|
||||||
self.__cleanupPenthouseIntro()
|
self.__cleanupPenthouseIntro()
|
||||||
self.__finishInterval(self.elevatorName)
|
self.__finishInterval(self.elevatorName)
|
||||||
return None
|
|
||||||
|
|
||||||
def __setupBarrelRoom(self):
|
def __setupBarrelRoom(self):
|
||||||
self.currentFloor += 1
|
self.currentFloor += 1
|
||||||
|
@ -607,7 +597,6 @@ class DistributedCogdoInterior(DistributedObject.DistributedObject):
|
||||||
self.barrelRoomIntroTrack.finish()
|
self.barrelRoomIntroTrack.finish()
|
||||||
DelayDelete.cleanupDelayDeletes(self.barrelRoomIntroTrack)
|
DelayDelete.cleanupDelayDeletes(self.barrelRoomIntroTrack)
|
||||||
self.barrelRoomIntroTrack = None
|
self.barrelRoomIntroTrack = None
|
||||||
return
|
|
||||||
|
|
||||||
def __handleLocalToonLeftBarrelRoom(self):
|
def __handleLocalToonLeftBarrelRoom(self):
|
||||||
self.notify.info('Local toon teleported out of barrel room.')
|
self.notify.info('Local toon teleported out of barrel room.')
|
||||||
|
@ -620,6 +609,7 @@ class DistributedCogdoInterior(DistributedObject.DistributedObject):
|
||||||
self.acceptOnce('localToonLeft', self.__handleLocalToonLeftBarrelRoom)
|
self.acceptOnce('localToonLeft', self.__handleLocalToonLeftBarrelRoom)
|
||||||
self.barrelRoom.activate()
|
self.barrelRoom.activate()
|
||||||
base.playMusic(self.waitMusic, looping=1, volume=0.7)
|
base.playMusic(self.waitMusic, looping=1, volume=0.7)
|
||||||
|
base.localAvatar.questMap.stop()
|
||||||
|
|
||||||
def exitCollectBarrels(self):
|
def exitCollectBarrels(self):
|
||||||
if self._wantBarrelRoom and not self.isBossFloor(self.currentFloor):
|
if self._wantBarrelRoom and not self.isBossFloor(self.currentFloor):
|
||||||
|
@ -675,13 +665,11 @@ class DistributedCogdoInterior(DistributedObject.DistributedObject):
|
||||||
self.__playCloseElevatorOut(self.uniqueName('close-out-elevator'))
|
self.__playCloseElevatorOut(self.uniqueName('close-out-elevator'))
|
||||||
camera.setPos(0, -15, 6)
|
camera.setPos(0, -15, 6)
|
||||||
camera.headsUp(self.elevatorModelOut)
|
camera.headsUp(self.elevatorModelOut)
|
||||||
return None
|
|
||||||
|
|
||||||
def exitBattle(self):
|
def exitBattle(self):
|
||||||
if self.elevatorOutOpen == 1:
|
if self.elevatorOutOpen == 1:
|
||||||
self.__finishInterval(self.uniqueName('close-out-elevator'))
|
self.__finishInterval(self.uniqueName('close-out-elevator'))
|
||||||
self.elevatorOutOpen = 0
|
self.elevatorOutOpen = 0
|
||||||
return None
|
|
||||||
|
|
||||||
def __playReservesJoining(self, ts, name, callback):
|
def __playReservesJoining(self, ts, name, callback):
|
||||||
index = 0
|
index = 0
|
||||||
|
@ -698,7 +686,6 @@ class DistributedCogdoInterior(DistributedObject.DistributedObject):
|
||||||
|
|
||||||
def enterReservesJoining(self, ts = 0):
|
def enterReservesJoining(self, ts = 0):
|
||||||
self.__playReservesJoining(ts, self.uniqueName('reserves-joining'), self.__handleReserveJoinDone)
|
self.__playReservesJoining(ts, self.uniqueName('reserves-joining'), self.__handleReserveJoinDone)
|
||||||
return None
|
|
||||||
|
|
||||||
def __handleReserveJoinDone(self):
|
def __handleReserveJoinDone(self):
|
||||||
self.joiningReserves = []
|
self.joiningReserves = []
|
||||||
|
@ -707,7 +694,6 @@ class DistributedCogdoInterior(DistributedObject.DistributedObject):
|
||||||
|
|
||||||
def exitReservesJoining(self):
|
def exitReservesJoining(self):
|
||||||
self.__finishInterval(self.uniqueName('reserves-joining'))
|
self.__finishInterval(self.uniqueName('reserves-joining'))
|
||||||
return None
|
|
||||||
|
|
||||||
def enterResting(self, ts = 0):
|
def enterResting(self, ts = 0):
|
||||||
self._showExitElevator()
|
self._showExitElevator()
|
||||||
|
@ -734,7 +720,6 @@ class DistributedCogdoInterior(DistributedObject.DistributedObject):
|
||||||
self.penthouseOutroTrack.start(ts)
|
self.penthouseOutroTrack.start(ts)
|
||||||
else:
|
else:
|
||||||
self.exitCogdoBuilding()
|
self.exitCogdoBuilding()
|
||||||
return None
|
|
||||||
|
|
||||||
def exitReward(self):
|
def exitReward(self):
|
||||||
self.notify.debug('exitReward')
|
self.notify.debug('exitReward')
|
||||||
|
@ -747,16 +732,13 @@ class DistributedCogdoInterior(DistributedObject.DistributedObject):
|
||||||
self.__outroPenthouseChatDone()
|
self.__outroPenthouseChatDone()
|
||||||
self.penthouseOutroChatDoneTrack.finish()
|
self.penthouseOutroChatDoneTrack.finish()
|
||||||
self.penthouseOutroChatDoneTrack = None
|
self.penthouseOutroChatDoneTrack = None
|
||||||
return
|
|
||||||
|
|
||||||
def enterFailed(self, ts = 0):
|
def enterFailed(self, ts = 0):
|
||||||
self.exitCogdoBuilding()
|
self.exitCogdoBuilding()
|
||||||
return None
|
|
||||||
|
|
||||||
def exitFailed(self):
|
def exitFailed(self):
|
||||||
self.notify.debug('exitFailed()')
|
self.notify.debug('exitFailed()')
|
||||||
self.exitCogdoBuilding()
|
self.exitCogdoBuilding()
|
||||||
return None
|
|
||||||
|
|
||||||
def exitCogdoBuilding(self):
|
def exitCogdoBuilding(self):
|
||||||
if base.localAvatar.hp < 0:
|
if base.localAvatar.hp < 0:
|
||||||
|
@ -771,7 +753,6 @@ class DistributedCogdoInterior(DistributedObject.DistributedObject):
|
||||||
'avId': -1,
|
'avId': -1,
|
||||||
'bldgDoId': self.distBldgDoId}
|
'bldgDoId': self.distBldgDoId}
|
||||||
messenger.send('DSIDoneEvent', [request])
|
messenger.send('DSIDoneEvent', [request])
|
||||||
return
|
|
||||||
|
|
||||||
def displayBadges(self):
|
def displayBadges(self):
|
||||||
numFloors = self.layout.getNumGameFloors()
|
numFloors = self.layout.getNumGameFloors()
|
||||||
|
@ -796,9 +777,8 @@ class DistributedCogdoInterior(DistributedObject.DistributedObject):
|
||||||
track = Parallel(name=trackName)
|
track = Parallel(name=trackName)
|
||||||
base.cr.playGame.getPlace().fsm.request('stopped')
|
base.cr.playGame.getPlace().fsm.request('stopped')
|
||||||
|
|
||||||
if self.FOType == "l":
|
if self.FOType == 'l':
|
||||||
speech = TTLocalizer.CogdoExecutiveSuiteToonThankYouLawbot
|
speech = TTLocalizer.CogdoExecutiveSuiteToonThankYouLawbot
|
||||||
|
|
||||||
else:
|
else:
|
||||||
speech = TTLocalizer.CogdoExecutiveSuiteToonThankYou % self.SOSToonName
|
speech = TTLocalizer.CogdoExecutiveSuiteToonThankYou % self.SOSToonName
|
||||||
|
|
||||||
|
|
|
@ -187,7 +187,6 @@ class Place(StateData.StateData, FriendsListManager.FriendsListManager):
|
||||||
base.localAvatar.invPage.hideInventoryOnscreen()
|
base.localAvatar.invPage.hideInventoryOnscreen()
|
||||||
base.localAvatar.questMap.hide()
|
base.localAvatar.questMap.hide()
|
||||||
base.localAvatar.questMap.ignoreOnscreenHooks()
|
base.localAvatar.questMap.ignoreOnscreenHooks()
|
||||||
return
|
|
||||||
|
|
||||||
def handleWalkDone(self, doneStatus):
|
def handleWalkDone(self, doneStatus):
|
||||||
mode = doneStatus['mode']
|
mode = doneStatus['mode']
|
||||||
|
@ -495,7 +494,6 @@ class Place(StateData.StateData, FriendsListManager.FriendsListManager):
|
||||||
self.accept('tunnelOutMovieDone', self.__tunnelOutMovieDone)
|
self.accept('tunnelOutMovieDone', self.__tunnelOutMovieDone)
|
||||||
base.localAvatar.tunnelOut(tunnelOrigin)
|
base.localAvatar.tunnelOut(tunnelOrigin)
|
||||||
base.localAvatar.stopQuestMap()
|
base.localAvatar.stopQuestMap()
|
||||||
return
|
|
||||||
|
|
||||||
def __tunnelOutMovieDone(self):
|
def __tunnelOutMovieDone(self):
|
||||||
self.ignore('tunnelOutMovieDone')
|
self.ignore('tunnelOutMovieDone')
|
||||||
|
|
|
@ -30,9 +30,6 @@ class QuestMap(DirectFrame):
|
||||||
self.cogInfoFrame.setPos(0, 0, 0.6)
|
self.cogInfoFrame.setPos(0, 0, 0.6)
|
||||||
self.buildingMarkers = []
|
self.buildingMarkers = []
|
||||||
self.av = av
|
self.av = av
|
||||||
self.wantToggle = False
|
|
||||||
if base.config.GetBool('want-toggle-quest-map', True):
|
|
||||||
self.wantToggle = True
|
|
||||||
self.updateMarker = True
|
self.updateMarker = True
|
||||||
self.cornerPosInfo = None
|
self.cornerPosInfo = None
|
||||||
self.hqPosInfo = None
|
self.hqPosInfo = None
|
||||||
|
@ -47,8 +44,6 @@ class QuestMap(DirectFrame):
|
||||||
tracks = currHoodInfo[SuitPlannerBase.SuitPlannerBase.SUIT_HOOD_INFO_TRACK]
|
tracks = currHoodInfo[SuitPlannerBase.SuitPlannerBase.SUIT_HOOD_INFO_TRACK]
|
||||||
self.suitPercentage[currHoodInfo[SuitPlannerBase.SuitPlannerBase.SUIT_HOOD_INFO_ZONE]] = tracks
|
self.suitPercentage[currHoodInfo[SuitPlannerBase.SuitPlannerBase.SUIT_HOOD_INFO_ZONE]] = tracks
|
||||||
|
|
||||||
return
|
|
||||||
|
|
||||||
def load(self):
|
def load(self):
|
||||||
gui = loader.loadModel('phase_4/models/questmap/questmap_gui')
|
gui = loader.loadModel('phase_4/models/questmap/questmap_gui')
|
||||||
icon = gui.find('**/tt_t_gui_qst_arrow')
|
icon = gui.find('**/tt_t_gui_qst_arrow')
|
||||||
|
@ -279,7 +274,6 @@ class QuestMap(DirectFrame):
|
||||||
self.obscureButton()
|
self.obscureButton()
|
||||||
self.ignore('questPageUpdated')
|
self.ignore('questPageUpdated')
|
||||||
taskMgr.remove('questMapUpdate')
|
taskMgr.remove('questMapUpdate')
|
||||||
return
|
|
||||||
|
|
||||||
def handleMarker(self):
|
def handleMarker(self):
|
||||||
if hasattr(base.cr.playGame.getPlace(), 'isInterior') and base.cr.playGame.getPlace().isInterior:
|
if hasattr(base.cr.playGame.getPlace(), 'isInterior') and base.cr.playGame.getPlace().isInterior:
|
||||||
|
@ -288,15 +282,9 @@ class QuestMap(DirectFrame):
|
||||||
self.updateMarker = True
|
self.updateMarker = True
|
||||||
|
|
||||||
def acceptOnscreenHooks(self):
|
def acceptOnscreenHooks(self):
|
||||||
if self.wantToggle:
|
|
||||||
self.accept(ToontownGlobals.MapHotkey, self.toggle)
|
self.accept(ToontownGlobals.MapHotkey, self.toggle)
|
||||||
else:
|
|
||||||
self.accept(ToontownGlobals.MapHotkeyOn, self.show)
|
|
||||||
self.accept(ToontownGlobals.MapHotkeyOff, self.hide)
|
|
||||||
self.updateMap()
|
self.updateMap()
|
||||||
|
|
||||||
def ignoreOnscreenHooks(self):
|
def ignoreOnscreenHooks(self):
|
||||||
self.ignore(ToontownGlobals.MapHotkey)
|
self.ignore(ToontownGlobals.MapHotkey)
|
||||||
self.ignore(ToontownGlobals.MapHotkeyOn)
|
|
||||||
self.ignore(ToontownGlobals.MapHotkeyOff)
|
|
||||||
self.obscureButton()
|
self.obscureButton()
|
||||||
|
|
|
@ -2,8 +2,6 @@ import TTLocalizer
|
||||||
from otp.otpbase.OTPGlobals import *
|
from otp.otpbase.OTPGlobals import *
|
||||||
from direct.showbase.PythonUtil import Enum, invertDict
|
from direct.showbase.PythonUtil import Enum, invertDict
|
||||||
from pandac.PandaModules import BitMask32, Vec4
|
from pandac.PandaModules import BitMask32, Vec4
|
||||||
MapHotkeyOn = 'alt'
|
|
||||||
MapHotkeyOff = 'alt-up'
|
|
||||||
MapHotkey = 'alt'
|
MapHotkey = 'alt'
|
||||||
CogHQCameraFov = 60.0
|
CogHQCameraFov = 60.0
|
||||||
BossBattleCameraFov = 72.0
|
BossBattleCameraFov = 72.0
|
||||||
|
|
Loading…
Reference in a new issue