summaryrefslogtreecommitdiff
path: root/src/gui/windows/buydialog.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-01 00:43:24 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-01 00:45:05 +0300
commit2c273a20b2cd3e1628840f2d87df16f0cce9ad33 (patch)
tree853d172e0fd05117d84eda712912ba2843bb87e2 /src/gui/windows/buydialog.h
parent35481061f62111f916a39ce3cac6a314579418f9 (diff)
downloadmv-2c273a20b2cd3e1628840f2d87df16f0cce9ad33.tar.gz
mv-2c273a20b2cd3e1628840f2d87df16f0cce9ad33.tar.bz2
mv-2c273a20b2cd3e1628840f2d87df16f0cce9ad33.tar.xz
mv-2c273a20b2cd3e1628840f2d87df16f0cce9ad33.zip
Set currency to buy dialog based on selected npc type id.
For now this type never set.
Diffstat (limited to 'src/gui/windows/buydialog.h')
-rw-r--r--src/gui/windows/buydialog.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/windows/buydialog.h b/src/gui/windows/buydialog.h
index 4fdd4f210..7914c0ef3 100644
--- a/src/gui/windows/buydialog.h
+++ b/src/gui/windows/buydialog.h
@@ -68,7 +68,8 @@ class BuyDialog final : public Window,
*
* @see Window::Window
*/
- explicit BuyDialog(const BeingId npcId);
+ BuyDialog(const BeingId npcId,
+ const std::string &currency);
#ifdef TMWA_SUPPORT
/**
@@ -76,7 +77,8 @@ class BuyDialog final : public Window,
*
* @see Window::Window
*/
- explicit BuyDialog(std::string nick);
+ BuyDialog(const std::string &nick,
+ const std::string &currency);
#endif // TMWA_SUPPORT
/**
@@ -84,7 +86,8 @@ class BuyDialog final : public Window,
*
* @see Window::Window
*/
- explicit BuyDialog(const Being *const being);
+ BuyDialog(const Being *const being,
+ const std::string &currency);
A_DELETE_COPY(BuyDialog)
@@ -193,6 +196,7 @@ class BuyDialog final : public Window,
Label *mFilterLabel;
std::string mNick;
+ std::string mCurrency;
BeingId mNpcId;
int mMoney;
int mAmountItems;