From c2aaeaaf5afb612cde195075575a955fa0650f4f Mon Sep 17 00:00:00 2001 From: MarianoGNU Date: Mon, 18 Jan 2016 20:32:37 -0300 Subject: Add zoom to GraphEdit Also fix some responsiveness issues: -Box selection no longer visible when connecting. -Allow cancel connection with mouse's right button. --- scene/gui/graph_edit.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scene/gui/graph_edit.h') diff --git a/scene/gui/graph_edit.h b/scene/gui/graph_edit.h index 5e339e4e7..b63597afb 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 *r_connections) const; -- cgit v1.2.3-70-g09d2