Files
itgmania212121/BackgroundEffects/UpperLeft.lua
T

20 lines
408 B
Lua
Raw Normal View History

2013-07-18 17:41:00 -04:00
-- upper left corner
local Color1 = color(Var "Color1");
local t = Def.ActorFrame {
LoadActor(Var "File1") .. {
OnCommand=function(self)
self: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;