summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-26 15:09:45 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-26 15:09:45 +0300
commita859c1fa8c67dadb908e476803b128004b08db57 (patch)
tree03fdf13e70bc471715e6b71560155a750a4dc8bb /src/gui/widgets
parentdc21556d658a1006c35ddf7acc95c71d9340eec4 (diff)
downloadplus-a859c1fa8c67dadb908e476803b128004b08db57.tar.gz
plus-a859c1fa8c67dadb908e476803b128004b08db57.tar.bz2
plus-a859c1fa8c67dadb908e476803b128004b08db57.tar.xz
plus-a859c1fa8c67dadb908e476803b128004b08db57.zip
Add support for move 1 amount of item to craft if hold stop attack key (left shift)
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/itemcontainer.cpp7
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(),