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

Added visual feedback when drag and dropping from scene tree to file system

This commit is contained in:
Igor Kordiukiewicz
2022-03-03 21:36:56 +01:00
parent d37e8586be
commit 2ed334f95f
2 changed files with 129 additions and 0 deletions

View File

@@ -185,6 +185,13 @@ private:
ItemList *files;
bool import_dock_needs_update;
bool holding_branch = false;
Vector<TreeItem *> tree_items_selected_on_drag_begin;
PackedInt32Array list_items_selected_on_drag_begin;
void _tree_mouse_exited();
void _reselect_items_selected_on_drag_begin(bool reset = false);
Ref<Texture2D> _get_tree_item_icon(bool p_is_valid, String p_file_type);
bool _create_tree(TreeItem *p_parent, EditorFileSystemDirectory *p_dir, Vector<String> &uncollapsed_paths, bool p_select_in_favorites, bool p_unfold_path = false);
Vector<String> _compute_uncollapsed_paths();