split layout.xml into multiple files loaded on demand, update changelog
This commit is contained in:
@@ -10,15 +10,12 @@ Node* NodeProgressBar::clone_instantiate() const
|
||||
|
||||
void NodeProgressBar::init()
|
||||
{
|
||||
auto tpl = static_cast<const NodeBorder*>(init_template("progress-bar"));
|
||||
m_color = tpl->m_color;
|
||||
m_border_color = tpl->m_border_color;
|
||||
m_thinkness = tpl->m_thinkness;
|
||||
init_template_file("data/dialogs/progress-bar.xml", "progress-bar");
|
||||
m_capture_children = false; // don't capture children events on mouse_capture
|
||||
|
||||
m_title = find<NodeText>("title");
|
||||
btn_cancel = find<NodeButton>("btn-cancel");
|
||||
btn_cancel->on_click = [&](Node*) { destroy(); };
|
||||
//btn_cancel->on_click = [&](Node*) { destroy(); };
|
||||
m_progress = find<NodeBorder>("progress");
|
||||
m_body = find<NodeBorder>("body");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user