summaryrefslogtreecommitdiff
path: root/src/gui/widgets/shoplistbox.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-15 19:37:39 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-15 19:37:39 +0300
commit413637151f0eb471ff6b28feddc028c374f96401 (patch)
tree82658c6d0e159bd34f23a8aaaa38ef11242346a4 /src/gui/widgets/shoplistbox.h
parentc08b18e37eee7edce70dcc1aaba2afd2b968d330 (diff)
downloadplus-413637151f0eb471ff6b28feddc028c374f96401.tar.gz
plus-413637151f0eb471ff6b28feddc028c374f96401.tar.bz2
plus-413637151f0eb471ff6b28feddc028c374f96401.tar.xz
plus-413637151f0eb471ff6b28feddc028c374f96401.zip
Add type into ShopListBox.
Diffstat (limited to 'src/gui/widgets/shoplistbox.h')
-rw-r--r--src/gui/widgets/shoplistbox.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/gui/widgets/shoplistbox.h b/src/gui/widgets/shoplistbox.h
index cc4504c82..471f6eadc 100644
--- a/src/gui/widgets/shoplistbox.h
+++ b/src/gui/widgets/shoplistbox.h
@@ -25,6 +25,8 @@
#include "gui/widgets/listbox.h"
+#include "enums/gui/shoplistboxtype.h"
+
class ShopItems;
/**
@@ -41,14 +43,16 @@ class ShopListBox final : public ListBox
* Constructor.
*/
ShopListBox(const Widget2 *const widget,
- ListModel *const listModel);
+ ListModel *const listModel,
+ const ShopListBoxTypeT type);
/**
* Constructor with shopitems
*/
ShopListBox(const Widget2 *const widget,
ListModel *const listModel,
- ShopItems *const shopListModel);
+ ShopItems *const shopListModel,
+ const ShopListBoxTypeT type);
A_DELETE_COPY(ShopListBox)
@@ -84,6 +88,12 @@ class ShopListBox final : public ListBox
void setProtectItems(bool p)
{ mProtectItems = p; }
+ void setType(const ShopListBoxTypeT type)
+ { mType = type; }
+
+ ShopListBoxType getType() const
+ { return mType; }
+
private:
int mPlayerMoney;
@@ -95,6 +105,7 @@ class ShopListBox final : public ListBox
Color mBackgroundColor;
Color mWarningColor;
+ ShopListBoxTypeT mType;
bool mPriceCheck;
bool mProtectItems;