Render text and images correctly in templates with slots

This commit is contained in:
uramer 2022-02-08 13:38:42 +01:00
parent e092ee2624
commit fc50724f5c
9 changed files with 30 additions and 20 deletions

View file

@ -130,8 +130,7 @@ namespace LuaUi
void updateWidget(WidgetExtension* ext, const sol::table& layout)
{
ext->resetSlot(); // otherwise if template gets changed, all non-template children will get destroyed
ext->reset();
ext->setLayout(layout);
ext->setExternal(layout.get<sol::object>(LayoutKeys::external));
setTemplate(ext, layout.get<sol::object>(LayoutKeys::templateLayout));