forked from teamnwah/openmw-tes3coop
Fix pinned windows showing in other GUI modes
This commit is contained in:
parent
65a707348c
commit
9ead331741
1 changed files with 9 additions and 1 deletions
|
@ -613,6 +613,8 @@ namespace MWGui
|
||||||
setSpellVisibility((mAllowed & GW_Magic) && (!mSpellWindow->pinned() || (mForceHidden & GW_Magic)));
|
setSpellVisibility((mAllowed & GW_Magic) && (!mSpellWindow->pinned() || (mForceHidden & GW_Magic)));
|
||||||
setHMSVisibility((mAllowed & GW_Stats) && (!mStatsWindow->pinned() || (mForceHidden & GW_Stats)));
|
setHMSVisibility((mAllowed & GW_Stats) && (!mStatsWindow->pinned() || (mForceHidden & GW_Stats)));
|
||||||
|
|
||||||
|
mInventoryWindow->setGuiMode(getMode());
|
||||||
|
|
||||||
// If in game mode (or interactive messagebox), show the pinned windows
|
// If in game mode (or interactive messagebox), show the pinned windows
|
||||||
if (mGuiModes.empty())
|
if (mGuiModes.empty())
|
||||||
{
|
{
|
||||||
|
@ -622,11 +624,17 @@ namespace MWGui
|
||||||
mSpellWindow->setVisible(mSpellWindow->pinned() && !(mForceHidden & GW_Magic) && (mAllowed & GW_Magic));
|
mSpellWindow->setVisible(mSpellWindow->pinned() && !(mForceHidden & GW_Magic) && (mAllowed & GW_Magic));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
else if (getMode() != GM_Inventory)
|
||||||
|
{
|
||||||
|
mMap->setVisible(false);
|
||||||
|
mStatsWindow->setVisible(false);
|
||||||
|
mSpellWindow->setVisible(false);
|
||||||
|
mInventoryWindow->setVisible(getMode() == GM_Container || getMode() == GM_Barter);
|
||||||
|
}
|
||||||
|
|
||||||
GuiMode mode = mGuiModes.back();
|
GuiMode mode = mGuiModes.back();
|
||||||
|
|
||||||
mInventoryWindow->setTrading(mode == GM_Barter);
|
mInventoryWindow->setTrading(mode == GM_Barter);
|
||||||
mInventoryWindow->setGuiMode(mode);
|
|
||||||
|
|
||||||
// For the inventory mode, compute the effective set of windows to show.
|
// For the inventory mode, compute the effective set of windows to show.
|
||||||
// This is controlled both by what windows the
|
// This is controlled both by what windows the
|
||||||
|
|
Loading…
Reference in a new issue