split layout.xml into multiple files loaded on demand, update changelog
This commit is contained in:
@@ -28,10 +28,7 @@ void NodeLayer::clone_copy(Node* dest) const
|
||||
|
||||
void NodeLayer::init()
|
||||
{
|
||||
const auto& m_template = (NodeBorder*)init_template("tpl-layer");
|
||||
m_color = m_template->m_color;
|
||||
m_border_color = m_template->m_border_color;
|
||||
m_thinkness = m_template->m_thinkness;
|
||||
init_template_file("data/dialogs/panel-layers.xml", "tpl-layer");
|
||||
m_label = find<NodeText>("label");
|
||||
m_visibility = find<NodeCheckBox>("cb");
|
||||
}
|
||||
@@ -111,7 +108,7 @@ Node* NodePanelLayer::clone_instantiate() const
|
||||
|
||||
void NodePanelLayer::init()
|
||||
{
|
||||
init_template("tpl-panel-layers");
|
||||
init_template_file("data/dialogs/panel-layers.xml", "tpl-panel-layers");
|
||||
m_layers_container = find<NodeScroll>("layers-container");
|
||||
btn_add = find<NodeButtonCustom>("btn-add");
|
||||
btn_remove = find<NodeButtonCustom>("btn-remove");
|
||||
|
||||
Reference in New Issue
Block a user