1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Make options tab configurable

This commit is contained in:
nordsoft
2023-08-23 19:29:50 +04:00
parent 1bad0e96ef
commit b8ab64f448
6 changed files with 168 additions and 43 deletions

View File

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