1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 06:39:49 +00:00

Right mouse button click now stops Container GuiMode.

This commit is contained in:
Sergey Shambir 2013-02-10 08:37:45 +04:00
parent f19fbaa293
commit bba024d6ad

View File

@ -579,10 +579,14 @@ namespace MWInput
// Toggle between game mode and inventory mode
if(gameMode)
mWindows.pushGuiMode(MWGui::GM_Inventory);
else if(mWindows.getMode() == MWGui::GM_Inventory)
mWindows.popGuiMode();
else
{
MWGui::GuiMode mode = mWindows.getMode();
if(mode == MWGui::GM_Inventory || mode == MWGui::GM_Container)
mWindows.popGuiMode();
}
// .. but don't touch any other mode.
// .. but don't touch any other mode, except container.
}
void InputManager::toggleConsole()