1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-14 18:40:43 +00:00

Make world map reveal method configurable via user settings,

and add the possibility for mods to override this setting.
This commit is contained in:
fgenesis 2012-10-14 03:46:47 +02:00
commit 416c47b4e9
6 changed files with 32 additions and 6 deletions

View file

@ -60,6 +60,7 @@ void Mod::clear()
debugMenu = false;
hasMap = false;
blockEditor = false;
mapRevealMethod = REVEAL_UNSPECIFIED;
}
bool Mod::isDebugMenu()
@ -137,6 +138,11 @@ void Mod::load(const std::string &p)
props->Attribute("blockEditor", &t);
blockEditor = t;
}
if (props->Attribute("worldMapRevealMethod")) {
int t;
props->Attribute("worldMapRevealMethod", &t);
mapRevealMethod = (WorldMapRevealMethod)t;
}
}
}
@ -248,6 +254,7 @@ void Mod::setActive(bool a)
{
if (!active)
{
mapRevealMethod = REVEAL_UNSPECIFIED;
setLocalisationModPath("");
name = path = "";
dsq->secondaryTexturePath = "";