mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
51 lines
1.1 KiB
C++
51 lines
1.1 KiB
C++
/*
|
|
This Source Code Form is subject to the
|
|
terms of the Mozilla Public License, v.
|
|
2.0. If a copy of the MPL was not
|
|
distributed with this file, You can
|
|
obtain one at
|
|
http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "uilayer.h"
|
|
#include "editoruipanels.h"
|
|
|
|
namespace scene {
|
|
|
|
class basic_node;
|
|
|
|
}
|
|
|
|
class editor_ui : public ui_layer {
|
|
|
|
public:
|
|
// constructors
|
|
editor_ui();
|
|
// methods
|
|
// potentially processes provided input key. returns: true if the input was processed, false otherwise
|
|
bool
|
|
on_key( int const Key, int const Action ) override;
|
|
// updates state of UI elements
|
|
void
|
|
update() override;
|
|
void
|
|
set_node( scene::basic_node * Node );
|
|
nodebank_panel::edit_mode
|
|
mode();
|
|
void
|
|
add_node_template(const std::string &desc);
|
|
const std::string *
|
|
get_active_node_template();
|
|
|
|
protected:
|
|
void render_menu_contents();
|
|
|
|
private:
|
|
// members
|
|
itemproperties_panel m_itempropertiespanel { "Node Properties", true };
|
|
nodebank_panel m_nodebankpanel;
|
|
scene::basic_node * m_node { nullptr }; // currently bound scene node, if any
|
|
};
|