Fit intermission tips to 600px like in sidemods.

This commit is contained in:
Mari the Deer 2023-09-11 22:20:25 +02:00
commit 2632d248f7
2 changed files with 5 additions and 5 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r952 \cu(Sat 9 Sep 14:47:30 CEST 2023)\c-";
SWWM_SHORTVER="\cw1.3pre r952 \cu(2023-09-09 14:47:30)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r953 \cu(Mon 11 Sep 22:20:25 CEST 2023)\c-";
SWWM_SHORTVER="\cw1.3pre r953 \cu(2023-09-11 22:20:25)\c-";

View file

@ -307,7 +307,7 @@ Class SWWMStatScreen : StatusScreen
}
if ( tipalpha <= 0. ) return;
double alf = clamp(tipalpha+(tipalphastate*fractic)/GameTicRate,0.,1.);
if ( !tipl ) tipl = TewiFontOutline.BreakLines(tipstr,400);
if ( !tipl ) tipl = TewiFontOutline.BreakLines(tipstr,600);
int lw = 0;
for ( int i=0; i<tipl.Count(); i++ )
if ( tipl.StringWidth(i) > lw )
@ -322,8 +322,8 @@ Class SWWMStatScreen : StatusScreen
}
yy -= (tipl.Count()-1)*TewiFontOutline.GetHeight();
if ( !gradtex ) gradtex = TexMan.CheckForTexture("graphics/M_GRAD.png");
Screen.DrawTexture(gradtex,false,Screen.GetWidth()/2,yy+TewiFontOutline.GetHeight()*tipl.Count()*CleanYFac_1/2.,DTA_DestWidth,350*CleanXFac_1,DTA_DestHeight,(TewiFontOutline.GetHeight()*tipl.Count()+8)*CleanYFac_1,DTA_Rotate,90,DTA_LegacyRenderStyle,STYLE_Shaded,DTA_FillColor,Color(0,0,0),DTA_Alpha,.8*alf,DTA_TopOffset,256,DTA_LeftOffset,128);
Screen.DrawTexture(gradtex,false,Screen.GetWidth()/2,yy+TewiFontOutline.GetHeight()*tipl.Count()*CleanYFac_1/2.,DTA_DestWidth,350*CleanXFac_1,DTA_DestHeight,(TewiFontOutline.GetHeight()*tipl.Count()+8)*CleanYFac_1,DTA_Rotate,270,DTA_LegacyRenderStyle,STYLE_Shaded,DTA_FillColor,Color(0,0,0),DTA_Alpha,.8*alf,DTA_TopOffset,256,DTA_LeftOffset,128);
Screen.DrawTexture(gradtex,false,Screen.GetWidth()/2,yy+TewiFontOutline.GetHeight()*tipl.Count()*CleanYFac_1/2.,DTA_DestWidth,450*CleanXFac_1,DTA_DestHeight,(TewiFontOutline.GetHeight()*tipl.Count()+8)*CleanYFac_1,DTA_Rotate,90,DTA_LegacyRenderStyle,STYLE_Shaded,DTA_FillColor,Color(0,0,0),DTA_Alpha,.8*alf,DTA_TopOffset,256,DTA_LeftOffset,128);
Screen.DrawTexture(gradtex,false,Screen.GetWidth()/2,yy+TewiFontOutline.GetHeight()*tipl.Count()*CleanYFac_1/2.,DTA_DestWidth,450*CleanXFac_1,DTA_DestHeight,(TewiFontOutline.GetHeight()*tipl.Count()+8)*CleanYFac_1,DTA_Rotate,270,DTA_LegacyRenderStyle,STYLE_Shaded,DTA_FillColor,Color(0,0,0),DTA_Alpha,.8*alf,DTA_TopOffset,256,DTA_LeftOffset,128);
double alph;
if ( tipflash && (gametic < tipflash) ) alph = max((tipflash-(gametic+fractic))/25.,0.)**1.5;
xx -= 8*CleanXFac_1;