From 0dd8bc994b172f65d96e11e50e51643c24111907 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sat, 14 May 2005 15:22:32 +0000 Subject: Mainly separating core GUI classes from game interface. --- src/gui/inventory.h | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'src/gui/inventory.h') 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 -- cgit v1.2.3-70-g09d2