More lua.

This commit is contained in:
Jason Felds
2013-07-01 21:09:06 -04:00
parent d20290ad2f
commit 2330c87501
5 changed files with 50 additions and 13 deletions
+14 -4
View File
@@ -1,5 +1,15 @@
local flashColor = color(Var "Color1")
return Def.Quad {
InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scaletoclipped,SCREEN_WIDTH*2,SCREEN_HEIGHT*2;diffuse,flashColor;);
GainFocusCommand=cmd(finishtweening;diffusealpha,1;accelerate,0.6;diffusealpha,0);
local flashColor = color(Var "Color1")
return Def.Quad {
InitCommand=function(self)
self:x(SCREEN_CENTER_X);
self:y(SCREEN_CENTER_Y);
self:scaletoclipped(SCREEN_WIDTH * 2, SCREEN_HEIGHT * 2);
self:diffuse(flashColor);
end;
GainFocusCommand=function(self)
self:finishtweening();
self:diffusealpha(1);
self:accelerate(0.6);
self:diffusealpha(0);
end;
};