Files
itgmania212121/Themes/default/BGAnimations/ScreenWithMenuElements in/default.lua
T

28 lines
642 B
Lua
Raw Normal View History

2011-03-17 01:47:30 -04:00
local fTileSize = 32;
local iTilesX = math.ceil( SCREEN_WIDTH/fTileSize );
local iTilesY = math.ceil( SCREEN_HEIGHT/fTileSize );
local fSleepTime = THEME:GetMetric( Var "LoadingScreen","ScreenInDelay");
2013-07-05 22:17:42 -04:00
2011-03-17 01:47:30 -04:00
local t = Def.ActorFrame {
2013-07-05 22:17:42 -04:00
InitCommand=function(self)
self:x(SCREEN_CENTER_X);
self:y(SCREEN_CENTER_Y);
end;
OnCommand=function(self)
self:sleep(fSleepTime);
end;
2011-03-17 01:47:30 -04:00
};
2013-07-05 22:17:42 -04:00
2011-03-17 01:47:30 -04:00
t[#t+1] = Def.Quad {
2013-07-05 22:17:42 -04:00
InitCommand=function(self)
self:zoomto(SCREEN_WIDTH + 1, SCREEN_HEIGHT);
end;
OnCommand=function(self)
self:diffuse(color("0,0,0,1"));
self:sleep(0.0325 + fSleepTime);
self:linear(0.15);
self:diffusealpha(0);
end;
2011-03-17 01:47:30 -04:00
};
return t