mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Add coloring for completion of vector components
This commit is contained in:
parent
f7c48cf803
commit
35802374ac
8 changed files with 34 additions and 5 deletions
|
@ -66,6 +66,10 @@ Variant::Type GDScriptParser::get_builtin_type(const StringName &p_type) {
|
|||
return Variant::VARIANT_MAX;
|
||||
}
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
HashMap<String, String> GDScriptParser::theme_color_names;
|
||||
#endif
|
||||
|
||||
void GDScriptParser::cleanup() {
|
||||
builtin_types.clear();
|
||||
}
|
||||
|
@ -121,6 +125,15 @@ GDScriptParser::GDScriptParser() {
|
|||
#ifdef DEBUG_ENABLED
|
||||
is_ignoring_warnings = !(bool)GLOBAL_GET("debug/gdscript/warnings/enable");
|
||||
#endif
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
if (theme_color_names.is_empty()) {
|
||||
theme_color_names.insert("x", "axis_x_color");
|
||||
theme_color_names.insert("y", "axis_y_color");
|
||||
theme_color_names.insert("z", "axis_z_color");
|
||||
theme_color_names.insert("w", "axis_w_color");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
GDScriptParser::~GDScriptParser() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue