1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

Fixes for multiplyer

This commit is contained in:
nordsoft
2022-12-17 08:38:33 +04:00
parent b1f2c7aed4
commit b590e4a0e4

View File

@@ -276,6 +276,20 @@ void RandomMapTab::setMapGenOptions(std::shared_ptr<CMapGenOptions> opts)
}
if(auto w = widget<CToggleGroup>("groupMonsterStrength"))
w->setSelected(opts->getMonsterStrength());
if(auto w = widget<CButton>("templateButton"))
{
if(tmpl)
w->addTextOverlay(tmpl->getName(), EFonts::FONT_SMALL);
else
w->addTextOverlay("default", EFonts::FONT_SMALL);
}
for(auto r : VLC->terrainTypeHandler->roads())
{
if(auto w = widget<CToggleButton>(r.name))
{
w->setSelected(opts->isRoadEnabled(r.name));
}
}
}
void RandomMapTab::setTemplate(const CRmgTemplate * tmpl)