2013-07-18 17:41:00 -04:00
|
|
|
local Color1 = color(Var "Color1");
|
|
|
|
|
|
|
|
|
|
local t = Def.ActorFrame {
|
|
|
|
|
LoadActor(Var "File1") .. {
|
2015-02-05 00:37:08 -07:00
|
|
|
OnCommand= function(self)
|
|
|
|
|
self:xy(_screen.cx, _screen.cy):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;
|