summaryrefslogtreecommitdiff
path: root/src/gui/minimap.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-01-27 12:40:28 +0300
committerAndrei Karas <akaras@inbox.ru>2013-01-27 12:42:03 +0300
commite0415e24477d07ecd90ec17667fba127deed91bd (patch)
treecac49e2bcd444d0a9d534c67d38e51a34588027a /src/gui/minimap.h
parent6a9729dea9113d85b7c8224ff0aa56495c80ef73 (diff)
downloadmv-e0415e24477d07ecd90ec17667fba127deed91bd.tar.gz
mv-e0415e24477d07ecd90ec17667fba127deed91bd.tar.bz2
mv-e0415e24477d07ecd90ec17667fba127deed91bd.tar.xz
mv-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.h5
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;