2013-07-18 17:41:00 -04:00
|
|
|
-- Stretch a file with blue diffusion.
|
|
|
|
|
local Color1 = color("0,0,1,1");
|
|
|
|
|
|
|
|
|
|
local t = Def.ActorFrame {
|
|
|
|
|
LoadActor(Var "File1") .. {
|
2015-02-05 00:37:08 -07:00
|
|
|
OnCommand=function(self)
|
|
|
|
|
self:x(SCREEN_CENTER_X):y(SCREEN_CENTER_Y):scale_or_crop_background():diffuse(Color1):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;
|