1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Expose PopupMenu set/get_item_horizontal_offset()

- Renames setter from set_item_h_offset()
- Adds getter
This commit is contained in:
FireForge
2022-06-15 00:04:42 -05:00
parent 15740c37a3
commit f85eb4164a
5 changed files with 27 additions and 4 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_h_offset(index, p_depth * 10 * EDSCALE);
sub_objects_menu->set_item_horizontal_offset(index, p_depth * 10 * EDSCALE);
objects.push_back(obj->get_instance_id());
_add_children_to_popup(obj, p_depth + 1);