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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user