diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-25 17:08:45 +0200 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-25 17:08:45 +0200 |
| commit | d456dce8af77572ec5c9bec87cf1477fa52ea318 (patch) | |
| tree | ec308e7e7fc16cb233efd94b914351080e16696e /editor/plugins/script_editor_plugin.cpp | |
| parent | eae7d275786449be37ca01e0aeee351120a0ba47 (diff) | |
| parent | a9b394d5bcd551d7ccb16cf19d6e40f675c9d07b (diff) | |
| download | redot-engine-d456dce8af77572ec5c9bec87cf1477fa52ea318.tar.gz | |
Merge pull request #65535 from RedMser/script-editor-inheritance-icon
Show override icon in script editor gutter
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 8791da8245..941fcbac2a 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -227,6 +227,7 @@ void ScriptEditorBase::_bind_methods() { // TODO: This signal is no use for VisualScript. ADD_SIGNAL(MethodInfo("search_in_files_requested", PropertyInfo(Variant::STRING, "text"))); ADD_SIGNAL(MethodInfo("replace_in_files_requested", PropertyInfo(Variant::STRING, "text"))); + ADD_SIGNAL(MethodInfo("go_to_method", PropertyInfo(Variant::OBJECT, "script"), PropertyInfo(Variant::STRING, "method"))); } class EditorScriptCodeCompletionCache : public ScriptCodeCompletionCache { @@ -2380,6 +2381,7 @@ bool ScriptEditor::edit(const Ref<Resource> &p_resource, int p_line, int p_col, se->connect("request_save_history", callable_mp(this, &ScriptEditor::_save_history)); se->connect("search_in_files_requested", callable_mp(this, &ScriptEditor::_on_find_in_files_requested)); se->connect("replace_in_files_requested", callable_mp(this, &ScriptEditor::_on_replace_in_files_requested)); + se->connect("go_to_method", callable_mp(this, &ScriptEditor::script_goto_method)); //test for modification, maybe the script was not edited but was loaded |
