summaryrefslogtreecommitdiff
path: root/scene/2d
diff options
context:
space:
mode:
authorMicky <micheledevita2@gmail.com>2022-08-25 12:04:05 +0200
committerMicky <micheledevita2@gmail.com>2022-08-26 12:11:52 +0200
commitec963788ccff00ccb403d2b9aca83ae4a15355cf (patch)
treea966404f2a1cd4b8ff2e0b269cb441f2bf96662e /scene/2d
parent8769088f48a9acc7a28a55ceeba86cdcd6ba3a42 (diff)
Rename Camera2D's `screen_center` and `*_position`
`get_camera_screen_center` -> `get_screen_center_position` `get_camera_position` -> `get_target_position`
Diffstat (limited to 'scene/2d')
-rw-r--r--scene/2d/camera_2d.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/2d/camera_2d.cpp b/scene/2d/camera_2d.cpp
index 88f9c2a4a6..d9bf9c1c57 100644
--- a/scene/2d/camera_2d.cpp
+++ b/scene/2d/camera_2d.cpp
@@ -701,8 +701,8 @@ void Camera2D::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_drag_margin", "margin", "drag_margin"), &Camera2D::set_drag_margin);
ClassDB::bind_method(D_METHOD("get_drag_margin", "margin"), &Camera2D::get_drag_margin);
- ClassDB::bind_method(D_METHOD("get_camera_position"), &Camera2D::get_camera_position);
- ClassDB::bind_method(D_METHOD("get_camera_screen_center"), &Camera2D::get_camera_screen_center);
+ ClassDB::bind_method(D_METHOD("get_target_position"), &Camera2D::get_camera_position);
+ ClassDB::bind_method(D_METHOD("get_screen_center_position"), &Camera2D::get_camera_screen_center);
ClassDB::bind_method(D_METHOD("set_zoom", "zoom"), &Camera2D::set_zoom);
ClassDB::bind_method(D_METHOD("get_zoom"), &Camera2D::get_zoom);