mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- exposed menu blur amount to engine interface
https://forum.zdoom.org/viewtopic.php?t=69056
This commit is contained in:
parent
04992f2bc8
commit
18f2cf0fdc
4 changed files with 4 additions and 1 deletions
|
@ -5,4 +5,5 @@ SystemCallbacks *sysCallbacks;
|
|||
double refreshfreq;
|
||||
FString endoomName;
|
||||
bool batchrun;
|
||||
float menuBlurAmount;
|
||||
|
||||
|
|
|
@ -31,3 +31,4 @@ struct WadStuff
|
|||
|
||||
extern FString endoomName;
|
||||
extern bool batchrun;
|
||||
extern float menuBlurAmount;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue