summaryrefslogtreecommitdiff
path: root/src/gui/minimap.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-06 19:54:39 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-06 19:54:39 +0300
commit64f4e1132355eaac4f5594bee516b56adb2ad083 (patch)
tree33d883af8b6d1e513b4982ebf8fdf84bc408082f /src/gui/minimap.h
parentb18993f6b577429103497f4a50c3f2035a424820 (diff)
downloadplus-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.h4
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;