From db0f5e2a332f82c006729146727d37315de7dfda Mon Sep 17 00:00:00 2001 From: Stefan Dombrowski Date: Thu, 19 Aug 2010 16:22:40 +0200 Subject: Fixing some bugs in NPC-shop gui * Price and total money is now shown from the beginning in sell dialog. * Item popup is set invisible when mouse has moved away from items. * Item popup gets deleted when shop closes. Signed-off-by: Jared Adams --- src/gui/widgets/shoplistbox.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/gui/widgets/shoplistbox.h') diff --git a/src/gui/widgets/shoplistbox.h b/src/gui/widgets/shoplistbox.h index 062ad93a..9232a5a4 100644 --- a/src/gui/widgets/shoplistbox.h +++ b/src/gui/widgets/shoplistbox.h @@ -47,6 +47,11 @@ class ShopListBox : public ListBox */ ShopListBox(gcn::ListModel *listModel, ShopItems *shopListModel); + /** + * Deconstructor + */ + ~ShopListBox(); + /** * Draws the list box. */ @@ -73,8 +78,16 @@ class ShopListBox : public ListBox */ void setPriceCheck(bool check); + /** + ** Show ItemTooltip + */ void mouseMoved(gcn::MouseEvent &event); + /** + ** Hide ItemTooltip + */ + void mouseExited(gcn::MouseEvent &event); + private: int mPlayerMoney; -- cgit v1.2.3-60-g2f50