diff options
author | Geequlim <geequlim@gmail.com> | 2019-06-13 17:32:03 +0800 |
---|---|---|
committer | Geequlim <geequlim@gmail.com> | 2019-07-05 09:25:50 +0800 |
commit | 10cfd87414f1e39a31c2ac13ead61cbca9353afd (patch) | |
tree | c768b2462693aed7c22dfef9ce06f12133929d0b /scene/gui/text_edit.h | |
parent | 1ddb61025562fc1dfde2edcf4cd5542d11414566 (diff) |
Show icons for code completion options
Diffstat (limited to 'scene/gui/text_edit.h')
-rw-r--r-- | scene/gui/text_edit.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scene/gui/text_edit.h b/scene/gui/text_edit.h index 30956ccb23..9fb8e03288 100644 --- a/scene/gui/text_edit.h +++ b/scene/gui/text_edit.h @@ -255,11 +255,11 @@ private: Set<String> completion_prefixes; bool completion_enabled; - Vector<String> completion_strings; - Vector<String> completion_options; + List<ScriptCodeCompletionOption> completion_sources; + Vector<ScriptCodeCompletionOption> completion_options; bool completion_active; bool completion_forced; - String completion_current; + ScriptCodeCompletionOption completion_current; String completion_base; int completion_index; Rect2i completion_rect; @@ -704,7 +704,7 @@ public: void set_tooltip_request_func(Object *p_obj, const StringName &p_function, const Variant &p_udata); void set_completion(bool p_enabled, const Vector<String> &p_prefixes); - void code_complete(const Vector<String> &p_strings, bool p_forced = false); + void code_complete(const List<ScriptCodeCompletionOption> &p_strings, bool p_forced = false); void set_code_hint(const String &p_hint); void query_code_comple(); |