fix GainFocusCommand, LoseFocusCommand not sent

This commit is contained in:
Glenn Maynard
2005-04-08 02:35:42 +00:00
parent a757736b09
commit d4a36895e3
+4
View File
@@ -552,11 +552,15 @@ void Background::UpdateCurBGChange( float fCurrentTime )
m_pCurrentBGA = m_BGAnimations[ change.m_sBGName ];
if( pOld )
{
pOld->LoseFocus();
pOld->PlayCommand( "LoseFocus" );
}
if( m_pCurrentBGA )
{
m_pCurrentBGA->GainFocus( change.m_fRate, change.m_bRewindMovie, change.m_bLoop );
m_pCurrentBGA->PlayCommand( "On" );
m_pCurrentBGA->PlayCommand( "GainFocus" );
}
m_fSecsLeftInFade = m_pFadingBGA!=NULL ? FADE_SECONDS : 0;