15 lines
374 B
Lua
15 lines
374 B
Lua
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; |