diff options
| author | MarianoGNU <marianognu.easyrpg@gmail.com> | 2016-01-18 20:32:37 -0300 |
|---|---|---|
| committer | MarianoGNU <marianognu.easyrpg@gmail.com> | 2016-01-18 20:41:37 -0300 |
| commit | c2aaeaaf5afb612cde195075575a955fa0650f4f (patch) | |
| tree | 1ea4da5c097ac12630dde0939599a97c28622052 /scene/gui/graph_edit.h | |
| parent | ebb5d6bb48d6f979e63c36688368290a09c4dc8e (diff) | |
| download | redot-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.h | 5 |
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; |
