1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Make each windows coniguration in separate file

This commit is contained in:
nordsoft
2022-12-12 04:52:44 +04:00
parent b3d60ec418
commit 8dbc5c1c1f
3 changed files with 512 additions and 515 deletions

View File

@@ -35,7 +35,7 @@ RandomMapTab::RandomMapTab():
recActions = 0;
mapGenOptions = std::make_shared<CMapGenOptions>();
const JsonNode config(ResourceID("config/windows.json"));
const JsonNode config(ResourceID("config/windows/randomMapTab.json"));
addCallback("toggleMapSize", [&](int btnId)
{
auto mapSizeVal = getPossibleMapSizes();
@@ -105,7 +105,7 @@ RandomMapTab::RandomMapTab():
updateMapInfoByHost();
});
init(config["randomMapTab"]);
init(config);
updateMapInfoByHost();
}