|
|
|
@ -118,6 +118,7 @@ namespace MWGui
|
|
|
|
|
, mCrosshairEnabled(Settings::Manager::getBool ("crosshair", "HUD"))
|
|
|
|
|
, mSubtitlesEnabled(Settings::Manager::getBool ("subtitles", "GUI"))
|
|
|
|
|
, mHudEnabled(true)
|
|
|
|
|
, mGuiEnabled(true)
|
|
|
|
|
, mCursorVisible(true)
|
|
|
|
|
, mPlayerName()
|
|
|
|
|
, mPlayerRaceId()
|
|
|
|
@ -420,7 +421,7 @@ namespace MWGui
|
|
|
|
|
mRecharge->setVisible(false);
|
|
|
|
|
mVideoBackground->setVisible(false);
|
|
|
|
|
|
|
|
|
|
mHud->setVisible(mHudEnabled);
|
|
|
|
|
mHud->setVisible(mHudEnabled && mGuiEnabled);
|
|
|
|
|
|
|
|
|
|
bool gameMode = !isGuiMode();
|
|
|
|
|
|
|
|
|
@ -430,6 +431,13 @@ namespace MWGui
|
|
|
|
|
if (gameMode)
|
|
|
|
|
setKeyFocusWidget (NULL);
|
|
|
|
|
|
|
|
|
|
if (!mGuiEnabled)
|
|
|
|
|
{
|
|
|
|
|
if (containsMode(GM_Console))
|
|
|
|
|
mConsole->setVisible(true);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 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)));
|
|
|
|
@ -1345,6 +1353,13 @@ namespace MWGui
|
|
|
|
|
mHud->setVisible (mHudEnabled);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool WindowManager::toggleGui()
|
|
|
|
|
{
|
|
|
|
|
mGuiEnabled = !mGuiEnabled;
|
|
|
|
|
updateVisible();
|
|
|
|
|
return mGuiEnabled;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool WindowManager::getRestEnabled()
|
|
|
|
|
{
|
|
|
|
|
//Enable rest dialogue if character creation finished
|
|
|
|
|