mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Fix phone's 63 and nick
This commit is contained in:
parent
cc91c43036
commit
d2834a6f65
3 changed files with 7 additions and 30 deletions
|
@ -44,7 +44,6 @@ class DistributedPhone(DistributedFurnitureItem.DistributedFurnitureItem):
|
||||||
self.intervalAvatar = None
|
self.intervalAvatar = None
|
||||||
self.phoneInUse = 0
|
self.phoneInUse = 0
|
||||||
self.origToonHpr = None
|
self.origToonHpr = None
|
||||||
return
|
|
||||||
|
|
||||||
def announceGenerate(self):
|
def announceGenerate(self):
|
||||||
self.notify.debug('announceGenerate')
|
self.notify.debug('announceGenerate')
|
||||||
|
@ -136,7 +135,6 @@ class DistributedPhone(DistributedFurnitureItem.DistributedFurnitureItem):
|
||||||
(self.model.find('**/CurveNode7'), (0, 0, 0))))
|
(self.model.find('**/CurveNode7'), (0, 0, 0))))
|
||||||
self.cord.reparentTo(self.model)
|
self.cord.reparentTo(self.model)
|
||||||
self.cord.node().setBounds(BoundingSphere(Point3(-1.0, -3.2, 2.6), 2.0))
|
self.cord.node().setBounds(BoundingSphere(Point3(-1.0, -3.2, 2.6), 2.0))
|
||||||
return
|
|
||||||
|
|
||||||
def disable(self):
|
def disable(self):
|
||||||
self.notify.debug('disable')
|
self.notify.debug('disable')
|
||||||
|
@ -154,7 +152,6 @@ class DistributedPhone(DistributedFurnitureItem.DistributedFurnitureItem):
|
||||||
self.freeAvatar()
|
self.freeAvatar()
|
||||||
self.ignoreAll()
|
self.ignoreAll()
|
||||||
DistributedFurnitureItem.DistributedFurnitureItem.disable(self)
|
DistributedFurnitureItem.DistributedFurnitureItem.disable(self)
|
||||||
return
|
|
||||||
|
|
||||||
def delete(self):
|
def delete(self):
|
||||||
self.notify.debug('delete')
|
self.notify.debug('delete')
|
||||||
|
@ -168,16 +165,18 @@ class DistributedPhone(DistributedFurnitureItem.DistributedFurnitureItem):
|
||||||
self.usedInitialScale = 1
|
self.usedInitialScale = 1
|
||||||
|
|
||||||
def __handleEnterSphere(self, collEntry):
|
def __handleEnterSphere(self, collEntry):
|
||||||
if self.smoothStarted:
|
if self.phoneGui or self.smoothStarted:
|
||||||
return
|
return
|
||||||
|
|
||||||
if base.localAvatar.doId == self.lastAvId and globalClock.getFrameTime() <= self.lastTime + 0.5:
|
if base.localAvatar.doId == self.lastAvId and globalClock.getFrameTime() <= self.lastTime + 0.5:
|
||||||
self.notify.debug('Ignoring duplicate entry for avatar.')
|
self.notify.debug('Ignoring duplicate entry for avatar.')
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.hasLocalAvatar:
|
if self.hasLocalAvatar:
|
||||||
self.freeAvatar()
|
self.freeAvatar()
|
||||||
|
|
||||||
self.notify.debug('Entering Phone Sphere....')
|
self.notify.debug('Entering Phone Sphere....')
|
||||||
taskMgr.remove(self.uniqueName('ringDoLater'))
|
taskMgr.remove(self.uniqueName('ringDoLater'))
|
||||||
self.ignore(self.phoneSphereEnterEvent)
|
|
||||||
self.cr.playGame.getPlace().detectedPhoneCollision()
|
self.cr.playGame.getPlace().detectedPhoneCollision()
|
||||||
self.hasLocalAvatar = 1
|
self.hasLocalAvatar = 1
|
||||||
self.sendUpdate('avatarEnter', [])
|
self.sendUpdate('avatarEnter', [])
|
||||||
|
@ -185,9 +184,8 @@ class DistributedPhone(DistributedFurnitureItem.DistributedFurnitureItem):
|
||||||
def __handlePhoneDone(self):
|
def __handlePhoneDone(self):
|
||||||
self.sendUpdate('avatarExit', [])
|
self.sendUpdate('avatarExit', [])
|
||||||
self.ignore(self.phoneGuiDoneEvent)
|
self.ignore(self.phoneGuiDoneEvent)
|
||||||
self.accept(self.phoneSphereEnterEvent, self.__handleEnterSphere)
|
self.setPos(self.getPos())
|
||||||
self.phoneGui = None
|
self.phoneGui = None
|
||||||
return
|
|
||||||
|
|
||||||
def freeAvatar(self):
|
def freeAvatar(self):
|
||||||
if self.hasLocalAvatar:
|
if self.hasLocalAvatar:
|
||||||
|
@ -198,9 +196,7 @@ class DistributedPhone(DistributedFurnitureItem.DistributedFurnitureItem):
|
||||||
base.cr.playGame.getPlace().setState('walk')
|
base.cr.playGame.getPlace().setState('walk')
|
||||||
self.hasLocalAvatar = 0
|
self.hasLocalAvatar = 0
|
||||||
self.ignore(self.pickupMovieDoneEvent)
|
self.ignore(self.pickupMovieDoneEvent)
|
||||||
self.accept(self.phoneSphereEnterEvent, self.__handleEnterSphere)
|
|
||||||
self.lastTime = globalClock.getFrameTime()
|
self.lastTime = globalClock.getFrameTime()
|
||||||
return
|
|
||||||
|
|
||||||
def setLimits(self, numHouseItems):
|
def setLimits(self, numHouseItems):
|
||||||
self.numHouseItems = numHouseItems
|
self.numHouseItems = numHouseItems
|
||||||
|
@ -223,14 +219,6 @@ class DistributedPhone(DistributedFurnitureItem.DistributedFurnitureItem):
|
||||||
if self.phoneInUse:
|
if self.phoneInUse:
|
||||||
self.clearInterval()
|
self.clearInterval()
|
||||||
self.phoneInUse = 0
|
self.phoneInUse = 0
|
||||||
|
|
||||||
elif mode == PhoneGlobals.PHONE_MOVIE_EMPTY:
|
|
||||||
self.notify.debug('setMovie: empty')
|
|
||||||
if isLocalToon:
|
|
||||||
self.phoneDialog = TTDialog.TTDialog(dialogName='PhoneEmpty', style=TTDialog.Acknowledge, text=TTLocalizer.DistributedPhoneEmpty, text_wordwrap=15, fadeScreen=1, command=self.__clearDialog)
|
|
||||||
self.numHouseItems = None
|
|
||||||
self.phoneInUse = 0
|
|
||||||
|
|
||||||
elif mode == PhoneGlobals.PHONE_MOVIE_PICKUP:
|
elif mode == PhoneGlobals.PHONE_MOVIE_PICKUP:
|
||||||
self.notify.debug('setMovie: gui')
|
self.notify.debug('setMovie: gui')
|
||||||
if avatar:
|
if avatar:
|
||||||
|
@ -241,7 +229,6 @@ class DistributedPhone(DistributedFurnitureItem.DistributedFurnitureItem):
|
||||||
self.acceptOnce(self.pickupMovieDoneEvent, self.__showPhoneGui)
|
self.acceptOnce(self.pickupMovieDoneEvent, self.__showPhoneGui)
|
||||||
self.playInterval(interval, elapsed, avatar)
|
self.playInterval(interval, elapsed, avatar)
|
||||||
self.phoneInUse = 1
|
self.phoneInUse = 1
|
||||||
|
|
||||||
elif mode == PhoneGlobals.PHONE_MOVIE_HANGUP:
|
elif mode == PhoneGlobals.PHONE_MOVIE_HANGUP:
|
||||||
self.notify.debug('setMovie: gui')
|
self.notify.debug('setMovie: gui')
|
||||||
if avatar:
|
if avatar:
|
||||||
|
@ -249,10 +236,8 @@ class DistributedPhone(DistributedFurnitureItem.DistributedFurnitureItem):
|
||||||
self.playInterval(interval, elapsed, avatar)
|
self.playInterval(interval, elapsed, avatar)
|
||||||
self.numHouseItems = None
|
self.numHouseItems = None
|
||||||
self.phoneInUse = 0
|
self.phoneInUse = 0
|
||||||
|
|
||||||
else:
|
else:
|
||||||
self.notify.warning('unknown mode in setMovie: %s' % mode)
|
self.notify.warning('unknown mode in setMovie: %s' % mode)
|
||||||
return
|
|
||||||
|
|
||||||
def __showPhoneGui(self):
|
def __showPhoneGui(self):
|
||||||
if self.toonScale:
|
if self.toonScale:
|
||||||
|
@ -288,7 +273,6 @@ class DistributedPhone(DistributedFurnitureItem.DistributedFurnitureItem):
|
||||||
self.phoneDialog.cleanup()
|
self.phoneDialog.cleanup()
|
||||||
self.phoneDialog = None
|
self.phoneDialog = None
|
||||||
self.freeAvatar()
|
self.freeAvatar()
|
||||||
return
|
|
||||||
|
|
||||||
def takePhoneInterval(self, toon):
|
def takePhoneInterval(self, toon):
|
||||||
torso = TextEncoder.upper(toon.style.torso[0])
|
torso = TextEncoder.upper(toon.style.torso[0])
|
||||||
|
@ -348,7 +332,6 @@ class DistributedPhone(DistributedFurnitureItem.DistributedFurnitureItem):
|
||||||
if avatar:
|
if avatar:
|
||||||
self.accept(avatar.uniqueName('disable'), self.clearInterval)
|
self.accept(avatar.uniqueName('disable'), self.clearInterval)
|
||||||
self.intervalAvatar = avatar
|
self.intervalAvatar = avatar
|
||||||
return
|
|
||||||
|
|
||||||
def clearInterval(self):
|
def clearInterval(self):
|
||||||
if self.interval != None:
|
if self.interval != None:
|
||||||
|
@ -360,7 +343,6 @@ class DistributedPhone(DistributedFurnitureItem.DistributedFurnitureItem):
|
||||||
self.__receiverToPhone()
|
self.__receiverToPhone()
|
||||||
self.model.pose('SS_phoneOut', 0)
|
self.model.pose('SS_phoneOut', 0)
|
||||||
self.phoneInUse = 0
|
self.phoneInUse = 0
|
||||||
return
|
|
||||||
|
|
||||||
def ringIfHasPhoneQuest(self, task):
|
def ringIfHasPhoneQuest(self, task):
|
||||||
if Quests.avatarHasPhoneQuest(base.localAvatar) and not Quests.avatarHasCompletedPhoneQuest(base.localAvatar):
|
if Quests.avatarHasPhoneQuest(base.localAvatar) and not Quests.avatarHasCompletedPhoneQuest(base.localAvatar):
|
||||||
|
@ -380,7 +362,6 @@ class DistributedPhone(DistributedFurnitureItem.DistributedFurnitureItem):
|
||||||
|
|
||||||
ringIval = Parallel(Func(base.playSfx, self.ringSfx), shakeSeq, Func(phone.setR, 0))
|
ringIval = Parallel(Func(base.playSfx, self.ringSfx), shakeSeq, Func(phone.setR, 0))
|
||||||
self.playInterval(ringIval, 0.0, None)
|
self.playInterval(ringIval, 0.0, None)
|
||||||
return
|
|
||||||
|
|
||||||
def requestGiftAvatar(self, doId):
|
def requestGiftAvatar(self, doId):
|
||||||
if not self.phoneGui:
|
if not self.phoneGui:
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
PHONE_MOVIE_CLEAR = 2
|
PHONE_MOVIE_CLEAR = 2
|
||||||
PHONE_MOVIE_EMPTY = 3
|
PHONE_MOVIE_PICKUP = 3
|
||||||
PHONE_MOVIE_PICKUP = 4
|
PHONE_MOVIE_HANGUP = 4
|
||||||
PHONE_MOVIE_HANGUP = 5
|
|
||||||
PHONE_MOVIE_NO_HOUSE = 6
|
|
|
@ -5426,8 +5426,6 @@ DistributedMailboxEmpty = 'Your mailbox is empty right now. Come back here to l
|
||||||
DistributedMailboxWaiting = 'Your mailbox is empty right now, but the package you ordered is on its way. Check back later!'
|
DistributedMailboxWaiting = 'Your mailbox is empty right now, but the package you ordered is on its way. Check back later!'
|
||||||
DistributedMailboxReady = 'Your order has arrived!'
|
DistributedMailboxReady = 'Your order has arrived!'
|
||||||
DistributedMailboxNotOwner = 'Sorry, this is not your mailbox.'
|
DistributedMailboxNotOwner = 'Sorry, this is not your mailbox.'
|
||||||
DistributedPhoneEmpty = "You can use any phone to order special items for you and your house. New items will become available to order over time.\n\nYou don't have any items available to order right now, but check back later!"
|
|
||||||
DistributedPhoneNoHouse = 'You must have a house to use the catalog!'
|
|
||||||
Clarabelle = 'Clarabelle'
|
Clarabelle = 'Clarabelle'
|
||||||
MailboxExitButton = 'Close Mailbox'
|
MailboxExitButton = 'Close Mailbox'
|
||||||
MailboxAcceptButton = 'Take this item'
|
MailboxAcceptButton = 'Take this item'
|
||||||
|
|
Loading…
Reference in a new issue