add shortcuts panel
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include "serializer.h"
|
||||
#include "font.h"
|
||||
#include "node_remote_page.h"
|
||||
#include "node_shorcuts.h"
|
||||
|
||||
void App::title_update()
|
||||
{
|
||||
@@ -1043,7 +1044,13 @@ void App::init_menu_tools()
|
||||
popup_exp->mouse_release();
|
||||
popup_exp->destroy();
|
||||
};
|
||||
|
||||
|
||||
popup_exp->find<NodeButtonCustom>("shortcuts")->on_click = [this, popup_exp](Node*) {
|
||||
dialog_shortcuts();
|
||||
popup_exp->mouse_release();
|
||||
popup_exp->destroy();
|
||||
};
|
||||
|
||||
/*
|
||||
popup_exp->find<NodeButtonCustom>("mp4test")->on_click = [this, popup_exp](Node*) {
|
||||
dialog_export_mp4();
|
||||
@@ -1381,13 +1388,13 @@ void App::initLayout()
|
||||
LOG("initializing layout designer xml");
|
||||
layout_designer.on_loaded = [&](bool reloaded) {
|
||||
layout_designer.create();
|
||||
//layout_designer[main_id]->add_child(layout_designer.instantiate("tpl-panel-animation"));
|
||||
auto p = layout_designer[main_id]->add_child<NodePanelFloating>();
|
||||
p->SetPosition(300, 300);
|
||||
p->SetSize(600, 400);
|
||||
p->m_container->add_child<NodePanelAnimation>();
|
||||
//layout_designer[main_id]->add_child(layout_designer.instantiate("shortcuts"));
|
||||
auto p = layout_designer[main_id]->add_child<NodeShortcuts>();
|
||||
//p->SetPosition(300, 300);
|
||||
//p->SetSize(600, 400);
|
||||
//p->m_container->add_child<NodePanelAnimation>();
|
||||
};
|
||||
//layout_designer.load("data/dialogs/panel-animation.xml");
|
||||
//layout_designer.load("data/dialogs/shortcuts.xml");
|
||||
}
|
||||
|
||||
void App::set_ui_scale(float scale)
|
||||
|
||||
Reference in New Issue
Block a user