diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-01-27 12:40:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-01-27 12:42:03 +0300 |
commit | e0415e24477d07ecd90ec17667fba127deed91bd (patch) | |
tree | cac49e2bcd444d0a9d534c67d38e51a34588027a /src/gui/minimap.h | |
parent | 6a9729dea9113d85b7c8224ff0aa56495c80ef73 (diff) | |
download | manaplus-e0415e24477d07ecd90ec17667fba127deed91bd.tar.gz manaplus-e0415e24477d07ecd90ec17667fba127deed91bd.tar.bz2 manaplus-e0415e24477d07ecd90ec17667fba127deed91bd.tar.xz manaplus-e0415e24477d07ecd90ec17667fba127deed91bd.zip |
Add option to autoresize minimaps.
New option: misc \ maps \ resize minimaps.
Diffstat (limited to 'src/gui/minimap.h')
-rw-r--r-- | src/gui/minimap.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/minimap.h b/src/gui/minimap.h index 2fe1458ab..6efe8a786 100644 --- a/src/gui/minimap.h +++ b/src/gui/minimap.h @@ -38,7 +38,7 @@ class TextPopup; * * \ingroup Interface */ -class Minimap final : public Window +class Minimap final : public Window, public ConfigListener { public: Minimap(); @@ -70,6 +70,8 @@ class Minimap final : public Window void screenToMap(int &x, int &y); + void optionChanged(const std::string &name); + private: Image *mMapImage; float mWidthProportion; @@ -79,6 +81,7 @@ class Minimap final : public Window int mMapOriginX; int mMapOriginY; TextPopup *mTextPopup; + bool mAutoResize; }; extern Minimap *minimap; |