本文整理汇总了Python中toontown.toonbase.ToontownIntervals类的典型用法代码示例。如果您正苦于以下问题:Python ToontownIntervals类的具体用法?Python ToontownIntervals怎么用?Python ToontownIntervals使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ToontownIntervals类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: showTimer
def showTimer(self, duration, timerExpiredCallback = None):
if self._timer is None:
self._initTimer()
self._timer.setTime(duration)
self._timer.countdown(duration, timerExpiredCallback)
self._presentTimerIval = ToontownIntervals.start(ToontownIntervals.getPresentGuiIval(self._timer, 'present_timer', startPos=(0, 0, 0.35)))
return
开发者ID:frogtongue,项目名称:tonguefrog,代码行数:7,代码来源:CogdoMazeGuiManager.py
示例2: destroy
def destroy(self):
ToontownIntervals.cleanup('memocount_pulse')
self._countLabel.removeNode()
del self._countLabel
self._memoIcon.removeNode()
del self._memoIcon
DirectFrame.destroy(self)
开发者ID:AdrianF98,项目名称:Toontown-Rewritten,代码行数:7,代码来源:CogdoMemoGui.py
示例3: destroy
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)
开发者ID:OldToontown,项目名称:OldToontown,代码行数:26,代码来源:LaffMeter.py
示例4: showNumber
def showNumber(self, bossIndex):
self._markers[bossIndex].setHit(False)
self._markers[bossIndex].showNumber()
self._markersShown += 1
if self._markersShown == self._codeLength:
self._openDoor.unstash()
self._closedDoor.stash()
ToontownIntervals.start(ToontownIntervals.getPulseLargerIval(self._openDoor, 'bosscodedoor'))
开发者ID:Teku16,项目名称:Toontown-Crystal-Master,代码行数:8,代码来源:CogdoMazeGameGuis.py
示例5: delete
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'))
开发者ID:Toonerz,项目名称:Toontown-World-Online-Leak,代码行数:8,代码来源:DistributedCogdoBarrel.py
示例6: startGame
def startGame(self, firstMessage):
self._presentGuiIval = ToontownIntervals.start(
Sequence(
ToontownIntervals.getPresentGuiIval(self._bossGui, "", startPos=(0, 0, -0.15)),
Func(self.mazeMapGui.show),
ToontownIntervals.getPulseLargerIval(self.mazeMapGui, "", scale=self.mazeMapGui.getScale()),
Func(self.setMessage, firstMessage),
name="present_gui",
)
)
开发者ID:BmanGames,项目名称:ToontownStride,代码行数:10,代码来源:CogdoMazeGuiManager.py
示例7: destroy
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)
开发者ID:Teku16,项目名称:Toontown-Crystal-Master,代码行数:11,代码来源:CogdoMazeGameGuis.py
示例8: animatedEffect
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
开发者ID:Toonerz,项目名称:Toontown-World-Online-Leaked-Source,代码行数:10,代码来源:LaffMeter.py
示例9: showMoveControls
def showMoveControls(self):
if self._moveKeys.isHidden() and not self._attackKeys.isHidden():
self._moveKeys.show()
taskMgr.remove(self._moveIvalName)
Sequence(
ToontownIntervals.getPulseLargerIval(self._moveKeys, "", scale=0.15),
Wait(PartyGlobals.CogActivityControlsShowTime),
Func(self.hideMoveControls),
name=self._moveIvalName,
autoFinish=1,
).start()
开发者ID:BmanGames,项目名称:Toontown-Level-Editor,代码行数:11,代码来源:PartyCogActivityGui.py
示例10: showSpamWarning
def showSpamWarning(self):
if self._spamWarning.isHidden():
self._spamWarning.show()
taskMgr.remove(self._spamWarningIvalName)
Sequence(
ToontownIntervals.getPulseLargerIval(self._spamWarning, ""),
Wait(PartyGlobals.CogActivitySpamWarningShowTime),
Func(self.hideSpamWarning),
name=self._spamWarningIvalName,
autoFinish=1,
).start()
开发者ID:BmanGames,项目名称:Toontown-Level-Editor,代码行数:11,代码来源:PartyCogActivityGui.py
示例11: destroy
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
开发者ID:Toonerz,项目名称:Toontown-World-Online-Leak,代码行数:16,代码来源:CogdoFlyingGuiManager.py
示例12: destroy
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
开发者ID:Toonerz,项目名称:Toontown-World-Online-Leak,代码行数:21,代码来源:CogdoMazeGuiManager.py
示例13: setGrab
def setGrab(self, avId):
toonup = CogdoBarrelRoomConsts.ToonUp
if avId == base.localAvatar.doId:
ToontownIntervals.start(ToontownIntervals.getPulseIval(self.model, self.__pulseIvalName(), 1.15, duration=0.2))
self.setState(CogdoBarrelRoomConsts.StateUsed)
self.brLaff = random.randint(toonup[0], toonup[1])
开发者ID:Toonerz,项目名称:Toontown-World-Online-Leak,代码行数:6,代码来源:DistributedCogdoBarrel.py
示例14: presentMemoGui
def presentMemoGui(self):
ToontownIntervals.start(ToontownIntervals.getPresentGuiIval(self._memoGui, 'present_memo_gui'))
开发者ID:nate97,项目名称:src,代码行数:2,代码来源:CogdoFlyingGuiManager.py
示例15: presentTimerGui
def presentTimerGui(self):
ToontownIntervals.start(ToontownIntervals.getPresentGuiIval(self._timer, 'present_timer_gui'))
开发者ID:nate97,项目名称:src,代码行数:2,代码来源:CogdoFlyingGuiManager.py
示例16: presentRefuelGui
def presentRefuelGui(self):
ToontownIntervals.start(ToontownIntervals.getPresentGuiIval(self._refuelGui, 'present_fuel_gui'))
开发者ID:nate97,项目名称:src,代码行数:2,代码来源:CogdoFlyingGuiManager.py
示例17: presentProgressGui
def presentProgressGui(self):
ToontownIntervals.start(ToontownIntervals.getPresentGuiIval(self._progressGui, 'present_progress_gui'))
开发者ID:nate97,项目名称:src,代码行数:2,代码来源:CogdoFlyingGuiManager.py
示例18: setCount
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))
开发者ID:AdrianF98,项目名称:Toontown-Rewritten,代码行数:5,代码来源:CogdoMemoGui.py
示例19: showPickupCounter
def showPickupCounter(self):
ToontownIntervals.start(ToontownIntervals.getPresentGuiIval(self._memoGui, 'present_memo'))
开发者ID:frogtongue,项目名称:tonguefrog,代码行数:2,代码来源:CogdoMazeGuiManager.py
示例20: setGrab
def setGrab(self, avId):
if avId == base.localAvatar.doId:
ToontownIntervals.start(ToontownIntervals.getPulseIval(self.model, self.__pulseIvalName(), 1.15, duration=0.2))
self.setState(CogdoBarrelRoomConsts.StateUsed)
开发者ID:AdrianF98,项目名称:Toontown-Rewritten,代码行数:4,代码来源:DistributedCogdoBarrel.py
注:本文中的toontown.toonbase.ToontownIntervals类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论