Files
itgmania212121/Themes/default/BGAnimations/ScreenContinue underlay.lua
T

32 lines
992 B
Lua
Raw Normal View History

2019-03-11 17:07:18 -07:00
local timer_seconds = THEME:GetMetric(Var "LoadingScreen","TimerSeconds")
local t = Def.ActorFrame {}
2018-08-04 11:51:38 -06:00
-- Fade
t[#t+1] = Def.ActorFrame {
2019-03-11 17:07:18 -07:00
InitCommand=cmd(Center),
2018-08-04 11:51:38 -06:00
Def.Quad {
2019-03-11 17:07:18 -07:00
InitCommand=cmd(scaletoclipped,SCREEN_WIDTH,SCREEN_HEIGHT),
2018-08-14 14:19:02 -06:00
OnCommand=function(self)
2019-03-11 17:07:18 -07:00
self:diffuse(Color.Black):diffusealpha(0):linear(0.5):diffusealpha(0.25)
self:sleep(timer_seconds/2):linear(timer_seconds/2-0.5):diffusealpha(1)
end,
OffCommand=cmd(stoptweening;sleep,0.4;decelerate,0.5;diffusealpha,1)
},
2018-08-04 11:51:38 -06:00
-- Warning Fade
Def.Quad {
2019-03-11 17:07:18 -07:00
InitCommand=cmd(y,16;scaletoclipped,SCREEN_WIDTH,250),
OnCommand=cmd(diffuse,Color.Black;diffusealpha,0.5;linear,timer_seconds;zoomtoheight,180),
OffCommand=cmd(stoptweening)
2018-08-04 11:51:38 -06:00
}
2019-03-11 17:07:18 -07:00
}
2018-08-04 11:51:38 -06:00
t[#t+1] = Def.ActorFrame {
2019-03-11 17:07:18 -07:00
InitCommand=cmd(Center;y,SCREEN_CENTER_Y-56;zoom,1.5),
2018-08-04 11:51:38 -06:00
LoadFont("Common Fallback Font") .. {
2019-03-11 17:07:18 -07:00
Text="Continue?",
OnCommand=cmd(diffuse,color("#FF8312");diffusebottomedge,color("#FFD75B");shadowlength,1;strokecolor,color("#472211"))
}
}
return t