More lua to fix.

This commit is contained in:
Jason Felds
2013-07-01 21:00:52 -04:00
parent 5a5724d13f
commit d20290ad2f
21 changed files with 593 additions and 255 deletions
+13 -3
View File
@@ -3,9 +3,19 @@ local Color1 = color(Var "Color1");
local t = Def.ActorFrame {};
t[#t+1] = LoadActor(Var "File1") .. {
OnCommand=cmd(diffuse,Color1;blend,"BlendMode_Add";x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scale_or_crop_background;);
GainFocusCommand=cmd(play);
LoseFocusCommand=cmd(pause);
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;