|
|
|
@ -914,6 +914,9 @@ namespace MWGui
|
|
|
|
|
if (isConsoleMode())
|
|
|
|
|
mConsole->onFrame(frameDuration);
|
|
|
|
|
|
|
|
|
|
if (isSettingsWindowVisible())
|
|
|
|
|
mSettingsWindow->onFrame(frameDuration);
|
|
|
|
|
|
|
|
|
|
if (!gameRunning)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
@ -1470,10 +1473,6 @@ namespace MWGui
|
|
|
|
|
{
|
|
|
|
|
return mPostProcessorHud;
|
|
|
|
|
}
|
|
|
|
|
MWGui::SettingsWindow* WindowManager::getSettingsWindow()
|
|
|
|
|
{
|
|
|
|
|
return mSettingsWindow;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void WindowManager::useItem(const MWWorld::Ptr& item, bool bypassBeastRestrictions)
|
|
|
|
|
{
|
|
|
|
@ -1549,6 +1548,11 @@ namespace MWGui
|
|
|
|
|
return mPostProcessorHud && mPostProcessorHud->isVisible();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool WindowManager::isSettingsWindowVisible() const
|
|
|
|
|
{
|
|
|
|
|
return mSettingsWindow && mSettingsWindow->isVisible();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool WindowManager::isInteractiveMessageBoxActive() const
|
|
|
|
|
{
|
|
|
|
|
return mMessageBoxManager && mMessageBoxManager->isInteractiveMessageBox();
|
|
|
|
@ -2130,6 +2134,21 @@ namespace MWGui
|
|
|
|
|
updateVisible();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void WindowManager::toggleSettingsWindow()
|
|
|
|
|
{
|
|
|
|
|
bool visible = mSettingsWindow->isVisible();
|
|
|
|
|
|
|
|
|
|
if (!visible && !mGuiModes.empty())
|
|
|
|
|
mKeyboardNavigation->saveFocus(mGuiModes.back());
|
|
|
|
|
|
|
|
|
|
mSettingsWindow->setVisible(!visible);
|
|
|
|
|
|
|
|
|
|
if (visible && !mGuiModes.empty())
|
|
|
|
|
mKeyboardNavigation->restoreFocus(mGuiModes.back());
|
|
|
|
|
|
|
|
|
|
updateVisible();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void WindowManager::cycleSpell(bool next)
|
|
|
|
|
{
|
|
|
|
|
if (!isGuiMode())
|
|
|
|
|