summaryrefslogtreecommitdiff
path: root/src/gui/widgets/shoplistbox.h
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2010-08-19 16:22:40 +0200
committerJared Adams <jaxad0127@gmail.com>2010-08-19 08:48:34 -0600
commitdb0f5e2a332f82c006729146727d37315de7dfda (patch)
tree0a65d27cd49540e380112be0e348f322adc5925b /src/gui/widgets/shoplistbox.h
parentaf7bbb7b4404439580666b31388dd8dbef481011 (diff)
downloadMana-db0f5e2a332f82c006729146727d37315de7dfda.tar.gz
Mana-db0f5e2a332f82c006729146727d37315de7dfda.tar.bz2
Mana-db0f5e2a332f82c006729146727d37315de7dfda.tar.xz
Mana-db0f5e2a332f82c006729146727d37315de7dfda.zip
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 <jaxad0127@gmail.com>
Diffstat (limited to 'src/gui/widgets/shoplistbox.h')
-rw-r--r--src/gui/widgets/shoplistbox.h13
1 files changed, 13 insertions, 0 deletions
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
@@ -48,6 +48,11 @@ class ShopListBox : public ListBox
ShopListBox(gcn::ListModel *listModel, ShopItems *shopListModel);
/**
+ * Deconstructor
+ */
+ ~ShopListBox();
+
+ /**
* Draws the list box.
*/
void draw(gcn::Graphics *graphics);
@@ -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;