Files
itgmania212121/Themes/default/BGAnimations/ScreenCaution overlay/default.lua
T

39 lines
1.1 KiB
Lua
Raw Normal View History

2014-08-31 16:59:03 -07:00
local t = Def.ActorFrame {};
2017-08-08 01:07:34 -06:00
t[#t+1] = LoadActor(THEME:GetPathG("common bg", "base")) .. {
InitCommand=cmd(Center;zoomto,SCREEN_WIDTH,SCREEN_HEIGHT)
};
2014-08-31 16:59:03 -07:00
-- Fade
t[#t+1] = Def.ActorFrame {
InitCommand=cmd(Center);
Def.Quad {
InitCommand=cmd(scaletoclipped,SCREEN_WIDTH,SCREEN_HEIGHT);
2017-08-08 01:07:34 -06:00
OnCommand=cmd(diffuse,Color.Black;diffusealpha,0.8);
2014-08-31 16:59:03 -07:00
};
};
-- Emblem
t[#t+1] = Def.ActorFrame {
2017-08-08 01:07:34 -06:00
InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y);
2014-08-31 16:59:03 -07:00
OnCommand=cmd(diffusealpha,0.5);
LoadActor("_warning bg") .. {
};
};
-- Text
t[#t+1] = Def.ActorFrame {
2017-08-08 01:07:34 -06:00
InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y-120);
OnCommand=cmd(diffusealpha,0;linear,0.2;diffusealpha,1);
LoadFont("_roboto condensed Bold 48px") .. {
2014-08-31 16:59:03 -07:00
Text=Screen.String("Caution");
2017-08-08 01:07:34 -06:00
OnCommand=cmd(skewx,-0.1;diffuse,color("#E6BF7C");diffusebottomedge,color("#FFB682");strokecolor,color("#594420"););
2014-08-31 16:59:03 -07:00
};
2017-08-08 01:07:34 -06:00
LoadFont("Common Fallback Font") .. {
2014-08-31 16:59:03 -07:00
Text=Screen.String("CautionText");
InitCommand=cmd(y,128);
2017-08-08 01:07:34 -06:00
OnCommand=cmd(strokecolor,color("0,0,0,0.5");shadowlength,1;wrapwidthpixels,SCREEN_WIDTH/0.5);
2014-08-31 16:59:03 -07:00
};
};
--
return t