- exposed menu blur amount to engine interface

https://forum.zdoom.org/viewtopic.php?t=69056
This commit is contained in:
alexey.lysiuk 2020-06-20 12:06:49 +03:00
parent 04992f2bc8
commit 18f2cf0fdc
4 changed files with 4 additions and 1 deletions

View file

@ -5,4 +5,5 @@ SystemCallbacks *sysCallbacks;
double refreshfreq;
FString endoomName;
bool batchrun;
float menuBlurAmount;

View file

@ -31,3 +31,4 @@ struct WadStuff
extern FString endoomName;
extern bool batchrun;
extern float menuBlurAmount;

View file

@ -3333,6 +3333,7 @@ static int D_DoomMain_Internal (void)
G_ParseMapInfo (iwad_info->MapInfo);
MessageBoxClass = gameinfo.MessageBoxClass;
endoomName = gameinfo.Endoom;
menuBlurAmount = gameinfo.bluramount;
ReadStatistics();
// MUSINFO must be parsed after MAPINFO

View file

@ -741,7 +741,7 @@ void M_Drawer (void)
if (CurrentMenu != nullptr && menuactive != MENU_Off)
{
if (!CurrentMenu->DontBlur) screen->BlurScene(0);
if (!CurrentMenu->DontBlur) screen->BlurScene(menuBlurAmount);
if (!CurrentMenu->DontDim)
{
if (sysCallbacks && sysCallbacks->MenuDim) sysCallbacks->MenuDim();