From 997f37700dc0f43fe27a23d689452ec50b5150bf Mon Sep 17 00:00:00 2001 From: Emanuel Guevel Date: Mon, 12 Aug 2013 10:39:45 +0200 Subject: [PATCH] Display HUD icons for hidden windows --- apps/openmw/mwgui/windowmanagerimp.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/openmw/mwgui/windowmanagerimp.cpp b/apps/openmw/mwgui/windowmanagerimp.cpp index e77059034..c0a30206b 100644 --- a/apps/openmw/mwgui/windowmanagerimp.cpp +++ b/apps/openmw/mwgui/windowmanagerimp.cpp @@ -364,10 +364,11 @@ namespace MWGui if (gameMode) setKeyFocusWidget (NULL); - setMinimapVisibility((mAllowed & GW_Map) && !mMap->pinned()); - setWeaponVisibility((mAllowed & GW_Inventory) && !mInventoryWindow->pinned()); - setSpellVisibility((mAllowed & GW_Magic) && !mSpellWindow->pinned()); - setHMSVisibility((mAllowed & GW_Stats) && !mStatsWindow->pinned()); + // Icons of forced hidden windows are displayed + setMinimapVisibility((mAllowed & GW_Map) && (!mMap->pinned() || (mForceHidden & GW_Map))); + setWeaponVisibility((mAllowed & GW_Inventory) && (!mInventoryWindow->pinned() || (mForceHidden & GW_Inventory))); + setSpellVisibility((mAllowed & GW_Magic) && (!mSpellWindow->pinned() || (mForceHidden & GW_Magic))); + setHMSVisibility((mAllowed & GW_Stats) && (!mStatsWindow->pinned() || (mForceHidden & GW_Stats))); // If in game mode, show only the pinned windows if (gameMode) @@ -394,7 +395,6 @@ namespace MWGui mSettingsWindow->setVisible(true); break; case GM_Console: - mConsole->setVisible(true); break; case GM_Scroll: