mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Right mouse button click now stops Container GuiMode.
This commit is contained in:
parent
f19fbaa293
commit
bba024d6ad
@ -579,10 +579,14 @@ namespace MWInput
|
|||||||
// Toggle between game mode and inventory mode
|
// Toggle between game mode and inventory mode
|
||||||
if(gameMode)
|
if(gameMode)
|
||||||
mWindows.pushGuiMode(MWGui::GM_Inventory);
|
mWindows.pushGuiMode(MWGui::GM_Inventory);
|
||||||
else if(mWindows.getMode() == MWGui::GM_Inventory)
|
else
|
||||||
mWindows.popGuiMode();
|
{
|
||||||
|
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()
|
void InputManager::toggleConsole()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user