26 lines
558 B
C++
26 lines
558 B
C++
#include "pch.h"
|
|
#include "log.h"
|
|
#include "node_usermanual.h"
|
|
#include "layout.h"
|
|
|
|
Node* NodeUserManual::clone_instantiate() const
|
|
{
|
|
return new NodeUserManual();
|
|
}
|
|
|
|
void NodeUserManual::init()
|
|
{
|
|
SetPosition(0, 0);
|
|
SetWidthP(100);
|
|
SetHeightP(100);
|
|
SetPositioning(YGPositionTypeAbsolute);
|
|
add_child_file("data/dialogs/usermanual.xml", "usermanual");
|
|
btn_ok = find<NodeButton>("btn-ok");
|
|
btn_ok->on_click = [&](Node*) { destroy(); };
|
|
}
|
|
|
|
kEventResult NodeUserManual::handle_event(Event* e)
|
|
{
|
|
return kEventResult::Consumed;
|
|
}
|