header text shows over the underline; header shadow text shows under it.

This commit is contained in:
freem
2014-09-04 20:41:14 -05:00
parent 4f84621244
commit 49d0066108
@@ -25,10 +25,10 @@ t[#t+1] = LoadActor("Header") .. {
};
t[#t+1] = LoadFont("Common Bold") .. {
Name="HeaderText";
Name="HeaderShadow";
Text=Screen.String("HeaderText");
InitCommand=cmd(x,-SCREEN_CENTER_X+24;y,26;zoom,1;horizalign,left;shadowlength,0;maxwidth,200);
OnCommand=cmd(visible,IsVisible();skewx,-0.125;diffuse,color("#ffd400");shadowlength,2;shadowcolor,BoostColor(color("#ffd40077"),0.25));
InitCommand=cmd(x,-SCREEN_CENTER_X+26;y,28;zoom,1;horizalign,left;maxwidth,200);
OnCommand=cmd(visible,IsVisible();skewx,-0.125;diffuse,BoostColor(color("#ffd40077"),0.375););
UpdateScreenHeaderMessageCommand=function(self,param)
self:settext(param.Header);
end;
@@ -40,6 +40,16 @@ t[#t+1] = Def.Quad {
OnCommand=cmd(visible,IsVisible();diffuse,color("#ffd400");shadowlength,1;linear,0.25;zoomtowidth,192;faderight,0.5);
};
t[#t+1] = LoadFont("Common Bold") .. {
Name="HeaderText";
Text=Screen.String("HeaderText");
InitCommand=cmd(x,-SCREEN_CENTER_X+24;y,26;zoom,1;horizalign,left;shadowlength,0;maxwidth,200);
OnCommand=cmd(visible,IsVisible();skewx,-0.125;diffuse,color("#ffd400"););
UpdateScreenHeaderMessageCommand=function(self,param)
self:settext(param.Header);
end;
};
t.BeginCommand=function(self)
self:SetUpdateFunction( Update );
end