summaryrefslogtreecommitdiff
path: root/src/gui/widgets/shoplistbox.cpp
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.cpp
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.cpp')
-rw-r--r--src/gui/widgets/shoplistbox.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/widgets/shoplistbox.cpp b/src/gui/widgets/shoplistbox.cpp
index 5d083a30f..3ce06ba0d 100644
--- a/src/gui/widgets/shoplistbox.cpp
+++ b/src/gui/widgets/shoplistbox.cpp
@@ -46,12 +46,14 @@
const int ITEM_ICON_SIZE = 32;
ShopListBox::ShopListBox(const Widget2 *const widget,
- ListModel *const listModel) :
+ ListModel *const listModel,
+ const ShopListBoxTypeT type) :
ListBox(widget, listModel, "shoplistbox.xml"),
mPlayerMoney(0),
mShopItems(nullptr),
mBackgroundColor(getThemeColor(ThemeColorId::BACKGROUND)),
mWarningColor(getThemeColor(ThemeColorId::SHOP_WARNING)),
+ mType(type),
mPriceCheck(true),
mProtectItems(false)
{
@@ -62,12 +64,14 @@ ShopListBox::ShopListBox(const Widget2 *const widget,
ShopListBox::ShopListBox(const Widget2 *const widget,
ListModel *const listModel,
- ShopItems *const shopListModel) :
+ ShopItems *const shopListModel,
+ const ShopListBoxTypeT type) :
ListBox(widget, listModel, "shoplistbox.xml"),
mPlayerMoney(0),
mShopItems(shopListModel),
mBackgroundColor(getThemeColor(ThemeColorId::BACKGROUND)),
mWarningColor(getThemeColor(ThemeColorId::SHOP_WARNING)),
+ mType(type),
mPriceCheck(true),
mProtectItems(false)
{