|
|
|
@ -1406,6 +1406,19 @@ namespace MWGui
|
|
|
|
|
{
|
|
|
|
|
mMap->clear();
|
|
|
|
|
mQuickKeysMenu->clear();
|
|
|
|
|
|
|
|
|
|
mTrainingWindow->resetReference();
|
|
|
|
|
mDialogueWindow->resetReference();
|
|
|
|
|
mTradeWindow->resetReference();
|
|
|
|
|
mSpellBuyingWindow->resetReference();
|
|
|
|
|
mSpellCreationDialog->resetReference();
|
|
|
|
|
mEnchantingDialog->resetReference();
|
|
|
|
|
mContainerWindow->resetReference();
|
|
|
|
|
mCompanionWindow->resetReference();
|
|
|
|
|
mConsole->resetReference();
|
|
|
|
|
|
|
|
|
|
mGuiModes.clear();
|
|
|
|
|
updateVisible();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void WindowManager::write(ESM::ESMWriter &writer, Loading::Listener& progress)
|
|
|
|
@ -1430,6 +1443,13 @@ namespace MWGui
|
|
|
|
|
+ 1; // QuickKeysMenu
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool WindowManager::isSavingAllowed() const
|
|
|
|
|
{
|
|
|
|
|
return !MyGUI::InputManager::getInstance().isModalAny()
|
|
|
|
|
// TODO: remove this, once we have properly serialized the state of open windows
|
|
|
|
|
&& (!isGuiMode() || (mGuiModes.size() == 1 && getMode() == GM_MainMenu));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void WindowManager::playVideo(const std::string &name, bool allowSkipping)
|
|
|
|
|
{
|
|
|
|
|
mVideoWidget->playVideo("video\\" + name, allowSkipping);
|
|
|
|
|