|
|
@ -1133,10 +1133,21 @@ namespace MWInput
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (!mControlSwitch["playercontrols"])
|
|
|
|
if (!mControlSwitch["playercontrols"])
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
if (MyGUI::InputManager::getInstance ().isModalAny())
|
|
|
|
if (MyGUI::InputManager::getInstance ().isModalAny())
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
Start of tes3mp addition
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Ignore attempts to open inventory if the player has not logged in on the server yet
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
if (!mwmp::Main::get().getLocalPlayer()->isLoggedIn())
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
End of tes3mp addition
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
// Toggle between game mode and inventory mode
|
|
|
|
// Toggle between game mode and inventory mode
|
|
|
|
if(!MWBase::Environment::get().getWindowManager()->isGuiMode())
|
|
|
|
if(!MWBase::Environment::get().getWindowManager()->isGuiMode())
|
|
|
|
MWBase::Environment::get().getWindowManager()->pushGuiMode(MWGui::GM_Inventory);
|
|
|
|
MWBase::Environment::get().getWindowManager()->pushGuiMode(MWGui::GM_Inventory);
|
|
|
|