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

This commit is contained in:
Christoph Oelckers 2019-08-09 15:22:52 +02:00
parent 1e4a32004b
commit 3b4184816b
4 changed files with 6 additions and 1 deletions

View file

@ -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)

View file

@ -271,6 +271,7 @@ public:
bool mMouseCapture;
bool mBackbuttonSelected;
bool DontDim;
bool DontBlur;
static int InMenu;
DMenu(DMenu *parent = NULL);

View file

@ -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)
{

View file

@ -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;
}
//=============================================================================