Make the April Fools bit somewhat more authentic aesthetically.

This commit is contained in:
Mari the Deer 2025-04-01 17:13:44 +02:00
commit b5e655cf08
3 changed files with 11 additions and 4 deletions

View file

@ -256,8 +256,10 @@ Class SWWMStaticHandler : StaticEventHandler
if ( aprilfools && (gamestate == GS_LEVEL) )
{
String str = "Unregistered Ultracam";
if ( !aprfnt ) aprfnt = Font.GetFont('TewiFontOutline');
Screen.DrawText(aprfnt,Font.CR_WHITE,(Screen.GetWidth()-aprfnt.StringWidth(str)*CleanXFac_1)/2,2*CleanYFac_1,str,DTA_CleanNoMove_1,true);
if ( !aprfnt ) aprfnt = newsmallfont /*Font.GetFont('MiniHUDOutline')*/;
int w = aprfnt.StringWidth(str);
Screen.Dim(0xFFFFFFFF,1.,(Screen.GetWidth()-(w+16)*CleanXFac)/2,0,(w+16)*CleanXFac,(aprfnt.GetHeight()+8)*CleanYFac);
Screen.DrawText(aprfnt,Font.FindFontColor('aprcol'),(Screen.GetWidth()-w*CleanXFac)/2,4*CleanYFac,str,DTA_CleanNoMove,true);
}
}