|
|
@ -447,9 +447,9 @@ UIWidgetPtr UIManager::createWidgetFromOTML(const OTMLNodePtr& widgetNode, const
|
|
|
|
if(parent)
|
|
|
|
if(parent)
|
|
|
|
parent->addChild(widget);
|
|
|
|
parent->addChild(widget);
|
|
|
|
|
|
|
|
|
|
|
|
widget->callLuaField("onCreate");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(widget) {
|
|
|
|
if(widget) {
|
|
|
|
|
|
|
|
widget->callLuaField("onCreate");
|
|
|
|
|
|
|
|
|
|
|
|
widget->setStyleFromNode(styleNode);
|
|
|
|
widget->setStyleFromNode(styleNode);
|
|
|
|
|
|
|
|
|
|
|
|
for(const OTMLNodePtr& childNode : styleNode->children()) {
|
|
|
|
for(const OTMLNodePtr& childNode : styleNode->children()) {
|
|
|
|