Move to Sprite and use LoadBackground.

This commit is contained in:
Steve Checkoway
2007-03-24 02:57:32 +00:00
parent 6cb000f4fc
commit e3fe352263
2 changed files with 8 additions and 4 deletions
@@ -16,6 +16,14 @@ function Sprite:LoadFromSongBackground(song)
self:LoadBackground( Path )
end
function LoadSongBackground()
return Def.Sprite {
DisableDimensionWarning=true;
OnCommand=cmd(LoadBackground,GetSongBackground());
};
end
function Sprite:position( f )
self:GetTexture():position( f );
end
@@ -106,10 +106,6 @@ function GetSongBackground()
return THEME:GetPathG("Common","fallback background")
end
function LoadSongBackground()
return LoadActor( GetSongBackground() ) .. { DisableDimensionWarning=true; };
end
-- (c) 2005 Glenn Maynard, Chris Danford
-- All rights reserved.
--