27 lines
997 B
Lua
27 lines
997 B
Lua
local t = Def.ActorFrame {
|
|
Def.ActorFrame {
|
|
Def.Quad {
|
|
InitCommand=cmd(zoomtowidth,SCREEN_WIDTH;zoomtoheight,30;horizalign,left;vertalign,top;y,SCREEN_TOP;diffuse,color("0,0,0,0"));
|
|
OnCommand=cmd(finishtweening;diffusealpha,0.85;);
|
|
OffCommand=cmd(sleep,3;linear,0.5;diffusealpha,0;);
|
|
};
|
|
LoadFont("Common","Normal") .. {
|
|
Name="Text";
|
|
InitCommand=cmd(maxwidth,750;horizalign,left;vertalign,top;y,SCREEN_TOP+10;x,SCREEN_LEFT+10;shadowlength,1;diffusealpha,0;);
|
|
OnCommand=cmd(finishtweening;diffusealpha,1;zoom,0.5);
|
|
OffCommand=cmd(sleep,3;linear,0.5;diffusealpha,0;);
|
|
};
|
|
SystemMessageMessageCommand = function(self, params)
|
|
self:GetChild("Text"):settext( params.Message );
|
|
self:playcommand( "On" );
|
|
if params.NoAnimate then
|
|
self:finishtweening();
|
|
end
|
|
self:playcommand( "Off" );
|
|
end;
|
|
HideSystemMessageMessageCommand = cmd(finishtweening);
|
|
};
|
|
};
|
|
t[#t+1] = LoadActor(THEME:GetPathB("ScreenSystemLayer","aux"));
|
|
return t;
|