Merge pull request #63015 from Xwdit/fix_gds_editor_tooltip_arg_type
This commit is contained in:
commit
a946768151
1 changed files with 5 additions and 1 deletions
|
@ -677,7 +677,11 @@ static String _make_arguments_hint(const GDScriptParser::FunctionNode *p_functio
|
||||||
arghint += String::chr(0xFFFF);
|
arghint += String::chr(0xFFFF);
|
||||||
}
|
}
|
||||||
const GDScriptParser::ParameterNode *par = p_function->parameters[i];
|
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) {
|
if (par->default_value) {
|
||||||
String def_val = "<unknown>";
|
String def_val = "<unknown>";
|
||||||
|
|
Loading…
Reference in a new issue