本文整理汇总了Python中libotp.NametagGlobals.setMasterArrowsOn方法的典型用法代码示例。如果您正苦于以下问题:Python NametagGlobals.setMasterArrowsOn方法的具体用法?Python NametagGlobals.setMasterArrowsOn怎么用?Python NametagGlobals.setMasterArrowsOn使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类libotp.NametagGlobals
的用法示例。
在下文中一共展示了NametagGlobals.setMasterArrowsOn方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __unmakeGui
# 需要导入模块: from libotp import NametagGlobals [as 别名]
# 或者: from libotp.NametagGlobals import setMasterArrowsOn [as 别名]
def __unmakeGui(self):
self.notify.debug('__unmakeGui')
if not self.madeGui:
return
if self.flashingLabel:
self.flashingLabel.finish()
self.flashingLabel = None
NametagGlobals.setMasterArrowsOn(1)
self.__disableAimInterface()
self.upButton.unbind(DGG.B1PRESS)
self.upButton.unbind(DGG.B1RELEASE)
self.downButton.unbind(DGG.B1PRESS)
self.downButton.unbind(DGG.B1RELEASE)
self.leftButton.unbind(DGG.B1PRESS)
self.leftButton.unbind(DGG.B1RELEASE)
self.rightButton.unbind(DGG.B1PRESS)
self.rightButton.unbind(DGG.B1RELEASE)
self.aimPad.destroy()
del self.aimPad
del self.fireButton
del self.upButton
del self.downButton
del self.leftButton
del self.rightButton
self.madeGui = 0
return
示例2: handleAvatarResponseMsg
# 需要导入模块: from libotp import NametagGlobals [as 别名]
# 或者: from libotp.NametagGlobals import setMasterArrowsOn [as 别名]
def handleAvatarResponseMsg(self, avatarId, di):
self.localAvatarDoId = avatarId
self.loadingScreen.endStep('waitForAv')
self.cleanupWaitingForDatabase()
dclass = self.dclassesByName['DistributedPlayerPirate']
NametagGlobals.setMasterArrowsOn(0)
self.loadingScreen.beginStep('LocalAvatar', 36, 120)
#self.loadingScreen.show(waitForLocation = True, expectedLoadScale = 4)
localAvatar = LocalPirate(self)
localAvatar.dclass = dclass
base.localAvatar = localAvatar
__builtins__['localAvatar'] = base.localAvatar
localAvatar.doId = avatarId
self.doId2do[avatarId] = localAvatar
parentId = None
zoneId = None
localAvatar.setLocation(parentId, zoneId)
localAvatar.generate()
localAvatar.updateAllRequiredFields(dclass, di)
locUID = localAvatar.getReturnLocation()
if not locUID:
locUID = '1150922126.8dzlu'
localAvatar.setReturnLocation(locUID)
self.loadingScreen.showTarget(locUID)
self.loadingScreen.showHint(locUID)
self.loadingScreen.endStep('LocalAvatar')
self.loginFSM.request('playingGame')
示例3: exit
# 需要导入模块: from libotp import NametagGlobals [as 别名]
# 或者: from libotp.NametagGlobals import setMasterArrowsOn [as 别名]
def exit(self):
self.ignoreAll()
messenger.send('exitToonInterior')
self._telemLimiter.destroy()
del self._telemLimiter
NametagGlobals.setMasterArrowsOn(0)
self.loader.activityMusic.stop()
示例4: exitReward
# 需要导入模块: from libotp import NametagGlobals [as 别名]
# 或者: from libotp.NametagGlobals import setMasterArrowsOn [as 别名]
def exitReward(self):
self.notify.debug('exitReward()')
self.ignore('resumeAfterReward')
self.movie.resetReward(finish=1)
self._removeMembersKeep()
NametagGlobals.setMasterArrowsOn(1)
Emote.globalEmote.releaseAll(base.localAvatar, 'dbattle, exitReward')
示例5: exitReward
# 需要导入模块: from libotp import NametagGlobals [as 别名]
# 或者: from libotp.NametagGlobals import setMasterArrowsOn [as 别名]
def exitReward(self):
self.notify.info('exitReward()')
self.clearInterval(self.uniqueName('floorReward'))
self._removeMembersKeep()
NametagGlobals.setMasterArrowsOn(1)
for toon in self.toons:
toon.startSmooth()
示例6: commence
# 需要导入模块: from libotp import NametagGlobals [as 别名]
# 或者: from libotp.NametagGlobals import setMasterArrowsOn [as 别名]
def commence(self = self):
NametagGlobals.setMasterArrowsOn(1)
self.fsm.request(requestStatus['how'], [requestStatus])
base.playMusic(self.music, looping=1, volume=0.8)
base.transitions.irisIn()
mint = bboard.get(DistributedMint.DistributedMint.ReadyPost)
self.loader.hood.spawnTitleText(mint.mintId, mint.floorNum)
示例7: exitIntroduction
# 需要导入模块: from libotp import NametagGlobals [as 别名]
# 或者: from libotp.NametagGlobals import setMasterArrowsOn [as 别名]
def exitIntroduction(self):
self.notify.debug('DistributedBossCog.exitIntroduction:')
intervalName = 'IntroductionMovie'
self.clearInterval(intervalName)
self.unstickToons()
self.releaseToons()
NametagGlobals.setMasterArrowsOn(1)
ElevatorUtils.closeDoors(self.leftDoor, self.rightDoor, self.elevatorType)
示例8: enterBattleFour
# 需要导入模块: from libotp import NametagGlobals [as 别名]
# 或者: from libotp.NametagGlobals import setMasterArrowsOn [as 别名]
def enterBattleFour(self):
self.cleanupIntervals()
self.releaseToons(finalBattle=1)
self.accept('clickedNametag', self.__clickedNameTag)
self.accept('friendAvatar', self.__handleFriendAvatar)
self.accept('avatarDetails', self.__handleAvatarDetails)
NametagGlobals.setMasterArrowsOn(0)
NametagGlobals.setMasterNametagsActive(1)
示例9: enterStageReward
# 需要导入模块: from libotp import NametagGlobals [as 别名]
# 或者: from libotp.NametagGlobals import setMasterArrowsOn [as 别名]
def enterStageReward(self, ts):
self.notify.debug('enterStageReward()')
self.disableCollision()
self.delayDeleteMembers()
if self.hasLocalToon():
NametagGlobals.setMasterArrowsOn(0)
if self.bossBattle:
messenger.send('localToonConfrontedStageBoss')
self.movie.playReward(ts, self.uniqueName('building-reward'), self.__handleStageRewardDone)
示例10: enterIntroduction
# 需要导入模块: from libotp import NametagGlobals [as 别名]
# 或者: from libotp.NametagGlobals import setMasterArrowsOn [as 别名]
def enterIntroduction(self):
self.controlToons()
ElevatorUtils.openDoors(self.leftDoor, self.rightDoor, self.elevatorType)
NametagGlobals.setMasterArrowsOn(0)
intervalName = 'IntroductionMovie'
delayDeletes = []
seq = Sequence(self.makeIntroductionMovie(delayDeletes), Func(self.__beginBattleOne), name=intervalName)
seq.delayDeletes = delayDeletes
seq.start()
self.storeInterval(seq, intervalName)
示例11: enter
# 需要导入模块: from libotp import NametagGlobals [as 别名]
# 或者: from libotp.NametagGlobals import setMasterArrowsOn [as 别名]
def enter(self, requestStatus):
self.zoneId = requestStatus['zoneId']
self.fsm.enterInitialState()
messenger.send('enterToonInterior')
self.accept('doorDoneEvent', self.handleDoorDoneEvent)
self.accept('DistributedDoor_doorTrigger', self.handleDoorTrigger)
volume = requestStatus.get('musicVolume', 0.7)
base.playMusic(self.loader.activityMusic, looping=1, volume=volume)
self._telemLimiter = TLGatherAllAvs('ToonInterior', RotationLimitToH)
NametagGlobals.setMasterArrowsOn(1)
self.fsm.request(requestStatus['how'], [requestStatus])
示例12: exitPrepareBattleThree
# 需要导入模块: from libotp import NametagGlobals [as 别名]
# 或者: from libotp.NametagGlobals import setMasterArrowsOn [as 别名]
def exitPrepareBattleThree(self):
intervalName = 'PrepareBattleThreeMovie'
self.clearInterval(intervalName)
self.unstickToons()
self.releaseToons()
if self.newState == 'BattleThree':
self.movieCrane.request('Free')
self.movieSafe.request('Initial')
NametagGlobals.setMasterArrowsOn(1)
ElevatorUtils.closeDoors(self.leftDoor, self.rightDoor, ElevatorConstants.ELEVATOR_CFO)
taskMgr.remove(self.uniqueName('physics'))
示例13: exit
# 需要导入模块: from libotp import NametagGlobals [as 别名]
# 或者: from libotp.NametagGlobals import setMasterArrowsOn [as 别名]
def exit(self):
NametagGlobals.setMasterArrowsOn(0)
bboard.remove(DistributedMint.DistributedMint.ReadyPost)
self._telemLimiter.destroy()
del self._telemLimiter
base.cr.forbidCheesyEffects(0)
base.localAvatar.inventory.setRespectInvasions(1)
self.fsm.requestFinalState()
self.loader.music.stop()
self.music.stop()
self.ignoreAll()
del self.mintReadyWatcher
示例14: enter
# 需要导入模块: from libotp import NametagGlobals [as 别名]
# 或者: from libotp.NametagGlobals import setMasterArrowsOn [as 别名]
def enter(self, requestStatus):
self.zoneId = requestStatus['zoneId']
Place.Place.enter(self)
self.fsm.enterInitialState()
base.playMusic(self.loader.music, looping=1, volume=0.8)
self.loader.geom.reparentTo(render)
self.accept('doorDoneEvent', self.handleDoorDoneEvent)
self.accept('DistributedDoor_doorTrigger', self.handleDoorTrigger)
NametagGlobals.setMasterArrowsOn(1)
how = requestStatus['how']
self.fsm.request(how, [requestStatus])
self._telemLimiter = TLGatherAllAvs('CogHQLobby', RotationLimitToH)
示例15: enterWaitForToons
# 需要导入模块: from libotp import NametagGlobals [as 别名]
# 或者: from libotp.NametagGlobals import setMasterArrowsOn [as 别名]
def enterWaitForToons(self):
self.cleanupIntervals()
self.hide()
if self.gotAllToons:
self.__doneWaitForToons()
else:
self.accept('gotAllToons', self.__doneWaitForToons)
self.transitions = Transitions.Transitions(loader)
self.transitions.IrisModelName = 'phase_3/models/misc/iris'
self.transitions.FadeModelName = 'phase_3/models/misc/fade'
self.transitions.fadeScreen(alpha=1)
NametagGlobals.setMasterArrowsOn(0)