当前位置: 首页>>代码示例>>Python>>正文


Python NametagGlobals.setWant2dNametags方法代码示例

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


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

示例1: exitReward

# 需要导入模块: from toontown.nametag import NametagGlobals [as 别名]
# 或者: from toontown.nametag.NametagGlobals import setWant2dNametags [as 别名]
 def exitReward(self):
     self.notify.info('exitReward()')
     self.clearInterval(self.uniqueName('floorReward'))
     self._removeMembersKeep()
     NametagGlobals.setWant2dNametags(True)
     for toon in self.toons:
         toon.startSmooth()
开发者ID:NostalgicTTR,项目名称:Toontown-Infinite-2016-Leak,代码行数:9,代码来源:DistributedLevelBattle.py

示例2: exitReward

# 需要导入模块: from toontown.nametag import NametagGlobals [as 别名]
# 或者: from toontown.nametag.NametagGlobals import setWant2dNametags [as 别名]
 def exitReward(self):
     self.notify.debug('exitReward()')
     self.ignore('resumeAfterReward')
     self.movie.resetReward(finish=1)
     self._removeMembersKeep()
     NametagGlobals.setWant2dNametags(True)
     Emote.globalEmote.releaseAll(base.localAvatar, 'dbattle, exitReward')
开发者ID:NostalgicTTR,项目名称:Toontown-Infinite-2016-Leak,代码行数:9,代码来源:DistributedBattle.py

示例3: commence

# 需要导入模块: from toontown.nametag import NametagGlobals [as 别名]
# 或者: from toontown.nametag.NametagGlobals import setWant2dNametags [as 别名]
 def commence(self=self):
     NametagGlobals.setWant2dNametags(True)
     self.fsm.request(requestStatus["how"], [requestStatus])
     base.playMusic(self.music, looping=1, volume=0.8)
     base.transitions.irisIn()
     stage = bboard.get(DistributedStage.DistributedStage.ReadyPost)
     self.loader.hood.spawnTitleText(stage.stageId)
开发者ID:GangStarrG,项目名称:src,代码行数:9,代码来源:StageInterior.py

示例4: commence

# 需要导入模块: from toontown.nametag import NametagGlobals [as 别名]
# 或者: from toontown.nametag.NametagGlobals import setWant2dNametags [as 别名]
 def commence(self = self):
     NametagGlobals.setWant2dNametags(True)
     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:Teku16,项目名称:Toontown-Crystal-Master,代码行数:9,代码来源:MintInterior.py

示例5: exit

# 需要导入模块: from toontown.nametag import NametagGlobals [as 别名]
# 或者: from toontown.nametag.NametagGlobals import setWant2dNametags [as 别名]
 def exit(self):
     self.ignoreAll()
     messenger.send('exitToonInterior')
     self._telemLimiter.destroy()
     del self._telemLimiter
     NametagGlobals.setWant2dNametags(False)
     self.loader.activityMusic.stop()
开发者ID:CalebSmith376,项目名称:src,代码行数:9,代码来源:ToonInterior.py

示例6: __unmakeGui

# 需要导入模块: from toontown.nametag import NametagGlobals [as 别名]
# 或者: from toontown.nametag.NametagGlobals import setWant2dNametags [as 别名]
 def __unmakeGui(self):
     self.notify.debug('__unmakeGui')
     if not self.madeGui:
         return
     if self.flashingLabel:
         self.flashingLabel.finish()
         self.flashingLabel = None
     NametagGlobals.setWant2dNametags(True)
     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:NostalgicTTR,项目名称:Toontown-Infinite-2016-Leak,代码行数:28,代码来源:DistributedLawbotCannon.py

示例7: enterBattleFour

# 需要导入模块: from toontown.nametag import NametagGlobals [as 别名]
# 或者: from toontown.nametag.NametagGlobals import setWant2dNametags [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.setWant2dNametags(False)
     NametagGlobals.setWantActiveNametags(True)
开发者ID:Teku16,项目名称:Toontown-Crystal-Master,代码行数:10,代码来源:DistributedBossCog.py

示例8: exitIntroduction

# 需要导入模块: from toontown.nametag import NametagGlobals [as 别名]
# 或者: from toontown.nametag.NametagGlobals import setWant2dNametags [as 别名]
 def exitIntroduction(self):
     self.notify.debug('DistributedBossCog.exitIntroduction:')
     intervalName = 'IntroductionMovie'
     self.clearInterval(intervalName)
     self.unstickToons()
     self.releaseToons()
     NametagGlobals.setWant2dNametags(True)
     ElevatorUtils.closeDoors(self.leftDoor, self.rightDoor, self.elevatorType)
