69 lines
1.5 KiB
Lua
69 lines
1.5 KiB
Lua
local waitTime = 7.5
|
|
|
|
local t = Def.ActorFrame {
|
|
InitCommand=function(self)
|
|
self:x(SCREEN_CENTER_X);
|
|
self:y(SCREEN_CENTER_Y);
|
|
end;
|
|
OnCommand=function(self)
|
|
self:queuecommand("TweenOn");
|
|
self:sleep(waitTime);
|
|
self:queuecommand("TweenOff");
|
|
end;
|
|
}
|
|
t[#t+1] = Def.Quad {
|
|
InitCommand=function(self)
|
|
self:zoomto(SCREEN_WIDTH, SCREEN_HEIGHT);
|
|
self:diffuse(Color.Black);
|
|
end;
|
|
TweenOnCommand=function(self)
|
|
self:diffusealpha(1);
|
|
self:linear(0.5);
|
|
self:diffusealpha(0.8);
|
|
end;
|
|
TweenOffCommand=function(self)
|
|
self:linear(0.5);
|
|
self:diffusealpha(0);
|
|
end;
|
|
};
|
|
t[#t+1] = Def.ActorFrame {
|
|
LoadFont("Common Normal") .. {
|
|
Text=ScreenString("WarningHeader");
|
|
InitCommand=function(self)
|
|
self:y(-70);
|
|
self:diffuse(Color.Red);
|
|
end;
|
|
TweenOnCommand=function(self)
|
|
self:diffusealpha(0);
|
|
self:zoomx(2);
|
|
self:zoomy(0);
|
|
self:sleep(0.5);
|
|
self:smooth(0.25);
|
|
self:zoom(1);
|
|
self:diffusealpha(1);
|
|
end;
|
|
TweenOffCommand=function(self)
|
|
self:linear(0.5);
|
|
self:diffusealpha(0);
|
|
end;
|
|
};
|
|
LoadFont("Common Normal") .. {
|
|
Text=ScreenString("WarningText");
|
|
InitCommand=function(self)
|
|
self:y(10);
|
|
self:wrapwidthpixels(SCREEN_WIDTH - 48);
|
|
end;
|
|
TweenOnCommand=function(self)
|
|
self:diffusealpha(0);
|
|
self:sleep(0.5125);
|
|
self:linear(0.125);
|
|
self:diffusealpha(1);
|
|
end;
|
|
TweenOffCommand=function(self)
|
|
self:linear(0.5);
|
|
self:diffusealpha(0);
|
|
end;
|
|
};
|
|
};
|
|
|
|
return t |