2011-03-17 01:47:30 -04:00
|
|
|
local t = Def.ActorFrame {};
|
|
|
|
|
t[#t+1] = Def.Sprite {
|
2012-06-02 23:03:47 -05:00
|
|
|
InitCommand=cmd(Center;diffusealpha,1);
|
2011-03-17 01:47:30 -04:00
|
|
|
BeginCommand=cmd(LoadFromCurrentSongBackground);
|
2012-06-02 23:03:47 -05:00
|
|
|
OnCommand=function(self)
|
|
|
|
|
if PREFSMAN:GetPreference("StretchBackgrounds") then
|
|
|
|
|
self:SetSize(SCREEN_WIDTH,SCREEN_HEIGHT)
|
|
|
|
|
else
|
|
|
|
|
self:scale_or_crop_background()
|
|
|
|
|
end
|
|
|
|
|
self:linear(1)
|
|
|
|
|
self:diffusealpha(0)
|
|
|
|
|
end;
|
2011-03-17 01:47:30 -04:00
|
|
|
};
|
2010-07-03 20:55:25 -05:00
|
|
|
return t;
|