export ppbr wip

This commit is contained in:
2019-09-13 21:58:37 +02:00
parent bbd9dfc4a9
commit 729c73eef2
5 changed files with 21 additions and 25 deletions

View File

@@ -28,9 +28,6 @@ void NodeDialogExportPPBR::init()
void NodeDialogExportPPBR::init_controls()
{
btn_ok = find<NodeButton>("btn-ok");
btn_ok->on_click = [this] (Node*) {
start_exporting();
};
btn_cancel = find<NodeButton>("btn-cancel");
btn_cancel->on_click = [this](Node*) {
destroy();
@@ -43,13 +40,14 @@ void NodeDialogExportPPBR::init_controls()
btn_header_clear->on_click = [this] (Node*) {
m_header_image.destroy();
img_header->tex.destroy();
txt_header_descr->SetVisibility(true);
};
btn_header_gen = find<NodeButton>("header-gen");
btn_header_gen->on_click = [this] (Node*) {
App::I->message_box("WIP", "This feature is not yet implemented.");
};
img_header = find<NodeImageTexture>("header-tex");
txt_header_descr = find<NodeText>("header-descr");
}
void NodeDialogExportPPBR::open_header()
@@ -58,14 +56,10 @@ void NodeDialogExportPPBR::open_header()
m_header_image.load(path);
m_header_image.resize(256, 128);
img_header->tex.create(m_header_image);
txt_header_descr->SetVisibility(false);
});
}
void NodeDialogExportPPBR::start_exporting()
{
}
void NodeDialogExportPPBR::added(Node* parent)
{
NodeBorder::added(parent);