summaryrefslogtreecommitdiff
path: root/src/gui/sell.h
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2006-11-05 01:47:44 +0000
committerYohann Ferreira <bertram@cegetel.net>2006-11-05 01:47:44 +0000
commit9e70df3a6ac53f9900f7e4cbf6dbe40e53e0ddc1 (patch)
treeba0bf36049b125030e0bb2e26e7f755fe8f98723 /src/gui/sell.h
parent6a1702f014db23b5330e9b93e773b652d03c2ed1 (diff)
downloadmana-9e70df3a6ac53f9900f7e4cbf6dbe40e53e0ddc1.tar.gz
mana-9e70df3a6ac53f9900f7e4cbf6dbe40e53e0ddc1.tar.bz2
mana-9e70df3a6ac53f9900f7e4cbf6dbe40e53e0ddc1.tar.xz
mana-9e70df3a6ac53f9900f7e4cbf6dbe40e53e0ddc1.zip
Added item's pictures in sell dialogs, and precisions about the total money in it.
Diffstat (limited to 'src/gui/sell.h')
-rw-r--r--src/gui/sell.h10
1 files changed, 8 insertions, 2 deletions
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;