Use actual class names in resource type hints
This commit is contained in:
parent
80a4af1cc7
commit
f7b9703cbd
162 changed files with 377 additions and 377 deletions
|
|
@ -472,7 +472,7 @@ void GDScriptLanguage::get_public_functions(List<MethodInfo> *p_functions) const
|
|||
MethodInfo mi;
|
||||
mi.name = "preload";
|
||||
mi.arguments.push_back(PropertyInfo(Variant::STRING, "path"));
|
||||
mi.return_val = PropertyInfo(Variant::OBJECT, "", PROPERTY_HINT_RESOURCE_TYPE, "Resource");
|
||||
mi.return_val = PropertyInfo(Variant::OBJECT, "", PROPERTY_HINT_RESOURCE_TYPE, Resource::get_class_static());
|
||||
p_functions->push_back(mi);
|
||||
}
|
||||
{
|
||||
|
|
@ -3339,7 +3339,7 @@ static void _find_call_arguments(GDScriptParser::CompletionContext &p_context, c
|
|||
_get_directory_contents(EditorFileSystem::get_singleton()->get_filesystem(), r_result);
|
||||
}
|
||||
|
||||
MethodInfo mi(PropertyInfo(Variant::OBJECT, "resource", PROPERTY_HINT_RESOURCE_TYPE, "Resource"), "preload", PropertyInfo(Variant::STRING, "path"));
|
||||
MethodInfo mi(PropertyInfo(Variant::OBJECT, "resource", PROPERTY_HINT_RESOURCE_TYPE, Resource::get_class_static()), "preload", PropertyInfo(Variant::STRING, "path"));
|
||||
r_arghint = _make_arguments_hint(mi, p_argidx);
|
||||
return;
|
||||
} else if (p_call->type != GDScriptParser::Node::CALL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue