mirror of
https://github.com/OpenMW/openmw.git
synced 2025-11-02 06:56:38 +00:00
Disable double-clicking on window titles in the inventory menu
This commit is contained in:
parent
eba063ac23
commit
0abbf91477
4 changed files with 12 additions and 4 deletions
|
|
@ -594,7 +594,9 @@ namespace MWGui
|
|||
|
||||
void InventoryWindow::onTitleDoubleClicked()
|
||||
{
|
||||
if (MyGUI::InputManager::getInstance().isShiftPressed())
|
||||
if (Settings::gui().mControllerMenus && mGuiMode == GM_Inventory)
|
||||
return;
|
||||
else if (MyGUI::InputManager::getInstance().isShiftPressed())
|
||||
toggleMaximized();
|
||||
else if (!mPinned)
|
||||
MWBase::Environment::get().getWindowManager()->toggleVisible(GW_Inventory);
|
||||
|
|
|
|||
|
|
@ -1243,7 +1243,9 @@ namespace MWGui
|
|||
|
||||
void MapWindow::onTitleDoubleClicked()
|
||||
{
|
||||
if (MyGUI::InputManager::getInstance().isShiftPressed())
|
||||
if (Settings::gui().mControllerMenus)
|
||||
return;
|
||||
else if (MyGUI::InputManager::getInstance().isShiftPressed())
|
||||
MWBase::Environment::get().getWindowManager()->toggleMaximized(this);
|
||||
else if (!mPinned)
|
||||
MWBase::Environment::get().getWindowManager()->toggleVisible(GW_Map);
|
||||
|
|
|
|||
|
|
@ -76,7 +76,9 @@ namespace MWGui
|
|||
|
||||
void SpellWindow::onTitleDoubleClicked()
|
||||
{
|
||||
if (MyGUI::InputManager::getInstance().isShiftPressed())
|
||||
if (Settings::gui().mControllerMenus)
|
||||
return;
|
||||
else if (MyGUI::InputManager::getInstance().isShiftPressed())
|
||||
MWBase::Environment::get().getWindowManager()->toggleMaximized(this);
|
||||
else if (!mPinned)
|
||||
MWBase::Environment::get().getWindowManager()->toggleVisible(GW_Magic);
|
||||
|
|
|
|||
|
|
@ -723,7 +723,9 @@ namespace MWGui
|
|||
|
||||
void StatsWindow::onTitleDoubleClicked()
|
||||
{
|
||||
if (MyGUI::InputManager::getInstance().isShiftPressed())
|
||||
if (Settings::gui().mControllerMenus)
|
||||
return;
|
||||
else if (MyGUI::InputManager::getInstance().isShiftPressed())
|
||||
{
|
||||
MWBase::Environment::get().getWindowManager()->toggleMaximized(this);
|
||||
MyGUI::Window* t = mMainWidget->castType<MyGUI::Window>();
|
||||
|
|
|
|||
Loading…
Reference in a new issue