mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Render text and images correctly in templates with slots
This commit is contained in:
parent
e092ee2624
commit
fc50724f5c
9 changed files with 30 additions and 20 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue