summaryrefslogtreecommitdiffstats
path: root/scene/gui/graph_edit.h
diff options
context:
space:
mode:
authorMarianoGNU <marianognu.easyrpg@gmail.com>2016-01-18 20:32:37 -0300
committerMarianoGNU <marianognu.easyrpg@gmail.com>2016-01-18 20:41:37 -0300
commitc2aaeaaf5afb612cde195075575a955fa0650f4f (patch)
tree1ea4da5c097ac12630dde0939599a97c28622052 /scene/gui/graph_edit.h
parentebb5d6bb48d6f979e63c36688368290a09c4dc8e (diff)
downloadredot-engine-c2aaeaaf5afb612cde195075575a955fa0650f4f.tar.gz
Add zoom to GraphEdit
Also fix some responsiveness issues: -Box selection no longer visible when connecting. -Allow cancel connection with mouse's right button.
Diffstat (limited to 'scene/gui/graph_edit.h')
-rw-r--r--scene/gui/graph_edit.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/gui/graph_edit.h b/scene/gui/graph_edit.h
index 5e339e4e7e..b63597afba 100644
--- a/scene/gui/graph_edit.h
+++ b/scene/gui/graph_edit.h
@@ -53,6 +53,8 @@ private:
bool just_selected;
Vector2 drag_accum;
+ float zoom;
+
bool box_selecting;
bool box_selection_mode_aditive;
Point2 box_selecting_from;
@@ -96,6 +98,9 @@ public:
void disconnect_node(const StringName& p_from, int p_from_port,const StringName& p_to,int p_to_port);
void clear_connections();
+ void set_zoom(float p_zoom);
+ float get_zoom() const;
+
GraphEditFilter *get_top_layer() const { return top_layer; }
void get_connection_list(List<Connection> *r_connections) const;