Fix ScreenGameply + course problems

Put Toasty underneath Players so it doesn't cover up arrows
Add support for BackgroundChange to a static graphic in the song dir
This commit is contained in:
Chris Danford
2003-04-13 23:22:27 +00:00
parent d68ff05337
commit a6a827b3a8
4 changed files with 29 additions and 7 deletions
+9 -2
View File
@@ -113,12 +113,19 @@ BGAnimation *Background::CreateSongBGA(const Song *pSong, CString sBGName) const
pTempBGA->LoadFromAniDir( asFiles[0] );
return pTempBGA;
}
// Look for BG movies in the song dir
// Look for BG movies or static graphics in the song dir
GetDirListing( pSong->GetSongDir()+sBGName, asFiles, false, true );
if( !asFiles.empty() )
{
pTempBGA = new BGAnimation;
pTempBGA->LoadFromMovie( asFiles[0], true, true );
CString sThrowAway, sExt;
splitrelpath( asFiles[0], sThrowAway, sThrowAway, sExt );
if( sExt.CompareNoCase("avi")==0 ||
sExt.CompareNoCase("mpg")==0 ||
sExt.CompareNoCase("mpeg")==0 )
pTempBGA->LoadFromMovie( asFiles[0], true, true );
else
pTempBGA->LoadFromStaticGraphic( asFiles[0] );
return pTempBGA;
}
// Look for movies in the RandomMovies dir