<ActorFrame InitCommand="%function(self)
glowTime = 2.5; -- was 5.5
DiffuseQuad = { HSVA(49,1,1,0.5), }
end"
OntoTheNextGameplayMessageCommand="sleep,0.125;linear,0.375;addy,-SCREEN_CENTER_Y"><children>

<Layer Type="Quad" InitCommand="y,1;vertalign,bottom;zoomto,SCREEN_WIDTH+3,40;diffuse,0,0,0,0.75" />
	
	<Layer File="_base" InitCommand="diffusealpha,0.75" />
	<Layer File="_stroke" InitCommand="%function(self)
	self:diffuse( DiffuseQuad[1][1],DiffuseQuad[1][2],DiffuseQuad[1][3],DiffuseQuad[1][4] )
	end" />
	<Layer File="_stroke" InitCommand="%function(self)
	self:cropright(1);
	self:diffuse( DiffuseQuad[1][1],DiffuseQuad[1][2],DiffuseQuad[1][3],DiffuseQuad[1][4] )
	self:glow(1,1,1,0)
	end"
	OnCommand="queuecommand,Glow"
	GlowCommand="accelerate,glowTime;glow,1,1,1,1;cropright,0;decelerate,glowTime;glow,1,1,1,0.25;cropleft,1;sleep,0.5;glow,1,1,1,0;cropright,1;cropleft,0;queuecommand,Glow";
	OffCommand="finishtweening;accelerate,0.5;glow,1,1,1,0;"
		/>

	<Layer Font="mentone/_24px"
		Text="Test dialog"
		InitCommand="x,WideScale(-(SCREEN_CENTER_X*0.925),-(SCREEN_CENTER_X*0.8));y,-25;maxwidth,WideScale(SCREEN_CENTER_X,SCREEN_CENTER_X-68);skewx,-0.2;zoom,0.8;horizalign,left;shadowlength,0;"
		OnCommand="%function(self)
		self:linear(0.25);
		self:y(-5)

		if HeaderText == nil then
			self:settext(' ')
		else
			self:settext( HeaderText )
		end
		end"
		OffCommand="linear,0.5;y,-48"
		/>
</children></ActorFrame>
	
	<!-- Font("sf theramin gothic", "36px") .. {
	--Font("mentone", "24px") .. {
		Name="HeaderText";
		--InitCommand=cmd(x,-(SCREEN_CENTER_X*0.925);y,-5;skewx,-0.2;zoom,0.8;horizalign,left;shadowlength,0;settext,ScreenString("HeaderText"));
		InitCommand=cmd(x,WideScale(-(SCREEN_CENTER_X*0.925),-(SCREEN_CENTER_X*0.8));y,-25;maxwidth,WideScale(SCREEN_CENTER_X,SCREEN_CENTER_X-68);skewx,-0.2;zoom,0.8;horizalign,left;shadowlength,0;settext,Screen.String("HeaderText"););
		OnCommand=cmd(linear,0.25;y,-5);
		OffCommand=cmd(linear,0.5;y,-48);
	};
	UpdateScreenHeaderMessageCommand=function(self,params)
		local header = self:GetChild("HeaderText");
		header:settext( params.Header );
	end
}; -->