mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
Properly show the property name on tooltip
This commit is contained in:
parent
045451e58d
commit
e62e7fd768
@ -1324,7 +1324,11 @@ void EditorInspector::update_tree() {
|
||||
ep->connect("multiple_properties_changed", this, "_multiple_properties_changed");
|
||||
ep->connect("resource_selected", this, "_resource_selected", varray(), CONNECT_DEFERRED);
|
||||
ep->connect("object_id_selected", this, "_object_id_selected", varray(), CONNECT_DEFERRED);
|
||||
ep->set_tooltip(doc_hint);
|
||||
if (doc_hint != String()) {
|
||||
ep->set_tooltip(TTR("Property: ") + p.name + "\n\n" + doc_hint);
|
||||
} else {
|
||||
ep->set_tooltip(TTR("Property: ") + p.name);
|
||||
}
|
||||
ep->set_draw_red(draw_red);
|
||||
ep->set_checkable(checkable);
|
||||
ep->set_checked(checked);
|
||||
|
Loading…
Reference in New Issue
Block a user