add descriptions for item properties in inspector

This commit is contained in:
Priyansh Rathi 2022-03-11 11:48:05 +05:30
parent 1c51fd48db
commit 810e914676
No known key found for this signature in database
GPG key ID: 8AB1FB727C1DBA82

View file

@ -2857,6 +2857,20 @@ void EditorInspector::update_tree() {
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()) {