Fix GUI regressions

new-script-api
scrawl 7 years ago
parent a795aa7685
commit 433028e8d7

@ -390,6 +390,7 @@ namespace MWGui
{ {
// No greetings found. The dialogue window should not be shown. // No greetings found. The dialogue window should not be shown.
// If this is a companion, we must show the companion window directly (used by BM_bear_be_unique). // If this is a companion, we must show the companion window directly (used by BM_bear_be_unique).
MWBase::Environment::get().getWindowManager()->removeGuiMode(MWGui::GM_Dialogue);
if (isCompanion()) if (isCompanion())
MWBase::Environment::get().getWindowManager()->pushGuiMode(MWGui::GM_Companion, mPtr); MWBase::Environment::get().getWindowManager()->pushGuiMode(MWGui::GM_Companion, mPtr);
return; return;

@ -606,7 +606,7 @@ namespace MWGui
mMap->setVisible(false); mMap->setVisible(false);
mStatsWindow->setVisible(false); mStatsWindow->setVisible(false);
mSpellWindow->setVisible(false); mSpellWindow->setVisible(false);
mInventoryWindow->setVisible(getMode() == GM_Container || getMode() == GM_Barter); mInventoryWindow->setVisible(getMode() == GM_Container || getMode() == GM_Barter || getMode() == GM_Companion);
} }
GuiMode mode = mGuiModes.back(); GuiMode mode = mGuiModes.back();

Loading…
Cancel
Save