mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
Don't allow toggling inventory or journal when a modal window is opened
This commit is contained in:
parent
0079f62180
commit
a723ad8f29
@ -623,6 +623,9 @@ namespace MWInput
|
||||
|
||||
void InputManager::toggleInventory()
|
||||
{
|
||||
if (MyGUI::InputManager::getInstance ().isModalAny())
|
||||
return;
|
||||
|
||||
bool gameMode = !mWindows.isGuiMode();
|
||||
|
||||
// Toggle between game mode and inventory mode
|
||||
@ -660,6 +663,9 @@ namespace MWInput
|
||||
|
||||
void InputManager::toggleJournal()
|
||||
{
|
||||
if (MyGUI::InputManager::getInstance ().isModalAny())
|
||||
return;
|
||||
|
||||
// Toggle between game mode and journal mode
|
||||
bool gameMode = !mWindows.isGuiMode();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user