diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-01-26 15:09:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-01-26 15:09:45 +0300 |
commit | a859c1fa8c67dadb908e476803b128004b08db57 (patch) | |
tree | 03fdf13e70bc471715e6b71560155a750a4dc8bb | |
parent | dc21556d658a1006c35ddf7acc95c71d9340eec4 (diff) | |
download | mv-a859c1fa8c67dadb908e476803b128004b08db57.tar.gz mv-a859c1fa8c67dadb908e476803b128004b08db57.tar.bz2 mv-a859c1fa8c67dadb908e476803b128004b08db57.tar.xz mv-a859c1fa8c67dadb908e476803b128004b08db57.zip |
Add support for move 1 amount of item to craft if hold stop attack key (left shift)
-rw-r--r-- | src/gui/widgets/itemcontainer.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp index 65c5f24e5..4c183d87d 100644 --- a/src/gui/widgets/itemcontainer.cpp +++ b/src/gui/widgets/itemcontainer.cpp @@ -46,6 +46,10 @@ #include "gui/windows/npcdialog.h" #endif +#ifdef EATHENA_SUPPORT +#include "input/inputmanager.h" +#endif + #include "net/inventoryhandler.h" #ifdef EATHENA_SUPPORT #include "net/npchandler.h" @@ -872,7 +876,8 @@ void ItemContainer::mouseReleased(MouseEvent &event) if (!item || item->isEquipped() == Equipped_true) return; const int slot = getSlotByXY(event.getX(), event.getY()); - if (item->getQuantity() > 1) + if (item->getQuantity() > 1 + && !inputManager.isActionActive(InputAction::STOP_ATTACK)) { ItemAmountWindow::showWindow(ItemAmountWindow::CraftAdd, npcHandler->getCurrentNpcDialog(), |