forked from mirror/openmw-tes3mp
Display HUD icons for hidden windows
This commit is contained in:
parent
c27c33f542
commit
997f37700d
1 changed files with 5 additions and 5 deletions
|
@ -364,10 +364,11 @@ namespace MWGui
|
||||||
if (gameMode)
|
if (gameMode)
|
||||||
setKeyFocusWidget (NULL);
|
setKeyFocusWidget (NULL);
|
||||||
|
|
||||||
setMinimapVisibility((mAllowed & GW_Map) && !mMap->pinned());
|
// Icons of forced hidden windows are displayed
|
||||||
setWeaponVisibility((mAllowed & GW_Inventory) && !mInventoryWindow->pinned());
|
setMinimapVisibility((mAllowed & GW_Map) && (!mMap->pinned() || (mForceHidden & GW_Map)));
|
||||||
setSpellVisibility((mAllowed & GW_Magic) && !mSpellWindow->pinned());
|
setWeaponVisibility((mAllowed & GW_Inventory) && (!mInventoryWindow->pinned() || (mForceHidden & GW_Inventory)));
|
||||||
setHMSVisibility((mAllowed & GW_Stats) && !mStatsWindow->pinned());
|
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 in game mode, show only the pinned windows
|
||||||
if (gameMode)
|
if (gameMode)
|
||||||
|
@ -394,7 +395,6 @@ namespace MWGui
|
||||||
mSettingsWindow->setVisible(true);
|
mSettingsWindow->setVisible(true);
|
||||||
break;
|
break;
|
||||||
case GM_Console:
|
case GM_Console:
|
||||||
|
|
||||||
mConsole->setVisible(true);
|
mConsole->setVisible(true);
|
||||||
break;
|
break;
|
||||||
case GM_Scroll:
|
case GM_Scroll:
|
||||||
|
|
Loading…
Reference in a new issue