diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-09-06 19:54:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-09-06 19:54:39 +0300 |
commit | 64f4e1132355eaac4f5594bee516b56adb2ad083 (patch) | |
tree | 33d883af8b6d1e513b4982ebf8fdf84bc408082f /src/gui/minimap.h | |
parent | b18993f6b577429103497f4a50c3f2035a424820 (diff) | |
download | plus-64f4e1132355eaac4f5594bee516b56adb2ad083.tar.gz plus-64f4e1132355eaac4f5594bee516b56adb2ad083.tar.bz2 plus-64f4e1132355eaac4f5594bee516b56adb2ad083.tar.xz plus-64f4e1132355eaac4f5594bee516b56adb2ad083.zip |
Add ability to move by clicking on minimap.
Diffstat (limited to 'src/gui/minimap.h')
-rw-r--r-- | src/gui/minimap.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/minimap.h b/src/gui/minimap.h index 33e0f14ee..86996f51c 100644 --- a/src/gui/minimap.h +++ b/src/gui/minimap.h @@ -58,12 +58,16 @@ class Minimap : public Window */ void draw(gcn::Graphics *graphics); + void mouseReleased(gcn::MouseEvent &event); + private: Image *mMapImage; float mWidthProportion; float mHeightProportion; static bool mShow; bool mCustomMapImage; + int mMapOriginX; + int mMapOriginY; }; extern Minimap *minimap; |