From 9e70df3a6ac53f9900f7e4cbf6dbe40e53e0ddc1 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Sun, 5 Nov 2006 01:47:44 +0000 Subject: Added item's pictures in sell dialogs, and precisions about the total money in it. --- src/gui/sell.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/gui/sell.h') diff --git a/src/gui/sell.h b/src/gui/sell.h index 12000bc3..f27a9751 100644 --- a/src/gui/sell.h +++ b/src/gui/sell.h @@ -34,7 +34,7 @@ class Item; class Network; class ShopItems; -class ListBox; +class ShopListBox; /** * The sell dialog. @@ -78,12 +78,17 @@ class SellDialog : public Window, gcn::ActionListener, SelectionListener */ void selectionChanged(const SelectionEvent &event); + /** + * Gives Player's Money amount + */ + void setMoney(int amount); + private: Network *mNetwork; gcn::Button *mSellButton; gcn::Button *mIncreaseButton; gcn::Button *mDecreaseButton; - ListBox *mItemList; + ShopListBox *mShopItemList; gcn::Label *mMoneyLabel; gcn::Label *mItemDescLabel; gcn::Label *mItemEffectLabel; @@ -91,6 +96,7 @@ class SellDialog : public Window, gcn::ActionListener, SelectionListener gcn::Slider *mSlider; ShopItems *mShopItems; + int mPlayerMoney; int mMaxItems; int mAmountItems; -- cgit v1.2.3-70-g09d2