diff options
author | Yuri Rubinsky <chaosus89@gmail.com> | 2023-03-12 10:33:38 +0300 |
---|---|---|
committer | Yuri Roubinski <chaosus89@gmail.com> | 2023-08-30 21:13:25 +0300 |
commit | 35802374acb826751f03dd2180b64e89f467e99d (patch) | |
tree | 5f533547a65615f7dee35e9cb5c68ac8f297a7c4 /modules/gdscript/gdscript_editor.cpp | |
parent | f7c48cf8039d07f113d38cf9115547a75ea1d3c9 (diff) | |
download | redot-engine-35802374acb826751f03dd2180b64e89f467e99d.tar.gz |
Add coloring for completion of vector components
Diffstat (limited to 'modules/gdscript/gdscript_editor.cpp')
-rw-r--r-- | modules/gdscript/gdscript_editor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 3019354d93..6cad3b2b90 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -1207,6 +1207,9 @@ static void _find_identifiers_in_base(const GDScriptCompletionIdentifier &p_base for (const PropertyInfo &E : members) { if (!String(E.name).contains("/")) { ScriptLanguage::CodeCompletionOption option(E.name, ScriptLanguage::CODE_COMPLETION_KIND_MEMBER); + if (GDScriptParser::theme_color_names.has(E.name)) { + option.theme_color_name = GDScriptParser::theme_color_names[E.name]; + } r_result.insert(option.display, option); } } |