start implementing shape tag
This commit is contained in:
@@ -182,6 +182,9 @@ void Node::load_internal(const tinyxml2::XMLElement* x_node)
|
||||
case kWidget::Border:
|
||||
m_widget = std::make_unique<WidgetBorder>();
|
||||
break;
|
||||
case kWidget::Shape:
|
||||
m_widget = std::make_unique<WidgetShape>();
|
||||
break;
|
||||
}
|
||||
|
||||
while (attr)
|
||||
@@ -190,6 +193,9 @@ void Node::load_internal(const tinyxml2::XMLElement* x_node)
|
||||
attr = attr->Next();
|
||||
}
|
||||
|
||||
if (m_widget)
|
||||
m_widget->create();
|
||||
|
||||
auto x_child = x_node->FirstChildElement();
|
||||
while (x_child)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user