add descriptions for item properties in inspector
This commit is contained in:
parent
1c51fd48db
commit
810e914676
1 changed files with 14 additions and 0 deletions
|
@ -2857,6 +2857,20 @@ void EditorInspector::update_tree() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else if (slices.size() == 2 && slices[0].begins_with("item_")) {
|
||||||
|
for (int i = 0; i < F->get().methods.size(); i++) {
|
||||||
|
if (F->get().methods[i].name == "set_item_" + slices[1]) {
|
||||||
|
descr = DTR(F->get().methods[i].description);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (slices.size() == 2 && slices[0].begins_with("tab_")) {
|
||||||
|
for (int i = 0; i < F->get().methods.size(); i++) {
|
||||||
|
if (F->get().methods[i].name == "set_tab_" + slices[1]) {
|
||||||
|
descr = DTR(F->get().methods[i].description);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!F->get().inherits.is_empty()) {
|
if (!F->get().inherits.is_empty()) {
|
||||||
|
|
Loading…
Reference in a new issue