1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-21 14:57:09 +00:00

Implement MenuBar control to wrap PopupMenus or native menu, use native menu for editor.

This commit is contained in:
bruvzg
2022-08-01 12:28:16 +03:00
parent 9bb6cc591c
commit 8c56a7416b
25 changed files with 1951 additions and 374 deletions

View File

@@ -72,7 +72,7 @@ void EditorPath::_add_children_to_popup(Object *p_obj, int p_depth) {
int index = sub_objects_menu->get_item_count();
sub_objects_menu->add_icon_item(icon, proper_name, objects.size());
sub_objects_menu->set_item_horizontal_offset(index, p_depth * 10 * EDSCALE);
sub_objects_menu->set_item_indent(index, p_depth);
objects.push_back(obj->get_instance_id());
_add_children_to_popup(obj, p_depth + 1);