Show theme property descriptions in the inspector
(cherry picked from commit 7a0e813ffa
)
This commit is contained in:
parent
82bee3f993
commit
843948b69d
|
@ -1707,6 +1707,18 @@ void EditorInspector::update_tree() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Vector<String> slices = propname.operator String().split("/");
|
||||||
|
if (slices.size() == 2 && slices[0].begins_with("custom_")) {
|
||||||
|
// Likely a theme property.
|
||||||
|
for (int i = 0; i < F->get().theme_properties.size(); i++) {
|
||||||
|
if (F->get().theme_properties[i].name == slices[1]) {
|
||||||
|
descr = F->get().theme_properties[i].description.strip_edges();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!F->get().inherits.empty()) {
|
if (!F->get().inherits.empty()) {
|
||||||
F = dd->class_list.find(F->get().inherits);
|
F = dd->class_list.find(F->get().inherits);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue