summaryrefslogtreecommitdiffstats
path: root/scene/gui/graph_edit.cpp
diff options
context:
space:
mode:
authorHendrik Brucker <hendrik.brucker@mail.de>2022-09-14 18:09:21 +0200
committerHendrik Brucker <hendrik.brucker@mail.de>2022-09-14 18:09:21 +0200
commit299585fcdecdfe25fa7f58cc9f5b9db6713791db (patch)
treeb0cf29e0d6d3f0941728a4cc5871d08b22a2a6f3 /scene/gui/graph_edit.cpp
parent85cd6960c6e45f653b21987a297f1feede67c735 (diff)
downloadredot-engine-299585fcdecdfe25fa7f58cc9f5b9db6713791db.tar.gz
Add configuration warning to GraphEdit regarding future refactoring
Diffstat (limited to 'scene/gui/graph_edit.cpp')
-rw-r--r--scene/gui/graph_edit.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/scene/gui/graph_edit.cpp b/scene/gui/graph_edit.cpp
index 69512903b4..5a0236268b 100644
--- a/scene/gui/graph_edit.cpp
+++ b/scene/gui/graph_edit.cpp
@@ -190,6 +190,14 @@ void GraphEditMinimap::_adjust_graph_scroll(const Vector2 &p_offset) {
ge->set_scroll_ofs(p_offset + graph_offset - camera_size / 2);
}
+TypedArray<String> GraphEdit::get_configuration_warnings() const {
+ TypedArray<String> warnings = Control::get_configuration_warnings();
+
+ warnings.push_back(RTR("Please be aware that GraphEdit and GraphNode will undergo extensive refactoring in a future beta version involving compatibility-breaking API changes."));
+
+ return warnings;
+}
+
Error GraphEdit::connect_node(const StringName &p_from, int p_from_port, const StringName &p_to, int p_to_port) {
if (is_node_connected(p_from, p_from_port, p_to, p_to_port)) {
return OK;