Files
itgmania212121/BackgroundEffects/StretchRewind.lua
T
freem dfd8606093 modify StretchNoLoop and StretchRewind to only run certain commands if they exist.
fixes issue #337

I also modified StretchNoLoop to start at the beginning of the movie to prevent it from freezing on the last frame (which I'm assuming is not the intended behavior; let me know if that's wrong)
2014-10-19 18:29:06 -05:00

21 lines
399 B
Lua

local Color1 = color(Var "Color1");
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")
end;
GainFocusCommand=cmd(play);
LoseFocusCommand=cmd(pause);
};
};
return t;