summaryrefslogtreecommitdiff
path: root/src/gui/inventory.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-08 01:33:53 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-08 01:33:53 +0000
commitee416a5f3de03a689247a290077e7fdf451e1a23 (patch)
treef456df99f954919ac7a425606df51f010aa4ef2d /src/gui/inventory.h
parent4070dda1560bc729c3e272f0a5c03d77391e2661 (diff)
downloadmana-ee416a5f3de03a689247a290077e7fdf451e1a23.tar.gz
mana-ee416a5f3de03a689247a290077e7fdf451e1a23.tar.bz2
mana-ee416a5f3de03a689247a290077e7fdf451e1a23.tar.xz
mana-ee416a5f3de03a689247a290077e7fdf451e1a23.zip
Well improved window container and window widgets a bit, and made a start
on support for modal dialogs. Still some issues to work out. Tell me if you experience something unsettling.
Diffstat (limited to 'src/gui/inventory.h')
-rw-r--r--src/gui/inventory.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/gui/inventory.h b/src/gui/inventory.h
index 21ffe6bc..87a99b07 100644
--- a/src/gui/inventory.h
+++ b/src/gui/inventory.h
@@ -40,12 +40,11 @@
#define INVENTORY_SIZE 100
struct ITEM_HOLDER { // the holder of a item
- int id; // the id of the item
- int quantity; // number of items
- //int index; // item position
+ int id; // the id of the item
+ int quantity; // number of items
+ //int index; // item position
};
-
/**
* Inventory dialog.
*
@@ -53,7 +52,14 @@ struct ITEM_HOLDER { // the holder of a item
*/
class InventoryWindow : public Window {
public:
- InventoryWindow(gcn::Container *parent);
+ /**
+ * Constructor.
+ */
+ InventoryWindow();
+
+ /**
+ * Destructor.
+ */
~InventoryWindow();
/**
@@ -77,7 +83,7 @@ class InventoryWindow : public Window {
int changeQuantity(int index, int quantity);
/**
- * Increase quantity of an item
+ * Increase quantity of an item.
*/
int increaseQuantity(int index, int quantity);