16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 20:59:19 +02:00

scenery editor node bank search. node label and node group support

This commit is contained in:
tmj-fstate
2020-07-12 04:46:21 +02:00
parent c4bcb94d79
commit 93c92e5ae9
5 changed files with 110 additions and 18 deletions

View File

@@ -49,8 +49,6 @@ private:
};
class nodebank_panel : public ui_panel {
std::vector<std::shared_ptr<std::string>> m_nodebank;
std::shared_ptr<std::string> m_selectedtemplate;
public:
enum edit_mode {
@@ -66,4 +64,12 @@ public:
void render() override;
void add_template(const std::string &desc);
const std::string* get_active_template();
private:
// methods:
std::string generate_node_label( std::string Input ) const;
// members:
std::vector<std::pair<std::string, std::shared_ptr<std::string>>> m_nodebank;
char m_nodesearch[ 128 ];
std::shared_ptr<std::string> m_selectedtemplate;
};