diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-08-10 16:31:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-10 16:31:32 +0200 |
commit | a94676815190c744b1789922c4a280ed8b355b09 (patch) | |
tree | f8017164f5d60a82f254561fc3177b79188e9686 /modules/gdscript | |
parent | 26b2ac82ffc482d81108b9ca5d59f167db409d36 (diff) | |
parent | e25c86bf5d4912358d0b88f1b58a86e79ed1cfad (diff) |
Merge pull request #63015 from Xwdit/fix_gds_editor_tooltip_arg_type
Diffstat (limited to 'modules/gdscript')
-rw-r--r-- | modules/gdscript/gdscript_editor.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 35dbdf8c8d..c18412bc63 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -677,7 +677,11 @@ static String _make_arguments_hint(const GDScriptParser::FunctionNode *p_functio arghint += String::chr(0xFFFF); } const GDScriptParser::ParameterNode *par = p_function->parameters[i]; - arghint += par->identifier->name.operator String() + ": " + par->get_datatype().to_string(); + if (!par->get_datatype().is_hard_type()) { + arghint += par->identifier->name.operator String() + ": Variant"; + } else { + arghint += par->identifier->name.operator String() + ": " + par->get_datatype().to_string(); + } if (par->default_value) { String def_val = "<unknown>"; |