當前位置: 首頁>>代碼示例>>Python>>正文


Python NametagGlobals.setMasterArrowsOn方法代碼示例

本文整理匯總了Python中src.otp.nametag.NametagGlobals.setMasterArrowsOn方法的典型用法代碼示例。如果您正苦於以下問題:Python NametagGlobals.setMasterArrowsOn方法的具體用法?Python NametagGlobals.setMasterArrowsOn怎麽用?Python NametagGlobals.setMasterArrowsOn使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在src.otp.nametag.NametagGlobals的用法示例。


在下文中一共展示了NametagGlobals.setMasterArrowsOn方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: commence

# 需要導入模塊: from src.otp.nametag import NametagGlobals [as 別名]
# 或者: from src.otp.nametag.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)
開發者ID:ToontownBattlefront,項目名稱:Toontown-Battlefront,代碼行數:9,代碼來源:MintInterior.py

示例2: exitReward

# 需要導入模塊: from src.otp.nametag import NametagGlobals [as 別名]
# 或者: from src.otp.nametag.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()
開發者ID:ToontownBattlefront,項目名稱:Toontown-Battlefront,代碼行數:9,代碼來源:DistributedLevelBattle.py

示例3: __unmakeGui

# 需要導入模塊: from src.otp.nametag import NametagGlobals [as 別名]
# 或者: from src.otp.nametag.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
開發者ID:ToontownBattlefront,項目名稱:Toontown-Battlefront,代碼行數:28,代碼來源:DistributedLawbotCannon.py

示例4: exitReward

# 需要導入模塊: from src.otp.nametag import NametagGlobals [as 別名]
# 或者: from src.otp.nametag.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')
開發者ID:ToontownBattlefront,項目名稱:Toontown-Battlefront,代碼行數:9,代碼來源:DistributedBattle.py

示例5: enter

# 需要導入模塊: from src.otp.nametag import NametagGlobals [as 別名]
# 或者: from src.otp.nametag.NametagGlobals import setMasterArrowsOn [as 別名]
    def enter(self, requestStatus, visibilityFlag = 1, arrowsOn = 1):
        teleportDebug(requestStatus, 'Street.enter(%s)' % (requestStatus,))
        self._ttfToken = None
        self.fsm.enterInitialState()
        base.playMusic(self.loader.music, looping=1, volume=0.8)
        self.loader.geom.reparentTo(render)
        if visibilityFlag:
            self.visibilityOn()
        base.localAvatar.setGeom(self.loader.geom)
        base.localAvatar.setOnLevelGround(1)
        self._telemLimiter = TLGatherAllAvs('Street', RotationLimitToH)
        NametagGlobals.setMasterArrowsOn(arrowsOn)
        self.zone = ZoneUtil.getBranchZone(requestStatus['zoneId'])

        def __lightDecorationOn__():
            geom = base.cr.playGame.getPlace().loader.geom
            self.halloweenLights = geom.findAllMatches('**/*light*')
            self.halloweenLights += geom.findAllMatches('**/*lamp*')
            self.halloweenLights += geom.findAllMatches('**/prop_snow_tree*')
            for light in self.halloweenLights:
                light.setColorScaleOff(1)

        if base.cr.newsManager.isHolidayRunning(ToontownGlobals.HALLOWEEN) and self.loader.hood.spookySkyFile:
            lightsOff = Sequence(LerpColorScaleInterval(base.cr.playGame.hood.loader.geom, 0.1, Vec4(0.55, 0.55, 0.65, 1)), Func(self.loader.hood.startSpookySky))
            lightsOff.start()
        else:
            self.loader.hood.startSky()
            lightsOn = LerpColorScaleInterval(base.cr.playGame.hood.loader.geom, 0.1, Vec4(1, 1, 1, 1))
            lightsOn.start()
        self.accept('doorDoneEvent', self.handleDoorDoneEvent)
        self.accept('DistributedDoor_doorTrigger', self.handleDoorTrigger)
        self.enterZone(requestStatus['zoneId'])
        self.tunnelOriginList = base.cr.hoodMgr.addLinkTunnelHooks(self, self.loader.nodeList)
        self.fsm.request(requestStatus['how'], [requestStatus])
開發者ID:ToontownBattlefront,項目名稱:Toontown-Battlefront,代碼行數:36,代碼來源:Street.py

示例6: commence

# 需要導入模塊: from src.otp.nametag import NametagGlobals [as 別名]
# 或者: from src.otp.nametag.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()
     CountryClub = bboard.get(DistributedCountryClub.DistributedCountryClub.ReadyPost)
     self.loader.hood.spawnTitleText(CountryClub.countryClubId)
開發者ID:ToontownBattlefront,項目名稱:Toontown-Battlefront,代碼行數:9,代碼來源:CountryClubInterior.py

示例7: exit

