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:
parent
8cad58f0c4
commit
416c47b4e9
6 changed files with 32 additions and 6 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue