summaryrefslogtreecommitdiff
path: root/src/gui/item_amount.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/item_amount.h')
-rw-r--r--src/gui/item_amount.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/item_amount.h b/src/gui/item_amount.h
index c3a06ef1..e0faf5de 100644
--- a/src/gui/item_amount.h
+++ b/src/gui/item_amount.h
@@ -28,6 +28,9 @@
#include <string>
#include <sstream>
+#define AMOUNT_TRADE_ADD 1
+#define AMOUNT_ITEM_DROP 2
+
class ItemAmountWindow : public Window, public gcn::ActionListener {
public:
/**
@@ -46,13 +49,18 @@ class ItemAmountWindow : public Window, public gcn::ActionListener {
void action(const std::string& eventId);
/**
+ * Has to be called before setVisible(true).
+ */
+ void ItemAmountWindow::setUsage(int usage);
+
+ /**
* Sets default amount value.
*/
void resetAmount();
private:
/**
- * Amount of items to be dropped
+ * Amount of items to be dropped.
*/
int amount;