# 需要導入模塊: from src.otp.nametag import NametagGlobals [as 別名]
# 或者: from src.otp.nametag.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()
開發者ID:ToontownBattlefront,項目名稱:Toontown-Battlefront,代碼行數:9,代碼來源:ToonInterior.py

示例8: exitReward

# 需要導入模塊: from src.otp.nametag import NametagGlobals [as 別名]
# 或者: from src.otp.nametag.NametagGlobals import setMasterArrowsOn [as 別名]
 def exitReward(self):
     self.notify.debug("exitReward()")
     self.clearInterval(self.uniqueName("floorReward"), finish=1)
     self._removeMembersKeep()
     NametagGlobals.setMasterArrowsOn(1)
     for toon in self.toons:
         toon.startSmooth()
開發者ID:Wesley1000070,項目名稱:Toontown-Crystal,代碼行數:9,代碼來源:DistributedBattleFinal.py

示例9: enterBattleFour

# 需要導入模塊: from src.otp.nametag import NametagGlobals [as 別名]
# 或者: from src.otp.nametag.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)
開發者ID:ToontownBattlefront,項目名稱:Toontown-Battlefront,代碼行數:10,代碼來源:DistributedBossCog.py

示例10: exitIntroduction

# 需要導入模塊: from src.otp.nametag import NametagGlobals [as 別名]
# 或者: from src.otp.nametag.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)
開發者ID:ToontownBattlefront,項目名稱:Toontown-Battlefront,代碼行數:10,代碼來源:DistributedBossCog.py

示例11: enterStageReward

# 需要導入模塊: from src.otp.nametag import NametagGlobals [as 別名]
# 或者: from src.otp.nametag.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, noSkip=True)
開發者ID:ToontownBattlefront,項目名稱:Toontown-Battlefront,代碼行數:11,代碼來源:DistributedStageBattle.py

示例12: enterIntroduction

# 需要導入模塊: from src.otp.nametag import NametagGlobals [as 別名]
# 或者: from src.otp.nametag.NametagGlobals import setMasterArrowsOn [as 別名]
 def enterIntroduction(self):
     self.controlToons()
     ElevatorUtils.openDoors(self.leftDoor, self.rightDoor, self.elevatorType)
     NametagGlobals.setMasterArrowsOn(0)
     intervalName = 'IntroductionMovie'
     delayDeletes = []
     seq = Parallel(self.showTitleText(), Sequence(self.makeIntroductionMovie(delayDeletes), Func(self.__beginBattleOne)), name=intervalName)
     seq.delayDeletes = delayDeletes
     seq.start()
     self.storeInterval(seq, intervalName)
開發者ID:ToontownBattlefront,項目名稱:Toontown-Battlefront,代碼行數:12,代碼來源:DistributedBossCog.py

示例13: exitPrepareBattleThree

# 需要導入模塊: from src.otp.nametag import NametagGlobals [as 別名]
# 或者: from src.otp.nametag.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'))
開發者ID:ToontownBattlefront,項目名稱:Toontown-Battlefront,代碼行數:13,代碼來源:DistributedCashbotBoss.py

示例14: enter

# 需要導入模塊: from src.otp.nametag import NametagGlobals [as 別名]
# 或者: from src.otp.nametag.NametagGlobals import setMasterArrowsOn [as 別名]
 def enter(self, requestStatus, bossCog):
     self.zoneId = requestStatus['zoneId']
     BattlePlace.BattlePlace.enter(self)
     self.fsm.enterInitialState()
     self.bossCog = bossCog
     if self.bossCog:
         self.bossCog.d_avatarEnter()
     self._telemLimiter = TLGatherAllAvs('CogHQBossBattle', RotationLimitToH)
     NametagGlobals.setMasterArrowsOn(1)
     base.localAvatar.inventory.setRespectInvasions(0)
     self.fsm.request(requestStatus['how'], [requestStatus])
開發者ID:ToontownBattlefront,項目名稱:Toontown-Battlefront,代碼行數:13,代碼來源:CogHQBossBattle.py

示例15: exit

# 需要導入模塊: from src.otp.nametag import NametagGlobals [as 別名]
# 或者: from src.otp.nametag.NametagGlobals import setMasterArrowsOn [as 別名]
 def exit(self):
     NametagGlobals.setMasterArrowsOn(0)
     self._telemLimiter.destroy()
     del self._telemLimiter
     if hasattr(base, 'factoryReady'):
         del base.factoryReady
     base.localAvatar.inventory.setRespectInvasions(1)
     self.fsm.requestFinalState()
     self.loader.music.stop()
     self.music.stop()
     self.ignoreAll()
開發者ID:ToontownBattlefront,項目名稱:Toontown-Battlefront,代碼行數:13,代碼來源:FactoryInterior.py


注:本文中的src.otp.nametag.NametagGlobals.setMasterArrowsOn方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。