diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-27 23:47:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-27 23:47:03 +0300 |
commit | 0ad49798faae14641827ab7a1e57358cdf99a9cc (patch) | |
tree | 1d9f9335f1a59ea2c2d2078842a0c6f08c59c68e /src/gui/widgets/shoplistbox.h | |
parent | e899683d3e45ff8ab8d5d717adf3a217810a5c40 (diff) | |
download | plus-0ad49798faae14641827ab7a1e57358cdf99a9cc.tar.gz plus-0ad49798faae14641827ab7a1e57358cdf99a9cc.tar.bz2 plus-0ad49798faae14641827ab7a1e57358cdf99a9cc.tar.xz plus-0ad49798faae14641827ab7a1e57358cdf99a9cc.zip |
allow buy protected items.
Diffstat (limited to 'src/gui/widgets/shoplistbox.h')
-rw-r--r-- | src/gui/widgets/shoplistbox.h | 8 |
1 files changed, 6 insertions, 2 deletions
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; }; |