I'd like to thank everyone who made this possible;, including but not limited to Riakodoadm, MrThatKid, kyzentun, Luizsan, JoseVarelaP, everyone else who provided feedback and bug reports.
39 lines
1.1 KiB
Lua
39 lines
1.1 KiB
Lua
local t = Def.ActorFrame {};
|
|
|
|
t[#t+1] = LoadActor(THEME:GetPathG("common bg", "base")) .. {
|
|
InitCommand=cmd(Center;zoomto,SCREEN_WIDTH,SCREEN_HEIGHT)
|
|
};
|
|
|
|
-- Fade
|
|
t[#t+1] = Def.ActorFrame {
|
|
InitCommand=cmd(Center);
|
|
Def.Quad {
|
|
InitCommand=cmd(scaletoclipped,SCREEN_WIDTH,SCREEN_HEIGHT);
|
|
OnCommand=cmd(diffuse,Color.Black;diffusealpha,0.8);
|
|
};
|
|
};
|
|
-- Emblem
|
|
t[#t+1] = Def.ActorFrame {
|
|
InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y);
|
|
OnCommand=cmd(diffusealpha,0.5);
|
|
LoadActor("_warning bg") .. {
|
|
};
|
|
};
|
|
|
|
-- Text
|
|
t[#t+1] = Def.ActorFrame {
|
|
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") .. {
|
|
Text=Screen.String("Caution");
|
|
OnCommand=cmd(skewx,-0.1;diffuse,color("#E6BF7C");diffusebottomedge,color("#FFB682");strokecolor,color("#594420"););
|
|
};
|
|
LoadFont("Common Fallback Font") .. {
|
|
Text=Screen.String("CautionText");
|
|
InitCommand=cmd(y,128);
|
|
OnCommand=cmd(strokecolor,color("0,0,0,0.5");shadowlength,1;wrapwidthpixels,SCREEN_WIDTH/0.5);
|
|
};
|
|
};
|
|
--
|
|
return t
|