diff options
author | Igor Kordiukiewicz <igorkordiukiewicz@gmail.com> | 2022-03-03 21:36:56 +0100 |
---|---|---|
committer | Igor Kordiukiewicz <igorkordiukiewicz@gmail.com> | 2022-03-06 21:36:15 +0100 |
commit | 2ed334f95fa67b5ef9451a44ff7820b1164e6b9c (patch) | |
tree | a657b1c518cfa733b65ae74641b6baa16218f935 /editor/filesystem_dock.h | |
parent | d37e8586becf5e3abda5d3b13a06e4fd664364bc (diff) | |
download | redot-engine-2ed334f95fa67b5ef9451a44ff7820b1164e6b9c.tar.gz |
Added visual feedback when drag and dropping from scene tree to file system
Diffstat (limited to 'editor/filesystem_dock.h')
-rw-r--r-- | editor/filesystem_dock.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/editor/filesystem_dock.h b/editor/filesystem_dock.h index 21c50beeb2..d457c6acd4 100644 --- a/editor/filesystem_dock.h +++ b/editor/filesystem_dock.h @@ -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(); |