Skip to content
Permalink
Browse files

- do not blur the background for portrait-less conversations.

  • Loading branch information...
coelckers committed Aug 9, 2019
1 parent 1e4a320 commit 3b4184816b88351e97fc783f9f88998a4f53b5b2
@@ -887,7 +887,7 @@ void M_Drawer (void)

if (CurrentMenu != nullptr && menuactive != MENU_Off)
{
screen->BlurScene(gameinfo.bluramount);
if (!CurrentMenu->DontBlur) screen->BlurScene(gameinfo.bluramount);
if (!CurrentMenu->DontDim)
{
M_Dim();
@@ -1197,6 +1197,7 @@ DEFINE_FIELD(DMenu, mParentMenu)
DEFINE_FIELD(DMenu, mMouseCapture);
DEFINE_FIELD(DMenu, mBackbuttonSelected);
DEFINE_FIELD(DMenu, DontDim);
DEFINE_FIELD(DMenu, DontBlur);

DEFINE_FIELD(DMenuDescriptor, mMenuName)
DEFINE_FIELD(DMenuDescriptor, mNetgameMessage)
@@ -271,6 +271,7 @@ class DMenu : public DObject
bool mMouseCapture;
bool mBackbuttonSelected;
bool DontDim;
bool DontBlur;
static int InMenu;

DMenu(DMenu *parent = NULL);
@@ -119,6 +119,7 @@ class ConversationMenu : Menu

let tex = TexMan.CheckForTexture (CurNode.Backdrop, TexMan.Type_MiscPatch);
mHasBackdrop = tex.isValid();
DontBlur = !mHasBackdrop;

if (!generic_ui && !dlg_vgafont)
{
@@ -90,6 +90,7 @@ class Menu : Object native ui version("2.4")
native bool mMouseCapture;
native bool mBackbuttonSelected;
native bool DontDim;
native bool DontBlur;

native static int MenuTime();
native static Menu GetCurrentMenu();
@@ -113,6 +114,7 @@ class Menu : Object native ui version("2.4")
mMouseCapture = false;
mBackbuttonSelected = false;
DontDim = false;
DontBlur = false;
}

//=============================================================================

0 comments on commit 3b41848

Please sign in to comment.
You can’t perform that action at this time.