2013-07-18 17:43:31 -04:00
|
|
|
local t = Def.ActorFrame {};
|
|
|
|
|
|
|
|
|
|
t[#t+1] = Def.ActorFrame {
|
|
|
|
|
Def.Sprite {
|
|
|
|
|
OnCommand=function(self)
|
|
|
|
|
if GAMESTATE:GetCurrentSong() then
|
|
|
|
|
local song = GAMESTATE:GetCurrentSong();
|
|
|
|
|
if song:HasBackground() then
|
|
|
|
|
self:LoadBackground(song:GetBackgroundPath());
|
|
|
|
|
end;
|
|
|
|
|
self:scale_or_crop_background()
|
|
|
|
|
self:fadebottom(0.25)
|
|
|
|
|
self:fadetop(0.25)
|
|
|
|
|
self:croptop(1/10)
|
|
|
|
|
self:cropbottom(1/10)
|
|
|
|
|
else
|
|
|
|
|
self:visible(false);
|
|
|
|
|
end
|
|
|
|
|
end;
|
|
|
|
|
};
|
2014-08-25 20:40:03 -07:00
|
|
|
Def.Quad {
|
2014-09-01 23:04:07 -05:00
|
|
|
InitCommand=cmd(Center;scaletoclipped,SCREEN_WIDTH+1,SCREEN_HEIGHT);
|
2013-07-18 17:43:31 -04:00
|
|
|
OnCommand=cmd(diffuse,color("#FFCB05");diffusebottomedge,color("#F0BA00");diffusealpha,0.45);
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2014-08-30 16:14:03 -07:00
|
|
|
return t
|