Revert "Some of default. Better break this up."

This reverts commit 8833ab5bc6.
This commit is contained in:
Jason Felds
2013-07-18 17:43:31 -04:00
parent 6120a8a5e4
commit dc5d6a932d
59 changed files with 970 additions and 1548 deletions
@@ -1,20 +1,15 @@
local t = Def.ActorFrame {};
t[#t+1] = Def.Sprite {
InitCommand=function(self)
self:Center();
self:diffusealpha(1);
end;
BeginCommand=function(self)
self:LoadFromCurrentSongBackground();
end;
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;
};
local t = Def.ActorFrame {};
t[#t+1] = Def.Sprite {
InitCommand=cmd(Center;diffusealpha,1);
BeginCommand=cmd(LoadFromCurrentSongBackground);
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;
};
return t;