本文整理汇总了Python中toontown.toon.Toon类的典型用法代码示例。如果您正苦于以下问题:Python Toon类的具体用法?Python Toon怎么用?Python Toon使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Toon类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: load
def load(self):
Toon.loadMinigameAnims()
self.defaultSignModel = loader.loadModel("phase_13/models/parties/eventSign")
self.activityIconsModel = loader.loadModel("phase_4/models/parties/eventSignIcons")
model = loader.loadModel("phase_4/models/parties/partyStickerbook")
self.partyHat = model.find("**/Stickerbook_PartyIcon")
self.partyHat.setPos(0.0, 0.1, 2.5)
self.partyHat.setHpr(0.0, 0.0, -50.0)
self.partyHat.setScale(4.0)
self.partyHat.setBillboardAxis()
self.partyHat.reparentTo(hidden)
model.removeNode()
self.defaultLeverModel = loader.loadModel("phase_13/models/parties/partyLeverBase")
self.defaultStickModel = loader.loadModel("phase_13/models/parties/partyLeverStick")
示例2: unload
def unload(self):
if hasattr(self, 'decorationsList') and self.decorationsList:
for decor in self.decorationsList:
decor.unload()
del self.decorationsList
self.stopPartyClock()
self.grassRoot.removeNode()
del self.grassRoot
if hasattr(self, 'testGrid'):
self.testGrid.removeNode()
del self.testGrid
self.ignoreAll()
Toon.unloadMinigameAnims()
self.removePartyHats()
if hasattr(base, 'partyHasJukebox'):
del base.partyHasJukebox
示例3: unload
def unload(self):
CogHQLoader.CogHQLoader.unload(self)
self.__handleInterests(0)
Toon.unloadSellbotHQAnims()
示例4: load
def load(self, zoneId):
CogHQLoader.CogHQLoader.load(self, zoneId)
Toon.loadSellbotHQAnims()
示例5: unloadBattleAnims
def unloadBattleAnims(self):
Toon.unloadTutorialBattleAnims()
示例6: loadBattleAnims
def loadBattleAnims(self):
Toon.loadTutorialBattleAnims()
示例7: unload
def unload(self):
CogHQLoader.CogHQLoader.unload(self)
Toon.unloadSellbotHQAnims()
示例8: load
def load(self):
Place.Place.load(self)
Toon.loadBattleAnims()
示例9: unload
def unload(self):
CogHQLoader.CogHQLoader.unload(self)
Toon.unloadCashbotHQAnims()
示例10: unloadBattleAnims
def unloadBattleAnims(self):
Toon.unloadBattleAnims()
示例11: loadBattleAnims
def loadBattleAnims(self):
Toon.loadBattleAnims()
示例12: unload
def unload(self):
self.notify.debug("BASE: unload")
if hasattr(base, "curMinigame"):
del base.curMinigame
Toon.unloadMinigameAnims()
示例13: load
def load(self):
self.notify.debug("BASE: load")
Toon.loadMinigameAnims()
示例14: load
def load(self):
Toon.loadMinigameAnims()
self.defaultSignModel = loader.loadModel('phase_13/models/parties/eventSign')
self.activityIconsModel = loader.loadModel('phase_4/models/parties/eventSignIcons')
self.defaultLeverModel = loader.loadModel('phase_13/models/parties/partyLeverBase')
self.defaultStickModel = loader.loadModel('phase_13/models/parties/partyLeverStick')