diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-10-17 15:31:23 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-10-17 15:31:23 -0300 |
commit | 1db523d0bb8864a3a523fe1e68769c9f125937c9 (patch) | |
tree | 5202a2b02c79798ca1b4420cddb7927951ff6ec3 /scene/gui/graph_node.h | |
parent | be0f7563fbff581ca072504978bedc6a55e180f1 (diff) | |
parent | 25324aa5061b07df6da877e94c8c23fbe7f34f6e (diff) | |
download | redot-engine-1db523d0bb8864a3a523fe1e68769c9f125937c9.tar.gz |
Merge pull request #2274 from MarianoGnu/master
Improve Visual Shader Editor responsiveness
Diffstat (limited to 'scene/gui/graph_node.h')
-rw-r--r-- | scene/gui/graph_node.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/scene/gui/graph_node.h b/scene/gui/graph_node.h index 0d5cbf8dd3..201529380d 100644 --- a/scene/gui/graph_node.h +++ b/scene/gui/graph_node.h @@ -18,7 +18,7 @@ class GraphNode : public Container { Color color_right; - Slot() { enable_left=false; type_left=0; color_left=Color(1,1,1,1); enable_right=false; type_right=0; color_right=Color(1,1,1,1); }; + Slot() { enable_left=false; type_left=0; color_left=Color(1,1,1,1); enable_right=false; type_right=0; color_right=Color(1,1,1,1); } }; String title; @@ -46,8 +46,7 @@ class GraphNode : public Container { void _resort(); Vector2 drag_from; - Vector2 drag_accum; - bool dragging; + bool selected; protected: void _input_event(const InputEvent& p_ev); @@ -79,6 +78,12 @@ public: void set_offset(const Vector2& p_offset); Vector2 get_offset() const; + void set_selected(bool p_selected); + bool is_selected(); + + void set_drag(bool p_drag); + Vector2 get_drag_from(); + void set_show_close_button(bool p_enable); bool is_close_button_visible() const; |