You've already forked godot
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user