diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-28 21:27:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-02 00:13:44 +0300 |
commit | b6a0e05498b2b1a64d9b407fb2416dbaa0faf407 (patch) | |
tree | 7a1023dabcdf250e0983edff3ab1a2a14226f300 /src/gui/windows/shopwindow.h | |
parent | 6930045257ca767dbfc095f95a440028d5b2213e (diff) | |
download | manaverse-b6a0e05498b2b1a64d9b407fb2416dbaa0faf407.tar.gz manaverse-b6a0e05498b2b1a64d9b407fb2416dbaa0faf407.tar.bz2 manaverse-b6a0e05498b2b1a64d9b407fb2416dbaa0faf407.tar.xz manaverse-b6a0e05498b2b1a64d9b407fb2416dbaa0faf407.zip |
eathena: add support for creating vending shop.
Diffstat (limited to 'src/gui/windows/shopwindow.h')
-rw-r--r-- | src/gui/windows/shopwindow.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/windows/shopwindow.h b/src/gui/windows/shopwindow.h index a3409bbe7..06f0a997d 100644 --- a/src/gui/windows/shopwindow.h +++ b/src/gui/windows/shopwindow.h @@ -27,6 +27,7 @@ #include "listeners/actionlistener.h" #include "listeners/selectionlistener.h" +#include "listeners/vendingslotslistener.h" class Button; class CheckBox; @@ -44,7 +45,8 @@ class TabStrip; */ class ShopWindow final : public Window, public ActionListener, - public SelectionListener + public SelectionListener, + public VendingSlotsListener { public: enum ShopMode @@ -137,6 +139,8 @@ class ShopWindow final : public Window, bool isShopEmpty() const A_WARN_UNUSED; + void vendingSlotsChanged(const int slots) override final; + private: void startTrade(); @@ -158,6 +162,7 @@ class ShopWindow final : public Window, Button *mAddButton; Button *mDeleteButton; Button *mAnnounceButton; + Button *mPublishButton; CheckBox *mAnnounceLinks; TabStrip *mTabs; std::string mAcceptPlayer; @@ -168,8 +173,9 @@ class ShopWindow final : public Window, int mLastRequestTimeItem; int mRandCounter; int mTradeMoney; - int mAnnounceCounter[2]; + int mSellShopSize; bool isBuySelected; + bool mHaveVending; }; extern ShopWindow *shopWindow; |