forked from teamnwah/openmw-tes3coop
Don't allow toggling inventory or journal when a modal window is opened
This commit is contained in:
parent
0079f62180
commit
a723ad8f29
1 changed files with 6 additions and 0 deletions
|
@ -623,6 +623,9 @@ namespace MWInput
|
||||||
|
|
||||||
void InputManager::toggleInventory()
|
void InputManager::toggleInventory()
|
||||||
{
|
{
|
||||||
|
if (MyGUI::InputManager::getInstance ().isModalAny())
|
||||||
|
return;
|
||||||
|
|
||||||
bool gameMode = !mWindows.isGuiMode();
|
bool gameMode = !mWindows.isGuiMode();
|
||||||
|
|
||||||
// Toggle between game mode and inventory mode
|
// Toggle between game mode and inventory mode
|
||||||
|
@ -660,6 +663,9 @@ namespace MWInput
|
||||||
|
|
||||||
void InputManager::toggleJournal()
|
void InputManager::toggleJournal()
|
||||||
{
|
{
|
||||||
|
if (MyGUI::InputManager::getInstance ().isModalAny())
|
||||||
|
return;
|
||||||
|
|
||||||
// Toggle between game mode and journal mode
|
// Toggle between game mode and journal mode
|
||||||
bool gameMode = !mWindows.isGuiMode();
|
bool gameMode = !mWindows.isGuiMode();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue