diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-24 21:40:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-24 21:40:25 +0300 |
commit | 750fb61bd3cda4ffe775ab5e45ff6ff2ed5cb4ba (patch) | |
tree | df83b2c115f3d6d472a8d1ab9a43b1b73d714d13 /src/gui/windows/itemamountwindow.cpp | |
parent | 5deadbb0d4a7c770667b8c06f72902a9aa6db6b7 (diff) | |
download | plus-750fb61bd3cda4ffe775ab5e45ff6ff2ed5cb4ba.tar.gz plus-750fb61bd3cda4ffe775ab5e45ff6ff2ed5cb4ba.tar.bz2 plus-750fb61bd3cda4ffe775ab5e45ff6ff2ed5cb4ba.tar.xz plus-750fb61bd3cda4ffe775ab5e45ff6ff2ed5cb4ba.zip |
allow store and retreive buttons work with cart.
Diffstat (limited to 'src/gui/windows/itemamountwindow.cpp')
-rw-r--r-- | src/gui/windows/itemamountwindow.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gui/windows/itemamountwindow.cpp b/src/gui/windows/itemamountwindow.cpp index 19d18eef8..5b714774c 100644 --- a/src/gui/windows/itemamountwindow.cpp +++ b/src/gui/windows/itemamountwindow.cpp @@ -72,10 +72,18 @@ void ItemAmountWindow::finish(const Item *const item, inventoryHandler->moveItem2(InventoryType::INVENTORY, item->getInvIndex(), amount, InventoryType::STORAGE); break; + case CartAdd: + inventoryHandler->moveItem2(InventoryType::INVENTORY, + item->getInvIndex(), amount, InventoryType::CART); + break; case StoreRemove: inventoryHandler->moveItem2(InventoryType::STORAGE, item->getInvIndex(), amount, InventoryType::INVENTORY); break; + case CartRemove: + inventoryHandler->moveItem2(InventoryType::CART, + item->getInvIndex(), amount, InventoryType::INVENTORY); + break; case ShopBuyAdd: if (shopWindow) shopWindow->addBuyItem(item, amount, price); @@ -225,10 +233,18 @@ ItemAmountWindow::ItemAmountWindow(const Usage usage, Window *const parent, // TRANSLATORS: amount window message setCaption(_("Select amount of items to store.")); break; + case CartAdd: + // TRANSLATORS: amount window message + setCaption(_("Select amount of items to store to cart.")); + break; case StoreRemove: // TRANSLATORS: amount window message setCaption(_("Select amount of items to retrieve.")); break; + case CartRemove: + // TRANSLATORS: amount window message + setCaption(_("Select amount of items to retrieve from cart.")); + break; case ItemSplit: // TRANSLATORS: amount window message setCaption(_("Select amount of items to split.")); |