@ -257,7 +257,6 @@ end
function UIMinimap:onStyleApply(styleName, styleNode)
for name,value in pairs(styleNode) do
if name == 'autowalk' then
print(value)
self.autowalk = value
end
@ -447,9 +447,9 @@ UIWidgetPtr UIManager::createWidgetFromOTML(const OTMLNodePtr& widgetNode, const
if(parent)
parent->addChild(widget);
widget->callLuaField("onCreate");
if(widget) {
widget->setStyleFromNode(styleNode);
for(const OTMLNodePtr& childNode : styleNode->children()) {