add GainFocus and LoseFocus commands to give movies Actors an opportunity to pause and play

This commit is contained in:
Chris Danford
2004-08-22 02:13:17 +00:00
parent d176c8af17
commit f0d22bd7ea
+4
View File
@@ -1002,6 +1002,8 @@ void BGAnimationLayer::GainingFocus( float fRate, bool bRewindMovie, bool bLoop
RunCommandOnChildren( "stoptweening" );
PlayCommand( "On" );
}
PlayCommand( "GainFocus" );
}
void BGAnimationLayer::LosingFocus()
@@ -1010,6 +1012,8 @@ void BGAnimationLayer::LosingFocus()
return;
m_SubActors[0]->Command( "pause" );
PlayCommand( "LoseFocus" );
}
void BGAnimationLayer::PlayCommand( const CString &sCommandName )