summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-08-14 12:48:59 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-08-14 12:48:59 +0000
commit1a68e441ec6d7d529b5c64bfafac56ae45d3f2fb (patch)
tree4289eb20d77c7975fef9f64898b8cdd4d3318193 /src/gui
parentf048a4dd4add4a710bb15f77eaedad93f625b0c4 (diff)
downloadmana-1a68e441ec6d7d529b5c64bfafac56ae45d3f2fb.tar.gz
mana-1a68e441ec6d7d529b5c64bfafac56ae45d3f2fb.tar.bz2
mana-1a68e441ec6d7d529b5c64bfafac56ae45d3f2fb.tar.xz
mana-1a68e441ec6d7d529b5c64bfafac56ae45d3f2fb.zip
Removed obsolete code. Added support for money received while trading.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/trade.cpp2
-rw-r--r--src/gui/trade.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/trade.cpp b/src/gui/trade.cpp
index 78204120..cf3ad1a5 100644
--- a/src/gui/trade.cpp
+++ b/src/gui/trade.cpp
@@ -131,7 +131,7 @@ TradeWindow::~TradeWindow()
{
}
-void TradeWindow::addMoney(int amount)
+void TradeWindow::setMoney(int amount)
{
mMoneyLabel->setCaption("You get: " + toString(amount) + "z");
mMoneyLabel->adjustSize();
diff --git a/src/gui/trade.h b/src/gui/trade.h
index bffda13f..478d2876 100644
--- a/src/gui/trade.h
+++ b/src/gui/trade.h
@@ -18,7 +18,7 @@
* along with The Mana World; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * $Id $
+ * $Id$
*/
#ifndef _TMW_TRADE_H
@@ -57,9 +57,9 @@ class TradeWindow : public Window, gcn::ActionListener, SelectionListener
~TradeWindow();
/**
- * Add money to the trade window.
+ * Displays expected money in the trade window.
*/
- void addMoney(int quantity);
+ void setMoney(int quantity);
/**
* Add an item to the trade window.