diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-25 11:59:11 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-25 11:59:11 +0100 |
commit | fc400d15627a70c1138bdbfb1ee1f9de472e9ae9 (patch) | |
tree | b0c051532b56e8d7f40216d844e5dde4726f2b5a /editor/plugins/polygon_2d_editor_plugin.h | |
parent | 4368191a9f9c6290805dd4094c36379776128338 (diff) | |
parent | a3b431b09d1d11b31feb40fed0785c85e753069c (diff) |
Merge pull request #71685 from groud/gesture_into_viewpanner
Add gesture to ViewPanner and simplify a bit its API
Diffstat (limited to 'editor/plugins/polygon_2d_editor_plugin.h')
-rw-r--r-- | editor/plugins/polygon_2d_editor_plugin.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/editor/plugins/polygon_2d_editor_plugin.h b/editor/plugins/polygon_2d_editor_plugin.h index 7246c08bea..2c55a5f631 100644 --- a/editor/plugins/polygon_2d_editor_plugin.h +++ b/editor/plugins/polygon_2d_editor_plugin.h @@ -90,9 +90,8 @@ class Polygon2DEditor : public AbstractPolygon2DEditor { TextureRect *uv_icon_zoom = nullptr; Ref<ViewPanner> uv_panner; - void _uv_scroll_callback(Vector2 p_scroll_vec, bool p_alt); - void _uv_pan_callback(Vector2 p_scroll_vec); - void _uv_zoom_callback(Vector2 p_scroll_vec, Vector2 p_origin, bool p_alt); + void _uv_pan_callback(Vector2 p_scroll_vec, Ref<InputEvent> p_event); + void _uv_zoom_callback(float p_zoom_factor, Vector2 p_origin, Ref<InputEvent> p_event); VBoxContainer *bone_scroll_main_vb = nullptr; ScrollContainer *bone_scroll = nullptr; |