From 8b88dffb8222bb4c59d09e11c00b1046f93d51fe Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Tue, 20 Jan 2009 22:47:48 -0700 Subject: Reflowed inventory window to use layout code, as well as fixed the npc list dialog to be more consistant with other windows. Also revised the skill window to default to being only as big as the number of skills listed. Signed-off-by: Ira Rice --- src/gui/inventorywindow.h | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'src/gui/inventorywindow.h') diff --git a/src/gui/inventorywindow.h b/src/gui/inventorywindow.h index 922dd28f..166bf1c4 100644 --- a/src/gui/inventorywindow.h +++ b/src/gui/inventorywindow.h @@ -62,23 +62,8 @@ class InventoryWindow : public Window, gcn::ActionListener, */ Item* getSelectedItem() const; - /** - * Updates labels to currently selected item. - */ - void valueChanged(const gcn::SelectionEvent &event); - void mouseClicked(gcn::MouseEvent &event); - /** - * Updates window drawing. - */ - void draw(); - - /** - * Called whenever the widget changes size. - */ - void widgetResized(const gcn::Event &event); - private: void updateButtons(); /**< Updates button states. */ @@ -89,7 +74,7 @@ class InventoryWindow : public Window, gcn::ActionListener, std::string mMaxWeight; gcn::Button *mUseButton, *mDropButton; gcn::ScrollArea *mInvenScroll; - TextBox *mWeightLabel; + gcn::Label *mWeightLabel; bool mItemDesc; }; -- cgit v1.2.3-60-g2f50