1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-10 08:23:22 +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

@ -144,6 +144,12 @@ void UserSettings::save()
xml_saveSlotScreens.SetAttribute("on", video.saveSlotScreens);
}
xml_video.InsertEndChild(xml_saveSlotScreens);
TiXmlElement xml_worldMap("WorldMap");
{
xml_worldMap.SetAttribute("revealMethod", video.worldMapRevealMethod);
}
xml_video.InsertEndChild(xml_worldMap);
}
doc.InsertEndChild(xml_video);
@ -445,6 +451,8 @@ void UserSettings::load(bool doApply, const std::string &overrideFile)
}
readInt(xml_video, "SaveSlotScreens", "on", &video.saveSlotScreens);
readInt(xml_video, "WorldMap", "revealMethod", &video.worldMapRevealMethod);
}
TiXmlElement *xml_control = doc.FirstChildElement("Control");