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:
@@ -276,6 +276,20 @@ void RandomMapTab::setMapGenOptions(std::shared_ptr<CMapGenOptions> opts)
|
|||||||
}
|
}
|
||||||
if(auto w = widget<CToggleGroup>("groupMonsterStrength"))
|
if(auto w = widget<CToggleGroup>("groupMonsterStrength"))
|
||||||
w->setSelected(opts->getMonsterStrength());
|
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)
|
void RandomMapTab::setTemplate(const CRmgTemplate * tmpl)
|
||||||
|
Reference in New Issue
Block a user