support BGAnimation::FinishTweening
This commit is contained in:
@@ -219,6 +219,12 @@ float BGAnimation::GetTweenTimeLeft() const
|
||||
return tot;
|
||||
}
|
||||
|
||||
void BGAnimation::FinishTweening()
|
||||
{
|
||||
for( unsigned i=0; i<m_Layers.size(); i++ )
|
||||
m_Layers[i]->FinishTweening();
|
||||
}
|
||||
|
||||
void BGAnimation::PlayCommand( const CString &cmd )
|
||||
{
|
||||
for( unsigned i=0; i<m_Layers.size(); i++ )
|
||||
|
||||
@@ -46,6 +46,7 @@ public:
|
||||
void PlayCommand( const CString &cmd );
|
||||
|
||||
float GetTweenTimeLeft() const;
|
||||
void FinishTweening();
|
||||
|
||||
protected:
|
||||
vector<BGAnimationLayer*> m_Layers;
|
||||
|
||||
@@ -640,6 +640,12 @@ float BGAnimationLayer::GetMaxTweenTimeLeft() const
|
||||
return ret;
|
||||
}
|
||||
|
||||
void BGAnimationLayer::FinishTweening()
|
||||
{
|
||||
for( unsigned i=0; i<m_pActors.size(); i++ )
|
||||
m_pActors[i]->FinishTweening();
|
||||
}
|
||||
|
||||
void BGAnimationLayer::Update( float fDeltaTime )
|
||||
{
|
||||
fDeltaTime *= m_fUpdateRate;
|
||||
|
||||
@@ -36,6 +36,7 @@ public:
|
||||
void SetDiffuse( RageColor c );
|
||||
|
||||
float GetMaxTweenTimeLeft() const;
|
||||
void FinishTweening();
|
||||
void GainingFocus( float fRate, bool bRewindMovie, bool bLoop );
|
||||
void LosingFocus();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user