diff options
author | William Deurwaarder <william.git@xs4all.nl> | 2021-08-30 21:51:56 +0200 |
---|---|---|
committer | William Deurwaarder <william.git@xs4all.nl> | 2021-08-30 21:51:56 +0200 |
commit | b2f858870d1e7ff9dc8c0e498be434b441748463 (patch) | |
tree | bfd9bf5381c221a82f62a4e6e227f60733bcd0ec /modules/gdscript | |
parent | efc87481e45c66b3a18dfe1db82c3289fe2a370d (diff) |
Show help for built-in functions (@GlobalScope)
Diffstat (limited to 'modules/gdscript')
-rw-r--r-- | modules/gdscript/gdscript_editor.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 70e18c6e6c..f809a4dab8 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -3078,6 +3078,15 @@ static Error _lookup_symbol_from_base(const GDScriptParser::DataType &p_base, co r_result.class_member = p_symbol; return OK; } + } else { + List<StringName> utility_functions; + Variant::get_utility_function_list(&utility_functions); + if (utility_functions.find(p_symbol) != nullptr) { + r_result.type = ScriptLanguage::LookupResult::RESULT_CLASS_TBD_GLOBALSCOPE; + r_result.class_name = "@GlobalScope"; + r_result.class_member = p_symbol; + return OK; + } } } } break; |