make FinishTweening recursive
This commit is contained in:
@@ -88,6 +88,15 @@ void ActorFrame::SetUseZBuffer( bool b )
|
|||||||
m_SubActors[i]->SetUseZBuffer( b );
|
m_SubActors[i]->SetUseZBuffer( b );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ActorFrame::FinishTweening()
|
||||||
|
{
|
||||||
|
Actor::FinishTweening();
|
||||||
|
|
||||||
|
// set all sub-Actors
|
||||||
|
for( unsigned i=0; i<m_SubActors.size(); i++ )
|
||||||
|
m_SubActors[i]->FinishTweening();
|
||||||
|
}
|
||||||
|
|
||||||
float ActorFrame::GetTweenTimeLeft() const
|
float ActorFrame::GetTweenTimeLeft() const
|
||||||
{
|
{
|
||||||
float m = Actor::GetTweenTimeLeft();
|
float m = Actor::GetTweenTimeLeft();
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ public:
|
|||||||
virtual void SetDiffuse( RageColor c );
|
virtual void SetDiffuse( RageColor c );
|
||||||
|
|
||||||
virtual void SetUseZBuffer( bool b );
|
virtual void SetUseZBuffer( bool b );
|
||||||
|
virtual void FinishTweening();
|
||||||
|
|
||||||
/* Amount of time until all tweens (and all children's tweens) have stopped: */
|
/* Amount of time until all tweens (and all children's tweens) have stopped: */
|
||||||
virtual float GetTweenTimeLeft() const;
|
virtual float GetTweenTimeLeft() const;
|
||||||
|
|||||||
Reference in New Issue
Block a user