Files
itgmania212121/Themes/default/BGAnimations/ScreenGameplay in/default.lua
T

20 lines
452 B
Lua
Raw Normal View History

2013-07-04 13:09:03 -04:00
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;
};
2010-07-03 20:55:25 -05:00
return t;