mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 06:42:12 +00:00
- do not blur the background for portrait-less conversations.
This commit is contained in:
parent
1e4a32004b
commit
3b4184816b
4 changed files with 6 additions and 1 deletions
|
@ -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 @@ public:
|
|||
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;
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
|
Loading…
Reference in a new issue