add 3D scrolling to ActorScroller

generalize BGAnimation, BGAnimationLayer to eliminate shared code with ActorFrame
This commit is contained in:
Chris Danford
2004-02-01 03:14:37 +00:00
parent 66a121877c
commit 69fd514b68
20 changed files with 324 additions and 262 deletions
+20
View File
@@ -149,3 +149,23 @@ void ActorFrame::HandleCommand( const ParsedCommand &command )
// base class handles the rest...
Actor::HandleCommand( command );
}
void ActorFrame::GainingFocus( float fRate, bool bRewindMovie, bool bLoop )
{
for( unsigned i=0; i<m_SubActors.size(); i++ )
m_SubActors[i]->GainingFocus( fRate, bRewindMovie, bLoop );
SetDiffuse( RageColor(1,1,1,1) );
}
void ActorFrame::LosingFocus()
{
for( unsigned i=0; i<m_SubActors.size(); i++ )
m_SubActors[i]->LosingFocus();
}
void ActorFrame::PlayCommand( const CString &sCommandName )
{
for( unsigned i=0; i<m_SubActors.size(); i++ )
m_SubActors[i]->PlayCommand( sCommandName );
}