Implement MenuBar control to wrap PopupMenus or native menu, use native menu for editor.
This commit is contained in:
parent
9bb6cc591c
commit
8c56a7416b
25 changed files with 1951 additions and 374 deletions
|
|
@ -2678,7 +2678,7 @@ void SceneTreeDock::_add_children_to_popup(Object *p_obj, int p_depth) {
|
|||
}
|
||||
int index = menu_subresources->get_item_count();
|
||||
menu_subresources->add_icon_item(icon, E.name.capitalize(), EDIT_SUBRESOURCE_BASE + subresources.size());
|
||||
menu_subresources->set_item_horizontal_offset(index, p_depth * 10 * EDSCALE);
|
||||
menu_subresources->set_item_indent(index, p_depth);
|
||||
subresources.push_back(obj->get_instance_id());
|
||||
|
||||
_add_children_to_popup(obj, p_depth + 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue