From e5ab9e846881dfa0836964ea8a340dced08e994c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 7 Jan 2004 00:13:59 +0000 Subject: [PATCH] add BGAnimation::InitCommand --- stepmania/src/BGAnimation.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/stepmania/src/BGAnimation.cpp b/stepmania/src/BGAnimation.cpp index 5f1e817e0a..e642998ec7 100644 --- a/stepmania/src/BGAnimation.cpp +++ b/stepmania/src/BGAnimation.cpp @@ -121,6 +121,15 @@ void BGAnimation::LoadFromAniDir( CString sAniDir ) for( int i=0; (unsigned)i < m_Layers.size(); i++ ) m_fLengthSeconds = max(m_fLengthSeconds, m_Layers[i]->GetMaxTweenTimeLeft()); } + + CString InitCommand; + if( ini.GetValue( "BGAnimation", "InitCommand", InitCommand ) ) + { + /* There's an InitCommand. Run it now. This can be used to eg. change Z to + * modify draw order between BGAs in a Foreground. Most things should be done + * in metrics.ini commands, not here. */ + this->Command( InitCommand ); + } } else {