summaryrefslogtreecommitdiffstats
path: root/scene/gui/graph_edit.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-07-24 18:02:10 -0300
committerGitHub <noreply@github.com>2018-07-24 18:02:10 -0300
commit2e67fc57e6df5151506665108240d10ca366e56c (patch)
tree5c995b5742c0e87b80204475a3ce01fb720d3626 /scene/gui/graph_edit.h
parent62f2a8aadb28572f6d6a1fd382312e788fada3bc (diff)
parent85670726fdf840da22d3ab1fe55de4162e9289df (diff)
downloadredot-engine-2e67fc57e6df5151506665108240d10ca366e56c.tar.gz
Merge pull request #18867 from fire/better_vx_us_rebase_02
Improve VisualScript UX
Diffstat (limited to 'scene/gui/graph_edit.h')
-rw-r--r--scene/gui/graph_edit.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/gui/graph_edit.h b/scene/gui/graph_edit.h
index 14789001e4..64ba18681e 100644
--- a/scene/gui/graph_edit.h
+++ b/scene/gui/graph_edit.h
@@ -81,6 +81,9 @@ private:
HScrollBar *h_scroll;
VScrollBar *v_scroll;
+ float port_grab_distance_horizontal;
+ float port_grab_distance_vertical;
+
bool connecting;
String connecting_from;
bool connecting_out;
@@ -127,6 +130,9 @@ private:
Control *connections_layer;
GraphEditFilter *top_layer;
void _top_layer_input(const Ref<InputEvent> &p_ev);
+
+ Rect2 create_hot_zone(const Vector2 &pos);
+
void _top_layer_draw();
void _connections_layer_draw();
void _update_scroll_offset();