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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user