From 8003fcc9f42a42170a16bdf976bb73fdf34a761e Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Mon, 13 Oct 2008 17:34:42 +0000 Subject: Changed minimap code so that it allows us to have larger minimaps, while putting back in backwards compatibility with TMW style minimaps. While this might seem like a big deal, it also allows us to make minimaps as big as we'd like, which is a huge perk for really large maps or really small ones. --- src/gui/minimap.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gui/minimap.h') diff --git a/src/gui/minimap.h b/src/gui/minimap.h index 0ec13e67..a3b14729 100644 --- a/src/gui/minimap.h +++ b/src/gui/minimap.h @@ -53,6 +53,11 @@ class Minimap : public Window */ void setMapImage(Image *img); + /** + * Sets the map proportion (1 means 1 tile to one pixel, .5 means 2 tiles to 1 pixel, etc.) + */ + void setProportion(float proportion) { mProportion = proportion; } + /** * Draws the minimap. */ @@ -60,6 +65,7 @@ class Minimap : public Window private: Image *mMapImage; + float mProportion; }; extern Minimap *minimap; -- cgit v1.2.3-70-g09d2