Files
itgmania212121/BackgroundEffects/OverlayAdd.lua
T

22 lines
425 B
Lua
Raw Normal View History

local Color1 = color(Var "Color1");
local t = Def.ActorFrame {};
t[#t+1] = LoadActor(Var "File1") .. {
2013-07-01 21:00:52 -04:00
OnCommand=function(self)
self:diffuse(Color1);
self:blend("BlendMode_Add");
self:x(SCREEN_CENTER_X);
self:y(SCREEN_CENTER_Y);
self:scale_or_crop_background();
end;
GainFocusCommand=function(self)
self:play();
end;
LoseFocusCommand=function(self)
self:pause();
end;
};
return t;