summaryrefslogtreecommitdiff
path: root/src/gui/minimap.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-19 03:02:05 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-19 03:08:53 +0300
commitde33cd794955254a166d932e91de0b72d9dc20fd (patch)
tree3d85c63202e148e4e4dbde2fe412d49f740758b9 /src/gui/minimap.h
parent9847915fafee7fc3872aafb4395543b12174a1ae (diff)
downloadplus-de33cd794955254a166d932e91de0b72d9dc20fd.tar.gz
plus-de33cd794955254a166d932e91de0b72d9dc20fd.tar.bz2
plus-de33cd794955254a166d932e91de0b72d9dc20fd.tar.xz
plus-de33cd794955254a166d932e91de0b72d9dc20fd.zip
Dont resize minimap window if map name very big.
Also show map name in minimap tooltip.
Diffstat (limited to 'src/gui/minimap.h')
-rw-r--r--src/gui/minimap.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/minimap.h b/src/gui/minimap.h
index 7a6f865f8..ee5a63f6a 100644
--- a/src/gui/minimap.h
+++ b/src/gui/minimap.h
@@ -27,6 +27,7 @@
class Image;
class Map;
+class TextPopup;
/**
* Minimap window. Shows a minimap image and the name of the current map.
@@ -58,8 +59,12 @@ class Minimap : public Window
*/
void draw(gcn::Graphics *graphics);
+ void mouseMoved(gcn::MouseEvent &event);
+
void mouseReleased(gcn::MouseEvent &event);
+ void mouseExited(gcn::MouseEvent &event);
+
void screenToMap(int &x, int &y);
private:
@@ -70,6 +75,7 @@ class Minimap : public Window
bool mCustomMapImage;
int mMapOriginX;
int mMapOriginY;
+ TextPopup *mTextPopup;
};
extern Minimap *minimap;