From 402bdfa3b78a9c97c0e05006e14f1fcfa6131f6e Mon Sep 17 00:00:00 2001 From: HolonProduction Date: Sun, 26 Nov 2023 14:37:45 +0100 Subject: [PATCH] Generate `arghint` for script types --- modules/gdscript/gdscript_editor.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index b58b44973e8..f942e91cf76 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -2768,6 +2768,20 @@ static void _find_call_arguments(GDScriptParser::CompletionContext &p_context, c base_type = base_type.class_type->base_type; } break; + case GDScriptParser::DataType::SCRIPT: { + if (base_type.script_type->is_valid() && base_type.script_type->has_method(p_method)) { + r_arghint = _make_arguments_hint(base_type.script_type->get_method_info(p_method), p_argidx); + return; + } + Ref