add GainFocus and LoseFocus commands to give movies Actors an opportunity to pause and play
This commit is contained in:
@@ -1002,6 +1002,8 @@ void BGAnimationLayer::GainingFocus( float fRate, bool bRewindMovie, bool bLoop
|
|||||||
RunCommandOnChildren( "stoptweening" );
|
RunCommandOnChildren( "stoptweening" );
|
||||||
PlayCommand( "On" );
|
PlayCommand( "On" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PlayCommand( "GainFocus" );
|
||||||
}
|
}
|
||||||
|
|
||||||
void BGAnimationLayer::LosingFocus()
|
void BGAnimationLayer::LosingFocus()
|
||||||
@@ -1010,6 +1012,8 @@ void BGAnimationLayer::LosingFocus()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
m_SubActors[0]->Command( "pause" );
|
m_SubActors[0]->Command( "pause" );
|
||||||
|
|
||||||
|
PlayCommand( "LoseFocus" );
|
||||||
}
|
}
|
||||||
|
|
||||||
void BGAnimationLayer::PlayCommand( const CString &sCommandName )
|
void BGAnimationLayer::PlayCommand( const CString &sCommandName )
|
||||||
|
|||||||
Reference in New Issue
Block a user