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

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r1209 \cu(mié 26 mar 2025 01:05:27 CET)\c-";
SWWM_SHORTVER="\cw1.3pre r1209 \cu(2025-03-26 01:05:27)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r1210 \cu(mar 01 abr 2025 17:13:44 CEST)\c-";
SWWM_SHORTVER="\cw1.3pre r1210 \cu(2025-04-01 17:13:44)\c-";

View file

@ -395,3 +395,8 @@ BDRed
#000000 #000000 0 50
#800000 #FF4040 51 255
}
aprcol
{
#FFFFFF #000000 0 50
#000000 #000000 51 255
}

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);
}
}