diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-05-19 11:43:41 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-05-19 11:43:41 +0000 |
commit | d42e9ea834a07c6f60dd5248db6520d1ff423ac4 (patch) | |
tree | 7de19d851aecae83bc8467d70c9a718ebff98205 /src/gui/trade.h | |
parent | 32ca8ca9551070ba1086cd5b6c973620052061ed (diff) | |
download | mana-client-d42e9ea834a07c6f60dd5248db6520d1ff423ac4.tar.gz mana-client-d42e9ea834a07c6f60dd5248db6520d1ff423ac4.tar.bz2 mana-client-d42e9ea834a07c6f60dd5248db6520d1ff423ac4.tar.xz mana-client-d42e9ea834a07c6f60dd5248db6520d1ff423ac4.zip |
Made item amount window a modal dialog and removed support for old map format.
Diffstat (limited to 'src/gui/trade.h')
-rw-r--r-- | src/gui/trade.h | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/src/gui/trade.h b/src/gui/trade.h index 09e56d06..90c688c3 100644 --- a/src/gui/trade.h +++ b/src/gui/trade.h @@ -22,7 +22,7 @@ */ #ifndef _TMW_TRADE_H -#define _TMW_TRADE_H +#define _TMW_TRADE_H #include "../log.h" #include "../net/network.h" @@ -37,7 +37,8 @@ * * \ingroup Interface */ -class TradeWindow : public Window, gcn::ActionListener { +class TradeWindow : public Window, gcn::ActionListener +{ public: /** * Constructor. @@ -50,11 +51,6 @@ class TradeWindow : public Window, gcn::ActionListener { ~TradeWindow(); /** - * Draws the trade window. - */ - void draw(gcn::Graphics *graphics); - - /** * Add an item the trade window. */ void addItem(int index, int id, bool own, int quantity, bool equipment); @@ -78,35 +74,35 @@ class TradeWindow : public Window, gcn::ActionListener { * Increase quantity of an item. */ void increaseQuantity(int index, bool own, int quantity); - + /** * Set trade Button disabled */ void setTradeButton(bool enabled); - + /** * Player received ok message from server */ void receivedOk(bool own); - + /** * Send trade packet. */ void TradeWindow::tradeItem(int index, int quantity); - + /** * Called on mouse click. */ void mouseClick(int x, int y, int button, int count); - + /** * Called when receiving actions from the widgets. */ void action(const std::string& eventId); - + ItemContainer *myItems; ItemContainer *partnerItems; - + private: gcn::Label *itemNameLabel; gcn::Label *itemDescriptionLabel; |