summaryrefslogtreecommitdiff
path: root/src/gui/windows/shopwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/shopwindow.h')
-rw-r--r--src/gui/windows/shopwindow.h10
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;