mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 11:28:17 -04:00
*** empty log message ***
This commit is contained in:
parent
fc8156209d
commit
b718a06622
@ -108,6 +108,9 @@ class Interval(DirectObject):
|
|||||||
self.setT(self.curr_t, event = IVAL_STOP)
|
self.setT(self.curr_t, event = IVAL_STOP)
|
||||||
return self.curr_t
|
return self.curr_t
|
||||||
|
|
||||||
|
def isPlaying(self):
|
||||||
|
return taskMgr.hasTaskNamed(self.name + '-play')
|
||||||
|
|
||||||
def __playTask(self, task):
|
def __playTask(self, task):
|
||||||
""" __playTask(task)
|
""" __playTask(task)
|
||||||
"""
|
"""
|
||||||
|
@ -323,6 +323,12 @@ class TaskManager:
|
|||||||
# Return the number of tasks removed
|
# Return the number of tasks removed
|
||||||
return len(removedTasks)
|
return len(removedTasks)
|
||||||
|
|
||||||
|
def hasTaskNamed(self, taskName):
|
||||||
|
for task in self.taskList:
|
||||||
|
if (task.name == taskName):
|
||||||
|
return 1
|
||||||
|
return 0
|
||||||
|
|
||||||
def removeTasksMatching(self, taskPattern):
|
def removeTasksMatching(self, taskPattern):
|
||||||
"""removeTasksMatching(self, string taskPattern)
|
"""removeTasksMatching(self, string taskPattern)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user