diff options
author | Jan-Fabian Humann <malastare@gmx.net> | 2005-03-05 20:43:41 +0000 |
---|---|---|
committer | Jan-Fabian Humann <malastare@gmx.net> | 2005-03-05 20:43:41 +0000 |
commit | c545fc021ccdaa6a253eafd649b5aebdef677047 (patch) | |
tree | 5fc4eee703aaac9decb183adec130c3cd278ce47 /src/gui/inventory.cpp | |
parent | 1b637982b44635d6326dc8fd3b62d0d0aa731320 (diff) | |
download | mana-client-c545fc021ccdaa6a253eafd649b5aebdef677047.tar.gz mana-client-c545fc021ccdaa6a253eafd649b5aebdef677047.tar.bz2 mana-client-c545fc021ccdaa6a253eafd649b5aebdef677047.tar.xz mana-client-c545fc021ccdaa6a253eafd649b5aebdef677047.zip |
Now you can decide how many items to drop
Diffstat (limited to 'src/gui/inventory.cpp')
-rw-r--r-- | src/gui/inventory.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/inventory.cpp b/src/gui/inventory.cpp index 4681d047..4fc1bd1d 100644 --- a/src/gui/inventory.cpp +++ b/src/gui/inventory.cpp @@ -27,6 +27,7 @@ #include "../resources/image.h" #include "button.h" #include "../being.h" +#include "../engine.h" #include <sstream> InventoryWindow::InventoryWindow(): @@ -140,8 +141,8 @@ void InventoryWindow::action(const std::string &eventId) } } else if (eventId == "drop") { - dropItem(items->getIndex(), items->getQuantity()); - // TODO: now drop all the items, you should choose quantity instead + itemAmountWindow->resetAmount(); + itemAmountWindow->setVisible(true); } } } |