1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Make control panel configurable

This commit is contained in:
nordsoft
2022-12-25 14:22:07 +04:00
committed by Nordsoft91
parent 87c47fff1d
commit 660d25a335
6 changed files with 298 additions and 82 deletions

View File

@@ -119,7 +119,7 @@ RandomMapTab::RandomMapTab():
}
init(config);
build(config);
updateMapInfoByHost();
}
@@ -338,7 +338,7 @@ TemplatesDropBox::ListItem::ListItem(const JsonNode & config, TemplatesDropBox &
{
OBJ_CONSTRUCTION;
init(config);
build(config);
if(auto w = widget<CPicture>("hoverImage"))
{
@@ -414,7 +414,7 @@ TemplatesDropBox::TemplatesDropBox(RandomMapTab & randomMapTab, int3 size):
pos.w = randomMapTab.pos.w;
pos.h = randomMapTab.pos.h;
init(config);
build(config);
if(auto w = widget<CSlider>("slider"))
{
@@ -524,7 +524,7 @@ TeamAlignmentsWidget::TeamAlignmentsWidget(RandomMapTab & randomMapTab):
GH.popInt(GH.topInt());
});
init(config);
build(config);
center(pos);