fixes
This commit is contained in:
@@ -10,14 +10,16 @@ Node* NodeUserManual::clone_instantiate() const
|
||||
|
||||
void NodeUserManual::init()
|
||||
{
|
||||
init_template("usermanual");
|
||||
|
||||
SetPosition(0, 0);
|
||||
SetWidthP(100);
|
||||
SetHeightP(100);
|
||||
SetPositioning(YGPositionTypeAbsolute);
|
||||
m_template = (*m_manager)[const_hash("usermanual")]->m_children[0]->clone();
|
||||
add_child(m_template);
|
||||
btn_ok = m_template->find<NodeButton>("btn-ok");
|
||||
btn_ok->on_click = [&](Node*) { destroy(); };
|
||||
btn_ok = find<NodeButton>("btn-ok");
|
||||
btn_ok->on_click = [&](Node*) {
|
||||
destroy();
|
||||
};
|
||||
}
|
||||
|
||||
kEventResult NodeUserManual::handle_event(Event* e)
|
||||
|
||||
Reference in New Issue
Block a user