本文整理匯總了Python中libotp.NametagGlobals.setGlobalNametagScale方法的典型用法代碼示例。如果您正苦於以下問題:Python NametagGlobals.setGlobalNametagScale方法的具體用法?Python NametagGlobals.setGlobalNametagScale怎麽用?Python NametagGlobals.setGlobalNametagScale使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類libotp.NametagGlobals
的用法示例。
在下文中一共展示了NametagGlobals.setGlobalNametagScale方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: onstage
# 需要導入模塊: from libotp import NametagGlobals [as 別名]
# 或者: from libotp.NametagGlobals import setGlobalNametagScale [as 別名]
def onstage(self):
self.notify.debug('onstage')
DistributedMinigame.onstage(self)
self.lt = base.localAvatar
NametagGlobals.setGlobalNametagScale(1)
self.arrowKeys = ArrowKeys.ArrowKeys()
self.room.reparentTo(render)
self.room.setPosHpr(0.0, 18.39, -ToontownGlobals.FloorOffset, 0.0, 0.0, 0.0)
self.room.setScale(0.4)
self.sky.setZ(-5)
self.sky.reparentTo(render)
self.dropShadow.setColor(0, 0, 0, 0.5)
camera.reparentTo(render)
camera.setPosHpr(-11.4427, 9.03559, 2.80094, -49.104, -0.89, 0)
self.dropShadow.setBin('fixed', 0, 1)
self.splash.reparentTo(render)
self.suitSplash.reparentTo(render)
base.playMusic(self.music, looping=1, volume=1)
for x in range(len(self.arrows)):
self.arrows[x].show()
for avId in self.avIdList:
self.pullingDict[avId] = 0
示例2: offstage
# 需要導入模塊: from libotp import NametagGlobals [as 別名]
# 或者: from libotp.NametagGlobals import setGlobalNametagScale [as 別名]
def offstage(self):
self.notify.debug('offstage')
DistributedMinigame.offstage(self)
self.music.stop()
if self.introTrack:
self.introTrack.finish()
del self.introTrack
self.introTrack = None
for track in self.animTracks.values():
if track:
track.finish()
del track
self.animTracks = {}
if self.showTrack:
self.showTrack.finish()
del self.showTrack
self.showTrack = None
if self.setupTrack:
self.setupTrack.finish()
del self.setupTrack
self.setupTrack = None
base.camLens.setMinFov(ToontownGlobals.DefaultCameraFov/(4./3.))
base.camLens.setNearFar(ToontownGlobals.DefaultCameraNear, ToontownGlobals.DefaultCameraFar)
NametagGlobals.setGlobalNametagScale(1.0)
if self.arrowKeys:
self.arrowKeys.setPressHandlers(self.arrowKeys.NULL_HANDLERS)
self.arrowKeys.setReleaseHandlers(self.arrowKeys.NULL_HANDLERS)
self.arrowKeys.destroy()
del self.arrowKeys
self.arrowKeys = None
self.room.reparentTo(hidden)
self.sky.reparentTo(hidden)
self.splash.reparentTo(hidden)
self.splash.stop()
self.suitSplash.reparentTo(hidden)
self.suitSplash.stop()
self.ripples.reparentTo(hidden)
self.ripples.stop()
self.hideControls()
self.roundText.hide()
for avId in self.avIdList:
av = self.getAvatar(avId)
if av:
av.loop('neutral')
av.resetLOD()
av.dropShadow.show()
for x in self.tugRopes:
if x != None:
x.reparentTo(hidden)
if self.suit:
self.suit.reparentTo(hidden)
for avId in self.avIdList:
if self.dropShadowDict.has_key(avId):
self.dropShadowDict[avId].reparentTo(hidden)
if self.dropShadowDict.has_key(self.suitId):
self.dropShadowDict[self.suitId].reparentTo(hidden)
return