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