diff --git a/apps/openmw/mwgui/mode.hpp b/apps/openmw/mwgui/mode.hpp index db851e067..19be8157e 100644 --- a/apps/openmw/mwgui/mode.hpp +++ b/apps/openmw/mwgui/mode.hpp @@ -48,7 +48,8 @@ namespace MWGui GM_LoadingWallpaper, GM_Jail, - GM_QuickKeysMenu + GM_QuickKeysMenu, + GM_TES3MPPipe }; // Windows shown in inventory mode diff --git a/apps/openmw/mwgui/windowmanagerimp.cpp b/apps/openmw/mwgui/windowmanagerimp.cpp index 09b72ad3d..1742c9d1e 100644 --- a/apps/openmw/mwgui/windowmanagerimp.cpp +++ b/apps/openmw/mwgui/windowmanagerimp.cpp @@ -45,6 +45,7 @@ #include #include +#include #include "../mwbase/inputmanager.hpp" #include "../mwbase/statemanager.hpp" @@ -676,6 +677,9 @@ namespace MWGui mToolTips->setVisible(false); setCursorVisible(mMessageBoxManager && mMessageBoxManager->isInteractiveMessageBox()); break; + case GM_TES3MPPipe: + mwmp::Main::get().getGUIController()->WM_UpdateVisible(mode); + break; default: // Unsupported mode, switch back to game break; diff --git a/apps/openmw/mwmp/GUIController.cpp b/apps/openmw/mwmp/GUIController.cpp index bc8b832e8..653227e1e 100644 --- a/apps/openmw/mwmp/GUIController.cpp +++ b/apps/openmw/mwmp/GUIController.cpp @@ -90,6 +90,7 @@ void mwmp::GUIController::ShowInputBox(const BasePlayer::GUIMessageBox &guiMessa MWBase::WindowManager *windowManager = MWBase::Environment::get().getWindowManager(); windowManager->removeDialog(mInputBox); + windowManager->pushGuiMode(MWGui::GM_TES3MPPipe); mInputBox = 0; mInputBox = new MWGui::TextInputDialog(); mInputBox->setTextLabel(guiMessageBox.label); @@ -108,6 +109,7 @@ void mwmp::GUIController::OnInputBoxDone(MWGui::WindowBase *parWindow) MWBase::Environment::get().getWindowManager()->removeDialog(mInputBox); mInputBox = 0; + MWBase::Environment::get().getWindowManager()->popGuiMode(); } bool mwmp::GUIController::pressedKey(int key) @@ -154,4 +156,15 @@ void mwmp::GUIController::update(float dt) } +void mwmp::GUIController::WM_UpdateVisible(MWGui::GuiMode mode) +{ + switch(mode) + { + case MWGui::GM_TES3MPPipe: + break; + default: + break; + } +} + diff --git a/apps/openmw/mwmp/GUIController.hpp b/apps/openmw/mwmp/GUIController.hpp index 73a806bda..1e79ea0e1 100644 --- a/apps/openmw/mwmp/GUIController.hpp +++ b/apps/openmw/mwmp/GUIController.hpp @@ -7,6 +7,7 @@ #include #include +#include #include #include "GUIChat.hpp" @@ -33,6 +34,7 @@ namespace mwmp void update(float dt); + void WM_UpdateVisible(MWGui::GuiMode mode); private: GUIChat *mChat; int keySay;