Files
itgmania212121/BackgroundEffects/StretchRewind.lua
T

25 lines
534 B
Lua
Raw Normal View History

2014-08-30 16:14:03 -07:00
local Color1 = color(Var "Color1");
2013-07-18 17:41:00 -04:00
local t = Def.ActorFrame {
LoadActor(Var "File1") .. {
OnCommand=function(self)
self:xy(SCREEN_CENTER_X,SCREEN_CENTER_Y)
self:scale_or_crop_background()
self:diffuse(Color1)
if self.position ~= nil then
self:position(0)
end
self:effectclock("music")
-- Explanation in StretchNoLoop.lua.
if self.GetTexture then
self:GetTexture():rate(self:GetParent():GetUpdateRate())
end
end;
2013-07-18 17:41:00 -04:00
GainFocusCommand=cmd(play);
LoseFocusCommand=cmd(pause);
};
};
return t;