remove sidebar and make panels popup

This commit is contained in:
2019-03-05 02:06:07 +01:00
parent 4318fe9728
commit 317292318a
17 changed files with 256 additions and 67 deletions

View File

@@ -39,6 +39,7 @@ class NodePanelLayer : public Node
NodeButtonCustom* btn_duplicate;
int id_counter = 0;
public:
std::function<void(Node* target)> on_popup_close;
std::function<void(Node* target, int old_idx, int new_idx)> on_layer_change;
std::function<void(Node* target, int idx, float value)> on_layer_opacity_changed;
std::function<void(Node* target, int idx, bool visible)> on_layer_visibility_changed;
@@ -57,6 +58,7 @@ public:
NodeComboBox* m_blend_mode;
virtual Node* clone_instantiate() const override;
virtual void init() override;
virtual kEventResult handle_event(Event* e) override;
void add_layer();
NodeLayer* add_layer(const char* name);
NodeLayer* get_layer_at(int index);