mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-03 09:23:19 +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;
|
double refreshfreq;
|
||||||
FString endoomName;
|
FString endoomName;
|
||||||
bool batchrun;
|
bool batchrun;
|
||||||
|
float menuBlurAmount;
|
||||||
|
|
||||||
|
|
|
@ -31,3 +31,4 @@ struct WadStuff
|
||||||
|
|
||||||
extern FString endoomName;
|
extern FString endoomName;
|
||||||
extern bool batchrun;
|
extern bool batchrun;
|
||||||
|
extern float menuBlurAmount;
|
||||||
|
|
|
@ -3333,6 +3333,7 @@ static int D_DoomMain_Internal (void)
|
||||||
G_ParseMapInfo (iwad_info->MapInfo);
|
G_ParseMapInfo (iwad_info->MapInfo);
|
||||||
MessageBoxClass = gameinfo.MessageBoxClass;
|
MessageBoxClass = gameinfo.MessageBoxClass;
|
||||||
endoomName = gameinfo.Endoom;
|
endoomName = gameinfo.Endoom;
|
||||||
|
menuBlurAmount = gameinfo.bluramount;
|
||||||
ReadStatistics();
|
ReadStatistics();
|
||||||
|
|
||||||
// MUSINFO must be parsed after MAPINFO
|
// MUSINFO must be parsed after MAPINFO
|
||||||
|
|
|
@ -741,7 +741,7 @@ void M_Drawer (void)
|
||||||
|
|
||||||
if (CurrentMenu != nullptr && menuactive != MENU_Off)
|
if (CurrentMenu != nullptr && menuactive != MENU_Off)
|
||||||
{
|
{
|
||||||
if (!CurrentMenu->DontBlur) screen->BlurScene(0);
|
if (!CurrentMenu->DontBlur) screen->BlurScene(menuBlurAmount);
|
||||||
if (!CurrentMenu->DontDim)
|
if (!CurrentMenu->DontDim)
|
||||||
{
|
{
|
||||||
if (sysCallbacks && sysCallbacks->MenuDim) sysCallbacks->MenuDim();
|
if (sysCallbacks && sysCallbacks->MenuDim) sysCallbacks->MenuDim();
|
||||||
|
|
Loading…
Reference in a new issue