From 1ad3e55c431b61e6fe6638ee0afc5e8f4c14496c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 25 Aug 2016 02:55:51 +0300 Subject: Allow buy more than one item at vending shop at once. --- src/gui/windows/buydialog.h | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'src/gui/windows/buydialog.h') diff --git a/src/gui/windows/buydialog.h b/src/gui/windows/buydialog.h index 24e616152..fd346f53a 100644 --- a/src/gui/windows/buydialog.h +++ b/src/gui/windows/buydialog.h @@ -33,6 +33,7 @@ #include "listeners/actionlistener.h" #include "listeners/selectionlistener.h" +class Being; class Button; class DropDown; class ShopItem; @@ -76,6 +77,13 @@ class BuyDialog final : public Window, */ explicit BuyDialog(std::string nick); + /** + * Constructor. + * + * @see Window::Window + */ + explicit BuyDialog(const Being *const being); + A_DELETE_COPY(BuyDialog) /** @@ -85,10 +93,11 @@ class BuyDialog final : public Window, enum { - Nick = -1, - Items = -2, - Market = -3, - Cash = -4 + Nick = -1, + Items = -2, + Market = -3, + Cash = -4, + Vending = -5 }; void init(); -- cgit v1.2.3-60-g2f50