Change loop paramter on particle and sound intervals which was stomping on loop function

This commit is contained in:
Mark Mine 2002-10-19 23:34:04 +00:00
parent 141cb888f6
commit 802d4549d9
3 changed files with 5 additions and 5 deletions

View File

@ -25,7 +25,7 @@ class ParticleInterval(Interval.Interval):
self.particleEffect = particleEffect
self.parent = parent
self.worldRelative = worldRelative
self.loop = loop
self.fLoop = loop
assert(duration > 0.0 or loop == 1)
# Initialize superclass
Interval.Interval.__init__(self, name, duration)

View File

@ -27,7 +27,7 @@ class SoundInterval(Interval.Interval):
SoundInterval.soundNum += 1
# Record instance variables
self.sound = sound
self.loop = loop
self.fLoop = loop
self.volume = volume
self.startTime = startTime
# If no duration given use sound's duration as interval's duration
@ -55,7 +55,7 @@ class SoundInterval(Interval.Interval):
if self.sound != None:
self.sound.setVolume(self.volume)
self.sound.setTime(t1)
self.sound.setLoop(self.loop)
self.sound.setLoop(self.fLoop)
self.sound.play()
self.state = CInterval.SStarted
self.currT = t1
@ -66,7 +66,7 @@ class SoundInterval(Interval.Interval):
if self.sound != None:
self.sound.setVolume(self.volume)
self.sound.setTime(t)
self.sound.setLoop(self.loop)
self.sound.setLoop(self.fLoop)
self.sound.play()
self.state = CInterval.SStarted
self.currT = t

View File

@ -42,7 +42,7 @@ class Slider(Valuator):
style = self['style'],
command = self.setEntry,
value = self['value'])
self._valuator._widget.bind('<Double-ButtonPress-1>', self.mouseReset)
#self._valuator._widget.bind('<Double-ButtonPress-1>', self.mouseReset)
# Add popup bindings to slider widget
try: