|
@@ -57,7 +57,7 @@ bool EditorInspector::_property_path_matches(const String &p_property_path, cons
|
|
|
|
|
|
const Vector<String> prop_sections = p_property_path.split("/");
|
|
const Vector<String> prop_sections = p_property_path.split("/");
|
|
for (int i = 0; i < prop_sections.size(); i++) {
|
|
for (int i = 0; i < prop_sections.size(); i++) {
|
|
- if (p_filter.is_subsequence_ofn(EditorPropertyNameProcessor::get_singleton()->process_name(prop_sections[i], p_style))) {
|
|
|
|
|
|
+ if (p_filter.is_subsequence_ofn(EditorPropertyNameProcessor::get_singleton()->process_name(prop_sections[i], p_style, p_property_path))) {
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -3012,7 +3012,7 @@ void EditorInspector::update_tree() {
|
|
if ((p.usage & PROPERTY_USAGE_SCRIPT_VARIABLE) && name_style == EditorPropertyNameProcessor::STYLE_LOCALIZED) {
|
|
if ((p.usage & PROPERTY_USAGE_SCRIPT_VARIABLE) && name_style == EditorPropertyNameProcessor::STYLE_LOCALIZED) {
|
|
name_style = EditorPropertyNameProcessor::STYLE_CAPITALIZED;
|
|
name_style = EditorPropertyNameProcessor::STYLE_CAPITALIZED;
|
|
}
|
|
}
|
|
- const String property_label_string = EditorPropertyNameProcessor::get_singleton()->process_name(name_override, name_style) + feature_tag;
|
|
|
|
|
|
+ const String property_label_string = EditorPropertyNameProcessor::get_singleton()->process_name(name_override, name_style, p.name, doc_name) + feature_tag;
|
|
|
|
|
|
// Remove the property from the path.
|
|
// Remove the property from the path.
|
|
int idx = path.rfind("/");
|
|
int idx = path.rfind("/");
|
|
@@ -3081,8 +3081,8 @@ void EditorInspector::update_tree() {
|
|
tooltip = EditorPropertyNameProcessor::get_singleton()->translate_group_name(component);
|
|
tooltip = EditorPropertyNameProcessor::get_singleton()->translate_group_name(component);
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- label = EditorPropertyNameProcessor::get_singleton()->process_name(component, section_name_style);
|
|
|
|
- tooltip = EditorPropertyNameProcessor::get_singleton()->process_name(component, EditorPropertyNameProcessor::get_tooltip_style(section_name_style));
|
|
|
|
|
|
+ label = EditorPropertyNameProcessor::get_singleton()->process_name(component, section_name_style, p.name, doc_name);
|
|
|
|
+ tooltip = EditorPropertyNameProcessor::get_singleton()->process_name(component, EditorPropertyNameProcessor::get_tooltip_style(section_name_style), p.name, doc_name);
|
|
}
|
|
}
|
|
|
|
|
|
Color c = sscolor;
|
|
Color c = sscolor;
|
|
@@ -3145,7 +3145,7 @@ void EditorInspector::update_tree() {
|
|
editor_inspector_array = memnew(EditorInspectorArray(all_read_only));
|
|
editor_inspector_array = memnew(EditorInspectorArray(all_read_only));
|
|
|
|
|
|
String array_label = path.contains("/") ? path.substr(path.rfind("/") + 1) : path;
|
|
String array_label = path.contains("/") ? path.substr(path.rfind("/") + 1) : path;
|
|
- array_label = EditorPropertyNameProcessor::get_singleton()->process_name(property_label_string, property_name_style);
|
|
|
|
|
|
+ array_label = EditorPropertyNameProcessor::get_singleton()->process_name(property_label_string, property_name_style, p.name, doc_name);
|
|
int page = per_array_page.has(array_element_prefix) ? per_array_page[array_element_prefix] : 0;
|
|
int page = per_array_page.has(array_element_prefix) ? per_array_page[array_element_prefix] : 0;
|
|
editor_inspector_array->setup_with_move_element_function(object, array_label, array_element_prefix, page, c, use_folding);
|
|
editor_inspector_array->setup_with_move_element_function(object, array_label, array_element_prefix, page, c, use_folding);
|
|
editor_inspector_array->connect("page_change_request", callable_mp(this, &EditorInspector::_page_change_request).bind(array_element_prefix));
|
|
editor_inspector_array->connect("page_change_request", callable_mp(this, &EditorInspector::_page_change_request).bind(array_element_prefix));
|