diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-29 01:36:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-29 14:10:28 +0300 |
commit | 4b0f30b1e1879cee6d65394d826bba21eca6c40b (patch) | |
tree | 14d16cadd1b8fe20bc0bfa2ea8974ff46b00b496 /src/gui/widgets | |
parent | 13920702c8a5e5b093d9a3ef5a5e8b254931915b (diff) | |
download | mv-4b0f30b1e1879cee6d65394d826bba21eca6c40b.tar.gz mv-4b0f30b1e1879cee6d65394d826bba21eca6c40b.tar.bz2 mv-4b0f30b1e1879cee6d65394d826bba21eca6c40b.tar.xz mv-4b0f30b1e1879cee6d65394d826bba21eca6c40b.zip |
Allos send items by mail.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/itemcontainer.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp index 6d2c72c5c..723f043d7 100644 --- a/src/gui/widgets/itemcontainer.cpp +++ b/src/gui/widgets/itemcontainer.cpp @@ -421,6 +421,11 @@ void ItemContainer::mousePressed(MouseEvent &event) case InventoryType::CART: src = DRAGDROP_SOURCE_CART; break; +#ifdef EATHENA_SUPPORT + case InventoryType::MAIL: + src = DRAGDROP_SOURCE_MAIL; + break; +#endif default: #ifdef EATHENA_SUPPORT case InventoryType::VENDING: @@ -520,6 +525,11 @@ void ItemContainer::mouseReleased(MouseEvent &event) case InventoryType::NPC: dst = DRAGDROP_SOURCE_NPC; break; +#ifdef EATHENA_SUPPORT + case InventoryType::MAIL: + dst = DRAGDROP_SOURCE_MAIL; + break; +#endif case InventoryType::CART: dst = DRAGDROP_SOURCE_CART; break; @@ -585,7 +595,8 @@ void ItemContainer::mouseReleased(MouseEvent &event) inventory = PlayerInfo::getInventory(); } else if (src == DRAGDROP_SOURCE_INVENTORY - && dst == DRAGDROP_SOURCE_NPC) + && (dst == DRAGDROP_SOURCE_NPC + || dst == DRAGDROP_SOURCE_MAIL)) { inventory = PlayerInfo::getInventory(); const Item *const item = inventory->getItem(dragDrop.getTag()); @@ -603,7 +614,7 @@ void ItemContainer::mouseReleased(MouseEvent &event) } return; } - else if (src == DRAGDROP_SOURCE_NPC) + else if (src == DRAGDROP_SOURCE_NPC || src == DRAGDROP_SOURCE_MAIL) { inventory = PlayerInfo::getInventory(); const Item *const item = inventory->getItem(dragDrop.getTag()); |