mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Unfold tree items on hover while drag-n-dropping
Co-authored-by: suddjian
This commit is contained in:
parent
1f7630f1bf
commit
26745b4b87
11 changed files with 82 additions and 4 deletions
|
|
@ -650,6 +650,8 @@ private:
|
|||
int parent_hl_line_margin = 0;
|
||||
int draw_guides = 0;
|
||||
|
||||
int dragging_unfold_wait_msec = 500;
|
||||
|
||||
int scroll_border = 0;
|
||||
int scroll_speed = 0;
|
||||
|
||||
|
|
@ -737,6 +739,11 @@ private:
|
|||
|
||||
bool enable_recursive_folding = true;
|
||||
|
||||
bool enable_drag_unfolding = true;
|
||||
Timer *dropping_unfold_timer = nullptr;
|
||||
void _on_dropping_unfold_timer_timeout();
|
||||
void _reset_drop_mode_over();
|
||||
|
||||
bool enable_auto_tooltip = true;
|
||||
|
||||
bool hovered_update_queued = false;
|
||||
|
|
@ -885,6 +892,9 @@ public:
|
|||
void set_enable_recursive_folding(bool p_enable);
|
||||
bool is_recursive_folding_enabled() const;
|
||||
|
||||
void set_enable_drag_unfolding(bool p_enable);
|
||||
bool is_drag_unfolding_enabled() const;
|
||||
|
||||
void set_drop_mode_flags(int p_flags);
|
||||
int get_drop_mode_flags() const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue