1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Add coloring for completion of vector components

This commit is contained in:
Yuri Rubinsky
2023-03-12 10:33:38 +03:00
committed by Yuri Roubinski
parent f7c48cf803
commit 35802374ac
8 changed files with 34 additions and 5 deletions

View File

@@ -344,14 +344,16 @@ public:
Vector<Pair<int, int>> matches;
Vector<Pair<int, int>> last_matches = { { -1, -1 } }; // This value correspond to an impossible match
int location = LOCATION_OTHER;
String theme_color_name;
CodeCompletionOption() {}
CodeCompletionOption(const String &p_text, CodeCompletionKind p_kind, int p_location = LOCATION_OTHER) {
CodeCompletionOption(const String &p_text, CodeCompletionKind p_kind, int p_location = LOCATION_OTHER, const String &p_theme_color_name = "") {
display = p_text;
insert_text = p_text;
kind = p_kind;
location = p_location;
theme_color_name = p_theme_color_name;
}
TypedArray<int> get_option_characteristics(const String &p_base);