summaryrefslogtreecommitdiff
path: root/src/gui/inventory.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-14 15:22:32 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-14 15:22:32 +0000
commit0dd8bc994b172f65d96e11e50e51643c24111907 (patch)
tree0eb6f2d51842b9a448a5f684508cb43cb6a4849f /src/gui/inventory.h
parentf0af955173deacbb11c6eda1766498cd781aa2e5 (diff)
downloadmana-client-0dd8bc994b172f65d96e11e50e51643c24111907.tar.gz
mana-client-0dd8bc994b172f65d96e11e50e51643c24111907.tar.bz2
mana-client-0dd8bc994b172f65d96e11e50e51643c24111907.tar.xz
mana-client-0dd8bc994b172f65d96e11e50e51643c24111907.zip
Mainly separating core GUI classes from game interface.
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