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
+29 -6
View File
@@ -4,16 +4,39 @@ local Color2 = color(Var "Color2");
local t = Def.ActorFrame {};
t[#t+1] = LoadActor(Var "File1") .. {
OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scale_or_crop_background;diffuse,Color1;effectclock,"music");
GainFocusCommand=cmd(play);
LoseFocusCommand=cmd(pause);
OnCommand=function(self)
self:x(SCREEN_CENTER_X);
self:y(SCREEN_CENTER_Y);
self:scale_or_crop_background();
self:diffuse(Color1);
self:effectclock("music");
end;
GainFocusCommand=function(self)
self:play();
end;
LoseFocusCommand=function(self)
self:pause();
end;
};
if Var("File2") ~= nil then
t[#t+1] = LoadActor(Var("File2")) .. {
OnCommand=cmd(blend,"BlendMode_Add";x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scale_or_crop_background;diffuse,Color2;effectclock,"music";linear,1;diffusealpha,0);
GainFocusCommand=cmd(play);
LoseFocusCommand=cmd(pause);
OnCommand=function(self)
self:blend("BlendMode_Add");
self:x(SCREEN_CENTER_X);
self:y(SCREEN_CENTER_Y);
self:scale_or_crop_background();
self:diffuse(Color2);
self:effectclock("music");
self:linear(1);
self:diffusealpha(0);
end;
GainFocusCommand=function(self)
self:play();
end;
LoseFocusCommand=function(self)
self:pause();
end;
};
end;