mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-21 12:06:49 +02:00
Support roads selection in random map tab
This commit is contained in:
parent
d93e844609
commit
4f5fab702e
@ -110,10 +110,11 @@ RandomMapTab::RandomMapTab():
|
|||||||
|
|
||||||
for(auto road : VLC->terrainTypeHandler->roads())
|
for(auto road : VLC->terrainTypeHandler->roads())
|
||||||
{
|
{
|
||||||
std::string cbRoadType = "selectRoad_" + road.fileName;
|
std::string cbRoadType = "selectRoad_" + road.name;
|
||||||
addCallback(cbRoadType, [&](bool on)
|
addCallback(cbRoadType, [&, road](bool on)
|
||||||
{
|
{
|
||||||
//TODO: support road types
|
mapGenOptions->setRoadEnabled(road.name, on);
|
||||||
|
updateMapInfoByHost();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -113,5 +113,18 @@
|
|||||||
"label" : "Hide complete quests",
|
"label" : "Hide complete quests",
|
||||||
"help" : "Hide all quests that already completed"
|
"help" : "Hide all quests that already completed"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"randomMapTab":
|
||||||
|
{
|
||||||
|
"widgets":
|
||||||
|
{
|
||||||
|
"defaultTemplate": "default",
|
||||||
|
"templateLabel": "Template",
|
||||||
|
"teamAlignmentsButton": "Setup...",
|
||||||
|
"teamAlignmentsLabel": "Team alignments",
|
||||||
|
"dirtRoad": "Dirt",
|
||||||
|
"gravelRoad": "Gravel",
|
||||||
|
"cobblestoneRoad": "Stone"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user