17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-01 06:52:45 +01:00

fix(editor): stuck brush after clicks on UI; add polygon area fill (#191)

This commit is contained in:
2026-10-01 02:03:49 +02:00
committed by GitHub
parent b67bbb19e6
commit f9deee5cfd
6 changed files with 674 additions and 33 deletions

View File

@@ -81,7 +81,8 @@ class nodebank_panel : public ui_panel
MODIFY,
COPY,
ADD,
BRUSH
BRUSH,
FILL
};
edit_mode mode = MODIFY;
@@ -90,6 +91,10 @@ class nodebank_panel : public ui_panel
void render() override;
void add_template(const std::string &desc);
const std::string *get_active_template();
// nodebank groups (collapsing headers), in file order; entries listed before the first header form an unnamed group
std::vector<std::string> group_names() const;
// node templates of the group with specified index (as returned by group_names())
std::vector<std::string> group_templates(std::size_t const Group) const;
private:
// methods: