add duplicate layer

This commit is contained in:
2019-01-18 22:39:15 +01:00
parent e0bb60980a
commit d019c2467e
4 changed files with 45 additions and 13 deletions

View File

@@ -36,6 +36,7 @@ class NodePanelLayer : public Node
NodeButtonCustom* btn_remove;
NodeButtonCustom* btn_up;
NodeButtonCustom* btn_down;
NodeButtonCustom* btn_duplicate;
int id_counter = 0;
public:
std::function<void(Node* target, int old_idx, int new_idx)> on_layer_change;
@@ -45,6 +46,7 @@ public:
std::function<void(Node* target, int idx, bool highlight)> on_layer_highlight_changed;
std::function<void(Node* target, int idx, int mode)> on_layer_blend_mode_changed;
std::function<void(Node* target, int index)> on_layer_delete;
std::function<void(Node* target, int index)> on_layer_duplicate;
std::function<void(Node* target)> on_layer_add;
std::function<void(Node* target, int old_idx, int new_idx)> on_layer_order;
NodeLayer* m_current_layer = nullptr;