开发者ID:Teku16,项目名称:Toontown-Crystal-Master,代码行数:10,代码来源:DistributedBossCog.py

示例9: enterCountryClubReward

# 需要导入模块: from toontown.nametag import NametagGlobals [as 别名]
# 或者: from toontown.nametag.NametagGlobals import setWant2dNametags [as 别名]
 def enterCountryClubReward(self, ts):
     self.notify.debug('enterCountryClubReward()')
     self.disableCollision()
     self.delayDeleteMembers()
     if self.hasLocalToon():
         NametagGlobals.setWant2dNametags(False)
         if self.bossBattle:
             messenger.send('localToonConfrontedCountryClubBoss')
     self.movie.playReward(ts, self.uniqueName('building-reward'), self.__handleCountryClubRewardDone, noSkip=True)
开发者ID:CalebSmith376,项目名称:src,代码行数:11,代码来源:DistributedCountryClubBattle.py

示例10: exitPrepareBattleThree

# 需要导入模块: from toontown.nametag import NametagGlobals [as 别名]
# 或者: from toontown.nametag.NametagGlobals import setWant2dNametags [as 别名]
 def exitPrepareBattleThree(self):
     intervalName = 'PrepareBattleThreeMovie'
     self.clearInterval(intervalName)
     self.unstickToons()
     self.releaseToons()
     if self.newState == 'BattleThree':
         self.movieCrane.request('Free')
     NametagGlobals.setWant2dNametags(True)
     ElevatorUtils.closeDoors(self.leftDoor, self.rightDoor, ElevatorConstants.ELEVATOR_CFO)
     taskMgr.remove(self.uniqueName('physics'))
开发者ID:CalebSmith376,项目名称:src,代码行数:12,代码来源:DistributedCashbotBoss.py

示例11: enterIntroduction

# 需要导入模块: from toontown.nametag import NametagGlobals [as 别名]
# 或者: from toontown.nametag.NametagGlobals import setWant2dNametags [as 别名]
 def enterIntroduction(self):
     self.controlToons()
     ElevatorUtils.openDoors(self.leftDoor, self.rightDoor, self.elevatorType)
     NametagGlobals.setWant2dNametags(False)
     intervalName = 'IntroductionMovie'
     delayDeletes = []
     seq = Sequence(self.makeIntroductionMovie(delayDeletes), Func(self.__beginBattleOne), name=intervalName)
     seq.delayDeletes = delayDeletes
     seq.start()
     self.storeInterval(seq, intervalName)
开发者ID:Teku16,项目名称:Toontown-Crystal-Master,代码行数:12,代码来源:DistributedBossCog.py

示例12: exit

# 需要导入模块: from toontown.nametag import NametagGlobals [as 别名]
# 或者: from toontown.nametag.NametagGlobals import setWant2dNametags [as 别名]
 def exit(self):
     NametagGlobals.setWant2dNametags(False)
     bboard.remove(DistributedMint.DistributedMint.ReadyPost)
     self._telemLimiter.destroy()
     del self._telemLimiter
     base.localAvatar.inventory.setRespectInvasions(1)
     self.fsm.requestFinalState()
     self.loader.music.stop()
     self.music.stop()
     self.ignoreAll()
     del self.mintReadyWatcher
开发者ID:Teku16,项目名称:ToontownPlanet,代码行数:13,代码来源:MintInterior.py

示例13: enter

# 需要导入模块: from toontown.nametag import NametagGlobals [as 别名]
# 或者: from toontown.nametag.NametagGlobals import setWant2dNametags [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.setWant2dNametags(True)
     base.localAvatar.inventory.setRespectInvasions(0)
     self.fsm.request(requestStatus['how'], [requestStatus])
开发者ID:nate97,项目名称:src,代码行数:13,代码来源:CogHQBossBattle.py

示例14: exitPrepareBattleThree

# 需要导入模块: from toontown.nametag import NametagGlobals [as 别名]
# 或者: from toontown.nametag.NametagGlobals import setWant2dNametags [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.setWant2dNametags(True)
     ElevatorUtils.closeDoors(self.leftDoor, self.rightDoor, ElevatorConstants.ELEVATOR_CFO)
     taskMgr.remove(self.uniqueName("physics"))
开发者ID:ponyboy837,项目名称:TTI-Leak--From-2015-,代码行数:13,代码来源:DistributedCashbotBoss.py

示例15: exit

# 需要导入模块: from toontown.nametag import NametagGlobals [as 别名]
# 或者: from toontown.nametag.NametagGlobals import setWant2dNametags [as 别名]
 def exit(self):
     NametagGlobals.setWant2dNametags(False)
     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:nate97,项目名称:src,代码行数:13,代码来源:FactoryInterior.py


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