summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-07-01 14:51:23 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-07-01 14:51:23 +0000
commitd3ccf6a0b97ce4189eef4fde606cf5b5f93fac14 (patch)
treef4c4e5b1cc87b34d0a3946c3409882ba222e2ad7 /src/engine.cpp
parent59c17d5f465ddcf1956e8cdf1aae1dbda0a1431f (diff)
downloadmana-d3ccf6a0b97ce4189eef4fde606cf5b5f93fac14.tar.gz
mana-d3ccf6a0b97ce4189eef4fde606cf5b5f93fac14.tar.bz2
mana-d3ccf6a0b97ce4189eef4fde606cf5b5f93fac14.tar.xz
mana-d3ccf6a0b97ce4189eef4fde606cf5b5f93fac14.zip
Ported some GUI improvements from Legend of Mazeroth (GUI skinning via XML files, item descriptions on mouse-over, map names in minimap window, speech bubbles)
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index b38ca0a8..e4b25c02 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -91,6 +91,17 @@ void Engine::changeMap(const std::string &mapPath)
if (newMap->hasProperty("minimap"))
{
mapImage = resman->getImage(newMap->getProperty("minimap"));
+
+ // Set the title for the Minimap
+ if (newMap->hasProperty("mapname"))
+ {
+ minimap->setCaption(newMap->getProperty("mapname"));
+ }
+ else
+ {
+ minimap->setCaption("Unknown");
+ logger->log("WARNING: Map file '%s' defines a minimap image but does not define a 'mapname' property", map_path.c_str());
+ }
}
minimap->setMapImage(mapImage);
beingManager->setMap(newMap);