summaryrefslogtreecommitdiff
path: root/src/gui/trade.h
diff options
context:
space:
mode:
authorJan-Fabian Humann <malastare@gmx.net>2005-05-22 02:06:58 +0000
committerJan-Fabian Humann <malastare@gmx.net>2005-05-22 02:06:58 +0000
commitfc6207f21a7beaeef968e032917181809f822a67 (patch)
tree8e392e7965855663513430299c8f486f4167528b /src/gui/trade.h
parenta64c5b01e683e76def759e6e871ceee330c9ae09 (diff)
downloadmana-client-fc6207f21a7beaeef968e032917181809f822a67.tar.gz
mana-client-fc6207f21a7beaeef968e032917181809f822a67.tar.bz2
mana-client-fc6207f21a7beaeef968e032917181809f822a67.tar.xz
mana-client-fc6207f21a7beaeef968e032917181809f822a67.zip
another trade update: trading money is possible now, left box is for money you send, the right label shows the money you receive. Due to stupid RO protocol money value will only be submitted when you press Ok.
Diffstat (limited to 'src/gui/trade.h')
-rw-r--r--src/gui/trade.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/trade.h b/src/gui/trade.h
index 90c688c3..5d82f875 100644
--- a/src/gui/trade.h
+++ b/src/gui/trade.h
@@ -51,7 +51,12 @@ class TradeWindow : public Window, gcn::ActionListener
~TradeWindow();
/**
- * Add an item the trade window.
+ * Add money to the trade window.
+ */
+ void addMoney(int quantity);
+
+ /**
+ * Add an item to the trade window.
*/
void addItem(int index, int id, bool own, int quantity, bool equipment);
@@ -106,8 +111,10 @@ class TradeWindow : public Window, gcn::ActionListener
private:
gcn::Label *itemNameLabel;
gcn::Label *itemDescriptionLabel;
+ gcn::Label *moneyLabel;
gcn::Button *addButton, *okButton, *cancelButton, *tradeButton;
ScrollArea *myScroll, *partnerScroll;
+ gcn::TextField *moneyField;
bool ok_other, ok_me;
};