#include "pch.h" #include "log.h" #include "node_settings.h" #include "layout.h" Node* NodeSettings::clone_instantiate() const { return new NodeSettings(); } void NodeSettings::init() { SetPosition(0, 0); SetWidthP(100); SetHeightP(100); SetPositioning(YGPositionTypeAbsolute); add_child_file("data/dialogs/settings.xml", "settings"); btnOk = find("btn-ok"); btnOk->on_click = [&](Node*) { destroy(); }; } kEventResult NodeSettings::handle_event(Event* e) { return kEventResult::Consumed; }