mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-22 03:52:00 -04:00
[Client] Prevent main menu from being opened while in TES3MP listboxes
This commit is contained in:
parent
790cb63443
commit
e72bacbed3
@ -13,6 +13,7 @@
|
||||
*/
|
||||
#include "../mwmp/Main.hpp"
|
||||
#include "../mwmp/LocalPlayer.hpp"
|
||||
#include "../mwmp/GUIController.hpp"
|
||||
/*
|
||||
End of tes3mp addition
|
||||
*/
|
||||
@ -366,6 +367,19 @@ namespace MWInput
|
||||
|
||||
void ActionManager::toggleMainMenu()
|
||||
{
|
||||
/*
|
||||
Start of tes3mp addition
|
||||
|
||||
Don't allow the main menu to be toggled while TES3MP listboxes are open
|
||||
*/
|
||||
if (MWBase::Environment::get().getWindowManager()->getMode() == mwmp::GUIController::GM_TES3MP_ListBox)
|
||||
{
|
||||
return;
|
||||
}
|
||||
/*
|
||||
End of tes3mp addition
|
||||
*/
|
||||
|
||||
if (MyGUI::InputManager::getInstance().isModalAny())
|
||||
{
|
||||
MWBase::Environment::get().getWindowManager()->exitCurrentModal();
|
||||
|
Loading…
x
Reference in New Issue
Block a user