Add fizzlefade wipe effect

This commit is contained in:
Magnus Norddahl 2024-03-30 10:50:23 +01:00
commit bf3ccad3e2
7 changed files with 112 additions and 4 deletions

View file

@ -984,6 +984,10 @@ void D_Display ()
case GS_FORCEWIPEMELT:
wipe_type = wipe_Melt;
break;
case GS_FORCEWIPEFIZZLEFADE:
wipe_type = wipe_Fizzlefade;
break;
}
}
@ -3010,7 +3014,25 @@ static void System_StartCutscene(bool blockui)
static void System_SetTransition(int type)
{
if (type != wipe_None) wipegamestate = type == wipe_Burn? GS_FORCEWIPEBURN : type == wipe_Fade? GS_FORCEWIPEFADE : GS_FORCEWIPEMELT;
if (type != wipe_None)
{
switch (type)
{
case wipe_Burn:
wipegamestate = GS_FORCEWIPEBURN;
break;
case wipe_Fizzlefade:
wipegamestate = GS_FORCEWIPEFIZZLEFADE;
break;
case wipe_Fade:
wipegamestate = GS_FORCEWIPEFADE;
break;
default:
case wipe_Melt:
wipegamestate = GS_FORCEWIPEMELT;
break;
}
}
}
static void System_HudScaleChanged()