From f0d22bd7ea233081f1db2644c07b6cc2bef7addb Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 22 Aug 2004 02:13:17 +0000 Subject: [PATCH] add GainFocus and LoseFocus commands to give movies Actors an opportunity to pause and play --- stepmania/src/BGAnimationLayer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/BGAnimationLayer.cpp b/stepmania/src/BGAnimationLayer.cpp index 2447e135f3..4952cc013a 100644 --- a/stepmania/src/BGAnimationLayer.cpp +++ b/stepmania/src/BGAnimationLayer.cpp @@ -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 )