summaryrefslogtreecommitdiff
path: root/src/gui/inventory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/inventory.h')
-rw-r--r--src/gui/inventory.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/gui/inventory.h b/src/gui/inventory.h
index 257c64ea..177b5662 100644
--- a/src/gui/inventory.h
+++ b/src/gui/inventory.h
@@ -35,7 +35,7 @@
/**
* Inventory dialog.
*
- * \ingroup GUI
+ * \ingroup Interface
*/
class InventoryWindow : public Window, gcn::ActionListener {
public:
@@ -80,28 +80,29 @@ class InventoryWindow : public Window, gcn::ActionListener {
* Increase quantity of an item.
*/
int increaseQuantity(int index, int quantity);
-
+
/**
* Called when receiving actions from the widgets.
*/
void action(const std::string& eventId);
-
+
int dropItem(int index, int quantity);
void mouseClick(int x, int y, int button, int count);
- void mouseMotion(int mx, int my);
-
+ void mouseMotion(int mx, int my);
+
ItemContainer *items;
-
+
private:
gcn::Button *useButton, *dropButton;
- ScrollArea *invenScroll;
- int useItem(int index, int id);
- void updateWidgets();
+ ScrollArea *invenScroll;
- gcn::Label *itemNameLabel;
- gcn::Label *itemDescriptionLabel;
+ int useItem(int index, int id);
+ void updateWidgets(); /** Updates widgets size/position */
+ void updateUseButton(); /** Updates use button to selected item */
+ gcn::Label *itemNameLabel;
+ gcn::Label *itemDescriptionLabel;
};
#endif