take noTransition out of fade ivals, that is just wrong

This commit is contained in:
Samir Naik 2007-04-09 18:36:52 +00:00
parent 50cc26d546
commit 9dad81603f

View File

@ -86,9 +86,9 @@ class Transitions:
Returns an interval without starting it. This is particularly useful in Returns an interval without starting it. This is particularly useful in
cutscenes, so when the cutsceneIval is escaped out of we can finish the fade immediately cutscenes, so when the cutsceneIval is escaped out of we can finish the fade immediately
""" """
transitionIval = Sequence(Func(self.noTransitions), self.noTransitions()
Func(self.loadFade), self.loadFade()
Func(self.fade.reparentTo, render2d, FADE_SORT_INDEX), transitionIval = Sequence(Func(self.fade.reparentTo, render2d, FADE_SORT_INDEX),
self.lerpFunc(self.fade, t, self.lerpFunc(self.fade, t,
self.alphaOff, self.alphaOff,
self.alphaOn), self.alphaOn),
@ -104,9 +104,12 @@ class Transitions:
Create a sequence that lerps the color out, then Create a sequence that lerps the color out, then
parents the fade to hidden parents the fade to hidden
""" """
transitionIval = Sequence(Func(self.noTransitions), self.noTransitions()
Func(self.loadFade), self.loadFade()
Func(self.fade.reparentTo,render2d,FADE_SORT_INDEX),
print "t = %s" % t
transitionIval = Sequence(Func(self.fade.reparentTo,render2d,FADE_SORT_INDEX),
self.lerpFunc(self.fade, t, self.lerpFunc(self.fade, t,
self.alphaOn, self.alphaOn,
self.alphaOff), self.alphaOff),