16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 13:39:18 +02:00

build 200709. milek7/sim branch scenery editor node bank code import

This commit is contained in:
tmj-fstate
2020-07-10 16:18:12 +02:00
parent e9c21b369f
commit c4bcb94d79
13 changed files with 342 additions and 8 deletions

View File

@@ -19,6 +19,7 @@ editor_ui::editor_ui() {
clear_panels();
// bind the panels with ui object. maybe not the best place for this but, eh
push_back( &m_itempropertiespanel );
push_back( &m_nodebankpanel );
}
// updates state of UI elements
@@ -46,3 +47,18 @@ editor_ui::set_node( scene::basic_node * Node ) {
m_node = Node;
}
void
editor_ui::add_node_template(const std::string &desc) {
m_nodebankpanel.add_template(desc);
}
std::string const *
editor_ui::get_active_node_template() {
return m_nodebankpanel.get_active_template();
}
nodebank_panel::edit_mode
editor_ui::mode() {
return m_nodebankpanel.mode;
}