• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python nametag.NametagGlobals类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中src.otp.nametag.NametagGlobals的典型用法代码示例。如果您正苦于以下问题:Python NametagGlobals类的具体用法?Python NametagGlobals怎么用?Python NametagGlobals使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了NametagGlobals类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: exitReward

 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,代码行数:7,代码来源:DistributedBattle.py


示例2: commence

 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,代码行数:7,代码来源:CountryClubInterior.py


示例3: enterControlled

    def enterControlled(self, avId):
        self.avId = avId
        self.toon = base.cr.doId2do.get(avId, None)
        if self.toon:
            self.toon.stopSmooth()
            self.toon.stopPosHprBroadcast()
            for feet in self.toon.getPieces(('legs', 'feet')):
                feet.hide()

            self.toon.reparentTo(self.toonSeat)
            self.toon.dropShadow.hide()
            self.notify.debug('setting pos of toon%s' % self.toon.doId)
            self.toon.setPosHpr(0, 0, 0, 0, 0, 0)
            self.toon.loop('sit')
            if self.toon.doId == localAvatar.doId:
                self.notify.debug('calling send currentPosition')
                self.toon.sendCurrentPosition()
            self.doHeadScale(self.toon, 1.75)
            self.toon.setShear(0, 0, 0)
        NametagGlobals.setOnscreenChatForced(1)
        if self.localVehicle:
            camera.reparentTo(self.cameraNode)
            camera.setPosHpr(0, -33, 16, 0, -10, 0)
            self.physicsMgr.attachPhysicalNode(self.node())
            self.__enableControlInterface()
            self.__createPieWindshield()
            self.startPosHprBroadcast()
            self.engineSfxTrack = self.generateEngineStartTrack()
            self.engineSfxTrack.start()
        else:
            self.startSmooth()
            taskName = 'updateNonlocalVehicle-%s' % avId
            self.updateNonLocalTask = taskMgr.add(self.__updateNonlocalVehicle, taskName)
        return
开发者ID:ToontownBattlefront,项目名称:Toontown-Battlefront,代码行数:34,代码来源:DistributedVehicle.py


示例4: enter

    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,代码行数:34,代码来源:Street.py


示例5: exitControlled

    def exitControlled(self):
        if self.localVehicle:
            self.stopPosHprBroadcast()
            self.__disableControlInterface()
            self.physicsMgr.removePhysicalNode(self.node())
            self.cleanupParticles()
            camera.reparentTo(localAvatar)
            camera.setPos(localAvatar.cameraPositions[0][0])
            camera.setHpr(0, 0, 0)
            self.engineSfxTrack.finish()
            self.engineSfxTrack = self.generateEngineStopTrack()
        else:
            self.stopSmooth()
            taskMgr.remove(self.updateNonLocalTask)
        if self.toon and not self.toon.isDisabled() and not self.toon.isEmpty():
            self.toon.dropShadow.show()
            self.doHeadScale(self.toon, None)
            self.toon.setPosHpr(self.geom[0], 0, 8, 0, 0, 0, 0)
            for feet in self.toon.getPieces(('legs', 'feet')):
                feet.show()

            self.toon.reparentTo(render)
            self.toon.loop('neutral')
            self.toon.startSmooth()
        NametagGlobals.setOnscreenChatForced(0)
        base.camLens.setMinFov(settings['fov']/(4./3.))
开发者ID:ToontownBattlefront,项目名称:Toontown-Battlefront,代码行数:26,代码来源:DistributedVehicle.py


示例6: exitReward

 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,代码行数:7,代码来源:DistributedLevelBattle.py


示例7: exitReward

 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,代码行数:7,代码来源:DistributedBattleFinal.py


示例8: commence

 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,代码行数:7,代码来源:MintInterior.py


示例9: exitFLM

 def exitFLM(self):
     self.notify.debug('FriendsListManager: exitFLM()')
     if self._preserveFriendsList:
         return
     if not self._entered:
         return
     self._entered = False
     self.ignore('openFriendsList')
     self.ignore('clickedNametag')
     base.localAvatar.setFriendsListButtonActive(0)
     NametagGlobals.setMasterNametagsActive(0)
     if self.avatarPanel:
         self.avatarPanel.cleanup()
         self.avatarPanel = None
     self.ignore('gotoAvatar')
     self.ignore('friendAvatar')
     self.ignore('avatarDetails')
     FriendsListPanel.hideFriendsList()
     if base.cr.friendManager:
         base.cr.friendManager.setAvailable(0)
     self.ignore('friendInvitation')
     FriendInviter.hideFriendInviter()
     ToonAvatarDetailPanel.hideAvatarDetail()
     ToonTeleportPanel.hideTeleportPanel()
     return
开发者ID:ToontownBattlefront,项目名称:Toontown-Battlefront,代码行数:25,代码来源:FriendsListManager.py


示例10: __unmakeGui

 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,代码行数:26,代码来源:DistributedLawbotCannon.py


示例11: exit

 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,代码行数:7,代码来源:ToonInterior.py


示例12: exitReward

    def exitReward(self):
        self.ignore('clientCleanup')
        taskMgr.remove('countUpTask')
        taskMgr.remove('countDownTask')
        taskMgr.remove('celebrate')
        taskMgr.remove('purchase-trans')
        taskMgr.remove('delayAdd')
        taskMgr.remove('delaySubtract')
        for toon in self.toons:
            toon.detachNode()

        del self.toons
        if hasattr(self, 'toonsKeep'):
            for delayDelete in self.toonsKeep:
                delayDelete.destroy()

            del self.toonsKeep
        for counter in self.counters:
            counter.reparentTo(hidden)

        for total in self.totalCounters:
            total.reparentTo(hidden)

        self.foreground.reparentTo(hidden)
        self.backgroundL.reparentTo(hidden)
        self.backgroundR.reparentTo(hidden)
        self.sidewalk.reparentTo(hidden)
        self.sidewalkL.reparentTo(hidden)
        self.sidewalkR.reparentTo(hidden)
        self.door.reparentTo(hidden)
        self.title.reparentTo(self.frame)
        self.rewardDoubledJellybeanLabel.hide()
        base.camLens.setMinFov(settings['fov']/(4./3.))
        NametagGlobals.setOnscreenChatForced(0)
开发者ID:ToontownBattlefront,项目名称:Toontown-Battlefront,代码行数:34,代码来源:Purchase.py


示例13: exitIntroduction

 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,代码行数:8,代码来源:DistributedBossCog.py


示例14: enterBattleFour

 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,代码行数:8,代码来源:DistributedBossCog.py


示例15: enterStageReward

 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,代码行数:9,代码来源:DistributedStageBattle.py


示例16: enterIntroduction

 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,代码行数:10,代码来源:DistributedBossCog.py


示例17: exit

 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,代码行数:11,代码来源:FactoryInterior.py


示例18: enter

 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])
开发者ID:ToontownBattlefront,项目名称:Toontown-Battlefront,代码行数:11,代码来源:ToonInterior.py


示例19: exitPrepareBattleThree

 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,代码行数:11,代码来源:DistributedCashbotBoss.py


示例20: enter

 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,代码行数:11,代码来源:CogHQBossBattle.py



注:本文中的src.otp.nametag.NametagGlobals类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python parser.parse函数代码示例发布时间:2022-05-27
下一篇:
Python ooxml_to_latex.OOXMLtoLatexParser类代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap