Revert "DONE! All lua is future-proofed."

This reverts commit afd0dac0c1.
This commit is contained in:
Jason Felds
2013-07-18 18:02:01 -04:00
parent ea45a6947c
commit fb5db73c45
44 changed files with 1556 additions and 2939 deletions
@@ -1,76 +1,31 @@
local longFail = ThemePrefs.Get("LongFail");
local t = Def.ActorFrame{};
if longFail then
t[#t+1] = Def.Quad{
InitCommand=function(self)
self:FullScreen();
self:diffuse(color("1,0,0,0"));
self:blend(Blend.Multiply);
end;
OnCommand=function(self)
self:decelerate(1.25);
self:diffuse(color("0.75,0,0,0.75"));
self:linear(7);
self:diffuse(color("0,0,0,1"));
self:sleep(1.25);
self:linear(1);
self:diffuse(color("1,0,0,1"));
self:decelerate(2);
self:diffuse(color("0,0,0,1"));
end;
};
t[#t+1] = Def.Quad{
InitCommand=function(self)
self:FullScreen();
self:diffuse(color("1,1,1,1"));
self:diffusealpha(0);
end;
OnCommand=function(self)
self:finishtweening();
self:diffusealpha(1);
self:decelerate(1.25);
self:diffuse(color("1,0,0,0"));
end;
};
t[#t+1] = LoadActor(THEME:GetPathS( "ScreenGameplayAlternate", "failed" ) ) .. {
StartTransitioningCommand=function(self)
self:play();
end;
};
else
t[#t+1] = Def.Quad{
InitCommand=function(self)
self:FullScreen();
self:diffuse(color("1,0,0,0"));
self:blend(Blend.Multiply);
end;
OnCommand=function(self)
self:smooth(1);
self:diffuse(color("0.75,0,0,0.75"));
self:decelerate(2);
self:diffuse(color("0,0,0,1"));
end;
};
t[#t+1] = Def.Quad{
InitCommand=function(self)
self:FullScreen();
self:diffuse(color("1,1,1,1"));
self:diffusealpha(0);
end;
OnCommand=function(self)
self:finishtweening();
self:diffusealpha(1);
self:decelerate(1.25);
self:diffuse(color("1,0,0,0"));
end;
};
t[#t+1] = LoadActor(THEME:GetPathS( Var "LoadingScreen", "failed" ) ) .. {
StartTransitioningCommand=function(self)
self:play();
end;
};
end;
local longFail = ThemePrefs.Get("LongFail");
local t = Def.ActorFrame{};
if longFail then
t[#t+1] = Def.Quad{
InitCommand=cmd(FullScreen;diffuse,color("1,0,0,0");blend,Blend.Multiply);
OnCommand=cmd(decelerate,1.25;diffuse,color("0.75,0,0,0.75");linear,7;diffuse,color("0,0,0,1");sleep,1.25;linear,1;diffuse,color("1,0,0,1");decelerate,2;diffuse,color("0,0,0,1"));
};
t[#t+1] = Def.Quad{
InitCommand=cmd(FullScreen;diffuse,color("1,1,1,1");diffusealpha,0);
OnCommand=cmd(finishtweening;diffusealpha,1;decelerate,1.25;diffuse,color("1,0,0,0"));
};
t[#t+1] = LoadActor(THEME:GetPathS( "ScreenGameplayAlternate", "failed" ) ) .. {
StartTransitioningCommand=cmd(play);
};
else
t[#t+1] = Def.Quad{
InitCommand=cmd(FullScreen;diffuse,color("1,0,0,0");blend,Blend.Multiply);
OnCommand=cmd(smooth,1;diffuse,color("0.75,0,0,0.75");decelerate,2;diffuse,color("0,0,0,1"));
};
t[#t+1] = Def.Quad{
InitCommand=cmd(FullScreen;diffuse,color("1,1,1,1");diffusealpha,0);
OnCommand=cmd(finishtweening;diffusealpha,1;decelerate,1.25;diffuse,color("1,0,0,0"));
};
t[#t+1] = LoadActor(THEME:GetPathS( Var "LoadingScreen", "failed" ) ) .. {
StartTransitioningCommand=cmd(play);
};
end;
return t;