diff options
author | Jan-Fabian Humann <malastare@gmx.net> | 2005-05-10 15:39:47 +0000 |
---|---|---|
committer | Jan-Fabian Humann <malastare@gmx.net> | 2005-05-10 15:39:47 +0000 |
commit | ffd021a447d27c5bb3f5eab224971815851e41b4 (patch) | |
tree | 6b8e1390ab44710e5eef651760a1dff74611afc2 /src/gui/trade.h | |
parent | cbf85500497bc22578d6cb09d8d8fca9470c2150 (diff) | |
download | mana-ffd021a447d27c5bb3f5eab224971815851e41b4.tar.gz mana-ffd021a447d27c5bb3f5eab224971815851e41b4.tar.bz2 mana-ffd021a447d27c5bb3f5eab224971815851e41b4.tar.xz mana-ffd021a447d27c5bb3f5eab224971815851e41b4.zip |
some trade gui changes
Diffstat (limited to 'src/gui/trade.h')
-rw-r--r-- | src/gui/trade.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/gui/trade.h b/src/gui/trade.h index a6c7c39a..47865d6c 100644 --- a/src/gui/trade.h +++ b/src/gui/trade.h @@ -57,50 +57,51 @@ class TradeWindow : public Window, gcn::ActionListener { /** * Add an item the trade window. */ - int addItem(int index, int id, bool own, int quantity, bool equipment); + void addItem(int index, int id, bool own, int quantity, bool equipment); /** * Remove a item from the trade window. */ - int removeItem(int id, bool own); + void removeItem(int id, bool own); /** * Reset both item containers */ - int reset(); + void reset(); /** * Change quantity of an item. */ - int changeQuantity(int index, bool own, int quantity); + void changeQuantity(int index, bool own, int quantity); /** * Increase quantity of an item. */ - int increaseQuantity(int index, bool own, int quantity); + void increaseQuantity(int index, bool own, int quantity); /** * Set trade Button disabled */ - int setTradeButton(bool enabled); + void setTradeButton(bool enabled); /** * Player received ok message from server */ - int receivedOk(bool own); + void receivedOk(bool own); /** * Called when receiving actions from the widgets. */ void action(const std::string& eventId); - ItemContainer *my_items; - ItemContainer *trade_items; + ItemContainer *myItems; + ItemContainer *partnerItems; private: - gcn::Label *nameLabel; + gcn::Label *itemNameLabel; + gcn::Label *itemDescriptionLabel; gcn::Button *addButton, *okButton, *cancelButton, *tradeButton; - ScrollArea *myScroll, *tradeScroll; + ScrollArea *myScroll, *partnerScroll; bool ok_other, ok_me; }; |