diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-05-21 22:39:53 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-05-21 22:39:53 +0000 |
commit | e4e3f73db10d345453f2c6d06ae1dc499a4c7404 (patch) | |
tree | 7117443cf1267f9354206c21d70ac4ae0ddefcec /src/gui/inventory.h | |
parent | 241e2461446a830194f202b840abcd3598f804a5 (diff) | |
download | mana-client-e4e3f73db10d345453f2c6d06ae1dc499a4c7404.tar.gz mana-client-e4e3f73db10d345453f2c6d06ae1dc499a4c7404.tar.bz2 mana-client-e4e3f73db10d345453f2c6d06ae1dc499a4c7404.tar.xz mana-client-e4e3f73db10d345453f2c6d06ae1dc499a4c7404.zip |
Numerous things:
* Fixed two non-virtual destructor warnings showing up with GCC 4.
* Fixed OpenGL inventory text drawing that broke in last commit
* Removed glClear cause screen is redrawn completely anyway
* Fixed updating of buttons in inventory window
* Made items.xml be loaded through resource manager.
Diffstat (limited to 'src/gui/inventory.h')
-rw-r--r-- | src/gui/inventory.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/gui/inventory.h b/src/gui/inventory.h index 43a23ede..37edff7f 100644 --- a/src/gui/inventory.h +++ b/src/gui/inventory.h @@ -37,7 +37,8 @@ * * \ingroup Interface */ -class InventoryWindow : public Window, gcn::ActionListener { +class InventoryWindow : public Window, gcn::ActionListener +{ public: /** * Constructor. @@ -50,6 +51,11 @@ class InventoryWindow : public Window, gcn::ActionListener { ~InventoryWindow(); /** + * Logic (updates buttons) + */ + void logic(); + + /** * Add an item the inventory. */ int addItem(int index, int id, int quantity, bool equipment); @@ -58,14 +64,17 @@ class InventoryWindow : public Window, gcn::ActionListener { * Remove a item from the inventory. */ int removeItem(int id); - + + /** + * Equips an item. + */ void equipItem(int index); /** * Unequips an item. */ void unequipItem(int index); - + /** * Change quantity of an item. */ @@ -94,7 +103,7 @@ class InventoryWindow : public Window, gcn::ActionListener { int useItem(int index, int id); void updateWidgets(); /** Updates widgets size/position */ - void updateUseButton(); /** Updates use button to selected item */ + void updateButtons(); /** Updates button states */ gcn::Label *itemNameLabel; gcn::Label *itemDescriptionLabel; |