From 602fd127d09c995bc5470218c862b2cebfc558d5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 3 May 2015 20:09:53 +0300 Subject: Add filter into buy dialogs. --- src/shopitem.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/shopitem.h') diff --git a/src/shopitem.h b/src/shopitem.h index 9b85c8781..68bdc51b5 100644 --- a/src/shopitem.h +++ b/src/shopitem.h @@ -137,6 +137,12 @@ class ShopItem final : public Item const std::string &getDisplayName() const A_WARN_UNUSED { return mDisplayName; } + void setVisible(const bool b) + { mVisible = b; } + + bool isVisible() const + { return mVisible; } + protected: void updateDisplayName(const int quantity); @@ -153,6 +159,7 @@ class ShopItem final : public Item std::stack mDuplicates; /** <-- Stores duplicates */ int mPrice; bool mShowQuantity; + bool mVisible; }; #endif // SHOPITEM_H -- cgit v1.2.3-60-g2f50