header text shows over the underline; header shadow text shows under it.
This commit is contained in:
@@ -25,10 +25,10 @@ t[#t+1] = LoadActor("Header") .. {
|
|||||||
};
|
};
|
||||||
|
|
||||||
t[#t+1] = LoadFont("Common Bold") .. {
|
t[#t+1] = LoadFont("Common Bold") .. {
|
||||||
Name="HeaderText";
|
Name="HeaderShadow";
|
||||||
Text=Screen.String("HeaderText");
|
Text=Screen.String("HeaderText");
|
||||||
InitCommand=cmd(x,-SCREEN_CENTER_X+24;y,26;zoom,1;horizalign,left;shadowlength,0;maxwidth,200);
|
InitCommand=cmd(x,-SCREEN_CENTER_X+26;y,28;zoom,1;horizalign,left;maxwidth,200);
|
||||||
OnCommand=cmd(visible,IsVisible();skewx,-0.125;diffuse,color("#ffd400");shadowlength,2;shadowcolor,BoostColor(color("#ffd40077"),0.25));
|
OnCommand=cmd(visible,IsVisible();skewx,-0.125;diffuse,BoostColor(color("#ffd40077"),0.375););
|
||||||
UpdateScreenHeaderMessageCommand=function(self,param)
|
UpdateScreenHeaderMessageCommand=function(self,param)
|
||||||
self:settext(param.Header);
|
self:settext(param.Header);
|
||||||
end;
|
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);
|
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)
|
t.BeginCommand=function(self)
|
||||||
self:SetUpdateFunction( Update );
|
self:SetUpdateFunction( Update );
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user