mirror of
https://github.com/godotengine/godot.git
synced 2026-02-16 07:41:16 +00:00
Use actual class names in resource type hints
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user