mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
[GraphEdit] Improve UI control scheme by separating scroll_offset from scroll bars
This commit is contained in:
parent
666d7c030b
commit
b55b9fe352
2 changed files with 46 additions and 23 deletions
|
|
@ -228,6 +228,10 @@ private:
|
|||
float zoom_min = 0.0;
|
||||
float zoom_max = 0.0;
|
||||
|
||||
Vector2 min_scroll_offset;
|
||||
Vector2 max_scroll_offset;
|
||||
Vector2 scroll_offset;
|
||||
|
||||
bool box_selecting = false;
|
||||
bool box_selection_mode_additive = false;
|
||||
Point2 box_selecting_from;
|
||||
|
|
@ -327,9 +331,9 @@ private:
|
|||
void _ensure_node_order_from_root(const StringName &p_node);
|
||||
void _ensure_node_order_from(Node *p_node);
|
||||
|
||||
void _update_scroll();
|
||||
void _update_scrollbars();
|
||||
void _update_scroll_offset();
|
||||
void _scroll_moved(double);
|
||||
void _scrollbar_moved(double);
|
||||
virtual void gui_input(const Ref<InputEvent> &p_ev) override;
|
||||
void _top_connection_layer_input(const Ref<InputEvent> &p_ev);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue