add/remove presets on all panels
This commit is contained in:
@@ -75,6 +75,7 @@ public:
|
||||
|
||||
class NodePanelBrushPreset : public Node
|
||||
{
|
||||
static std::vector<NodePanelBrushPreset*> s_panels;
|
||||
bool m_interacted = false;
|
||||
NodeBrushPresetItem* m_current = nullptr;
|
||||
NodeButtonCustom* m_btn_add;
|
||||
@@ -90,6 +91,8 @@ public:
|
||||
Node* m_container;
|
||||
std::function<void(Node* target, std::shared_ptr<Brush>& brush)> on_brush_changed;
|
||||
std::function<void(Node* target)> on_popup_close;
|
||||
NodePanelBrushPreset();
|
||||
~NodePanelBrushPreset();
|
||||
virtual Node* clone_instantiate() const override;
|
||||
virtual void init() override;
|
||||
virtual kEventResult handle_event(Event* e) override;
|
||||
@@ -102,7 +105,6 @@ public:
|
||||
bool import_ppbr(const std::string& path);
|
||||
bool import_abr(const std::string& path);
|
||||
bool import_brush(const std::string& path);
|
||||
std::string replace_path(std::string path, std::string new_base);
|
||||
void clear_brushes();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user