Move to Sprite and use LoadBackground.
This commit is contained in:
@@ -16,6 +16,14 @@ function Sprite:LoadFromSongBackground(song)
|
|||||||
self:LoadBackground( Path )
|
self:LoadBackground( Path )
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function LoadSongBackground()
|
||||||
|
return Def.Sprite {
|
||||||
|
DisableDimensionWarning=true;
|
||||||
|
OnCommand=cmd(LoadBackground,GetSongBackground());
|
||||||
|
};
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
function Sprite:position( f )
|
function Sprite:position( f )
|
||||||
self:GetTexture():position( f );
|
self:GetTexture():position( f );
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -106,10 +106,6 @@ function GetSongBackground()
|
|||||||
return THEME:GetPathG("Common","fallback background")
|
return THEME:GetPathG("Common","fallback background")
|
||||||
end
|
end
|
||||||
|
|
||||||
function LoadSongBackground()
|
|
||||||
return LoadActor( GetSongBackground() ) .. { DisableDimensionWarning=true; };
|
|
||||||
end
|
|
||||||
|
|
||||||
-- (c) 2005 Glenn Maynard, Chris Danford
|
-- (c) 2005 Glenn Maynard, Chris Danford
|
||||||
-- All rights reserved.
|
-- All rights reserved.
|
||||||
--
|
--
|
||||||
|
|||||||
Reference in New Issue
Block a user