Rename Camera2D offset_h and offset_v properties #44232
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As identified here and here, currently,
Camera2D
has anoffset
property, anoffset_h
property and anoffset_v
property. Theoffset
property sets the viewport of the camera relative to its position. Theoffset_h
andoffset_v
properties control the relative position of the viewport within the drag margins (when enabled).This PR groups all the drag properties together in the editor and renames the following and their underlying methods and variables:
offset_h
->drag_horizontal_offset
offset_v
todrag_vertical_offset
drag_margin_h_enabled
->drag_horizontal_enabled
drag_margin_v_enabled
->drag_vertical_enabled
drag_margin_left
->drag_left_margin
drag_margin_top
->drag_top_margin
drag_margin_right
->drag_right_margin
drag_margin_bottom
->drag_top_bottom
Part of #16863.