add BGAnimationLayer::GetMaxTweenTimeLeft
this isn't an overload of GetTweenTimeLeft, since it returns the tween time of its children, which is separate from its own tween time
This commit is contained in:
@@ -600,6 +600,16 @@ void BGAnimationLayer::LoadFromIni( CString sAniDir, CString sLayer )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
float BGAnimationLayer::GetMaxTweenTimeLeft() const
|
||||||
|
{
|
||||||
|
float ret = 0;
|
||||||
|
|
||||||
|
for( unsigned i=0; i<m_Sprites.size(); i++ )
|
||||||
|
ret = max(ret, m_Sprites[i]->GetTweenTimeLeft());
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
void BGAnimationLayer::Update( float fDeltaTime )
|
void BGAnimationLayer::Update( float fDeltaTime )
|
||||||
{
|
{
|
||||||
const float fSongBeat = GAMESTATE->m_fSongBeat;
|
const float fSongBeat = GAMESTATE->m_fSongBeat;
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ public:
|
|||||||
|
|
||||||
virtual void SetDiffuse( RageColor c );
|
virtual void SetDiffuse( RageColor c );
|
||||||
|
|
||||||
|
float GetMaxTweenTimeLeft() const;
|
||||||
void GainingFocus();
|
void GainingFocus();
|
||||||
void LosingFocus();
|
void LosingFocus();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user