summaryrefslogtreecommitdiffstats
path: root/scene/gui/graph_edit.h
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-08-27 08:14:30 +0200
committerGitHub <noreply@github.com>2022-08-27 08:14:30 +0200
commitf9998455cee262de0f5b82ea556f644353235a47 (patch)
tree3368c7d1f6fffa6d71ad3efddd3b231fb286836a /scene/gui/graph_edit.h
parent488c5016332094490355e26e98607cae6b441343 (diff)
parent75f1357ced3423d29efca6ff46eaf2ef3432bd73 (diff)
downloadredot-engine-f9998455cee262de0f5b82ea556f644353235a47.tar.gz
Merge pull request #63249 from V-Sekai/animation_tree_editor_read_only
Add read-only mode to AnimationTreeEditor plugins
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 b8c9be9983..0a0676699f 100644
--- a/scene/gui/graph_edit.h
+++ b/scene/gui/graph_edit.h
@@ -133,6 +133,8 @@ private:
void _pan_callback(Vector2 p_scroll_vec);
void _zoom_callback(Vector2 p_scroll_vec, Vector2 p_origin, bool p_alt);
+ bool arrange_nodes_button_hidden = false;
+
bool connecting = false;
String connecting_from;
bool connecting_out = false;
@@ -323,6 +325,9 @@ public:
void set_minimap_enabled(bool p_enable);
bool is_minimap_enabled() const;
+ void set_arrange_nodes_button_hidden(bool p_enable);
+ bool is_arrange_nodes_button_hidden() const;
+
GraphEditFilter *get_top_layer() const { return top_layer; }
GraphEditMinimap *get_minimap() const { return minimap; }
void get_connection_list(List<Connection> *r_connections) const;