Revert "More lua to fix."

This reverts commit d20290ad2f.
This commit is contained in:
Jason Felds
2013-07-18 17:41:00 -04:00
parent 53069a73eb
commit fbf979e93b
21 changed files with 255 additions and 593 deletions
+11 -22
View File
@@ -1,22 +1,11 @@
local Color1 = color(Var "Color1");
local t = Def.ActorFrame {
LoadActor(Var "File1") .. {
OnCommand=function(self)
self:x(SCREEN_CENTER_X);
self:y(SCREEN_CENTER_Y);
self:scale_or_crop_background();
self:diffuse(Color1);
self:loop(false);
self:effectclock("music");
end;
GainFocusCommand=function(self)
self:play();
end;
LoseFocusCommand=function(self)
self:pause();
end;
};
};
return t;
local Color1 = color(Var "Color1");
local t = Def.ActorFrame {
LoadActor(Var "File1") .. {
OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scale_or_crop_background;diffuse,Color1;loop,false;effectclock,"music");
GainFocusCommand=cmd(play);
LoseFocusCommand=cmd(pause);
};
};
return t;