本文整理汇总了Python中toontown.toonbase.ToontownIntervals.cleanup方法的典型用法代码示例。如果您正苦于以下问题:Python ToontownIntervals.cleanup方法的具体用法?Python ToontownIntervals.cleanup怎么用?Python ToontownIntervals.cleanup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类toontown.toonbase.ToontownIntervals
的用法示例。
在下文中一共展示了ToontownIntervals.cleanup方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: destroy
# 需要导入模块: from toontown.toonbase import ToontownIntervals [as 别名]
# 或者: from toontown.toonbase.ToontownIntervals import cleanup [as 别名]
def destroy(self):
if self.av:
ToontownIntervals.cleanup(self.av.uniqueName('laffMeterBoing') + '-' + str(self.this))
ToontownIntervals.cleanup(self.av.uniqueName('laffMeterBoing') + '-' + str(self.this) + '-play')
self.ignore(self.av.uniqueName('hpChange'))
del self.style
del self.av
del self.hp
del self.maxHp
if self.isToon:
del self.frown
del self.smile
del self.openSmile
del self.tooth1
del self.tooth2
del self.tooth3
del self.tooth4
del self.tooth5
del self.tooth6
del self.teeth
del self.fractions
del self.maxLabel
del self.hpLabel
DirectFrame.destroy(self)
示例2: destroy
# 需要导入模块: from toontown.toonbase import ToontownIntervals [as 别名]
# 或者: from toontown.toonbase.ToontownIntervals import cleanup [as 别名]
def destroy(self):
ToontownIntervals.cleanup('memocount_pulse')
self._countLabel.removeNode()
del self._countLabel
self._memoIcon.removeNode()
del self._memoIcon
DirectFrame.destroy(self)
示例3: delete
# 需要导入模块: from toontown.toonbase import ToontownIntervals [as 别名]
# 或者: from toontown.toonbase.ToontownIntervals import cleanup [as 别名]
def delete(self):
DistributedObject.DistributedObject.delete(self)
ToontownIntervals.cleanup(self.__pulseIvalName())
if self.model:
self.model.removeNode()
del self.model
self.model = None
self.ignore(self.uniqueName('enterbarrelSphere'))
示例4: animatedEffect
# 需要导入模块: from toontown.toonbase import ToontownIntervals [as 别名]
# 或者: from toontown.toonbase.ToontownIntervals import cleanup [as 别名]
def animatedEffect(self, delta):
if delta == 0 or self.av == None:
return
name = self.av.uniqueName('laffMeterBoing') + '-' + str(self.this)
ToontownIntervals.cleanup(name)
if delta > 0:
ToontownIntervals.start(ToontownIntervals.getPulseLargerIval(self.container, name))
else:
ToontownIntervals.start(ToontownIntervals.getPulseSmallerIval(self.container, name))
return
示例5: destroy
# 需要导入模块: from toontown.toonbase import ToontownIntervals [as 别名]
# 或者: from toontown.toonbase.ToontownIntervals import cleanup [as 别名]
def destroy(self):
ToontownIntervals.cleanup('bosscodedoor')
self._model.removeNode()
del self._model
self._titleLabel.removeNode()
del self._titleLabel
for marker in self._markers:
marker.destroy()
del self._markers
DirectFrame.destroy(self)
示例6: destroy
# 需要导入模块: from toontown.toonbase import ToontownIntervals [as 别名]
# 或者: from toontown.toonbase.ToontownIntervals import cleanup [as 别名]
def destroy(self):
ToontownIntervals.cleanup('present_fuel_gui')
ToontownIntervals.cleanup('present_timer_gui')
ToontownIntervals.cleanup('present_memo_gui')
ToontownIntervals.cleanup('present_progress_gui')
self._refuelGui.destroy()
self._refuelGui = None
self._memoGui.destroy()
self._memoGui = None
self._progressGui.destroy()
self._progressGui = None
self.destroyTimer()
self._messageDisplay.destroy()
self._messageDisplay = None
self.root.removeNode()
self.root = None
示例7: destroy
# 需要导入模块: from toontown.toonbase import ToontownIntervals [as 别名]
# 或者: from toontown.toonbase.ToontownIntervals import cleanup [as 别名]
def destroy(self):
ToontownIntervals.cleanup('present_gui')
ToontownIntervals.cleanup('present_timer')
ToontownIntervals.cleanup('present_memo')
self._hud.destroy()
self._hud = None
self._memoGui.destroy()
self._memoGui = None
if self._bossGui is not None:
self._bossGui.destroy()
self._bossGui = None
self.messageDisplay.destroy()
self.messageDisplay = None
self.destroyMazeMap()
self.destroyTimer()
if self._presentGuiIval:
self._presentGuiIval.pause()
self._presentGuiIval = None
if self._presentTimerIval:
self._presentTimerIval.pause()
self._presentTimerIval = None
示例8: showNumber
# 需要导入模块: from toontown.toonbase import ToontownIntervals [as 别名]
# 或者: from toontown.toonbase.ToontownIntervals import cleanup [as 别名]
def showNumber(self):
self.setHit(False)
self._bossIconX.show()
ToontownIntervals.cleanup('boss_code%i' % self._id)
ToontownIntervals.start(Sequence(Parallel(ToontownIntervals.getPresentGuiIval(self._bossIcon, '', startPos=(0, 0, -0.15))), Wait(1.0), ToontownIntervals.getPulseLargerIval(self._bg, ''), name='boss_code%i' % self._id))
示例9: setCount
# 需要导入模块: from toontown.toonbase import ToontownIntervals [as 别名]
# 或者: from toontown.toonbase.ToontownIntervals import cleanup [as 别名]
def setCount(self, count):
self._countLabel['text'] = str(count)
self._countLabel.setText()
ToontownIntervals.cleanup('memocount_pulse')
ToontownIntervals.start(ToontownIntervals.getPulseLargerIval(self._memoIcon, 'memocount_pulse', scale=MEMOICON_SCALE))