From 0ad49798faae14641827ab7a1e57358cdf99a9cc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 27 Jul 2013 23:47:03 +0300 Subject: allow buy protected items. --- src/gui/widgets/shoplistbox.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/shoplistbox.h') diff --git a/src/gui/widgets/shoplistbox.h b/src/gui/widgets/shoplistbox.h index 3f2cc6a27..8c0b6de45 100644 --- a/src/gui/widgets/shoplistbox.h +++ b/src/gui/widgets/shoplistbox.h @@ -84,6 +84,9 @@ class ShopListBox final : public ListBox void mouseExited(gcn::MouseEvent& mouseEvent) override; + void setProtectItems(bool p) + { mProtectItems = p; } + private: int mPlayerMoney; @@ -97,12 +100,13 @@ class ShopListBox final : public ListBox unsigned int mRowHeight; /**< Row Height */ - bool mPriceCheck; - gcn::Color mHighlightColor; gcn::Color mBackgroundColor; gcn::Color mWarningColor; + bool mPriceCheck; + bool mProtectItems; + static float mAlpha; }; -- cgit v1.2.3-60-g2f50