Skip to content

Commit a8848f4

Browse files
authored
Add missing manual renames from editor's renames_map (#9849)
* Add missing manual renames from editor's renames_map
1 parent 77a9ebc commit a8848f4

File tree

1 file changed

+49
-2
lines changed

1 file changed

+49
-2
lines changed

tutorials/migrating/upgrading_to_godot_4.rst

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,10 @@ a ``3D`` suffix to the old name:
228228
+-----------------------------------------+-------------------------------------------+
229229
| ARVRServer | XRServer |
230230
+-----------------------------------------+-------------------------------------------+
231+
| BoxShape | BoxShape3D |
232+
+-----------------------------------------+-------------------------------------------+
233+
| CapsuleShape | CapsuleShape3D |
234+
+-----------------------------------------+-------------------------------------------+
231235
| CubeMesh | BoxMesh |
232236
+-----------------------------------------+-------------------------------------------+
233237
| EditorSpatialGizmo | EditorNode3DGizmo |
@@ -414,36 +418,56 @@ table to find its new name.
414418
- AcceptDialog's ``set_autowrap()`` is now ``set_autowrap_mode()``.
415419
- AnimationNode's ``process()`` is now ``_process()``
416420
(note the leading underscore, which denotes a virtual method).
421+
- AnimationPlayer's ``add_animation()`` is now ``add_animation_library()`` and now uses an :ref:`class_AnimationLibrary`.
422+
- AnimationTree's ``set_process_mode()`` is now ``set_process_callback()``.
423+
- Array's ``empty()`` is now ``is_empty()``.
424+
- Array's ``invert()`` is now ``reverse()``.
425+
- Array's ``remove()`` is now ``remove_at()``.
417426
- AStar2D and AStar3D's ``get_points()`` is now ``get_points_id()``.
418427
- BaseButton's ``set_event()`` is now ``set_shortcut()``.
428+
- Camera2D's ``get_h_offset()`` is now ``get_drag_horizontal_offset()``.
419429
- Camera2D's ``get_v_offset()`` is now ``get_drag_vertical_offset()``.
430+
- Camera2D's ``set_h_offset()`` is now ``set_drag_horizontal_offset()``.
420431
- Camera2D's ``set_v_offset()`` is now ``set_drag_vertical_offset()``.
432+
- CanvasItem's ``raise()`` is now ``move_to_front()``.
421433
- CanvasItem's ``update()`` is now ``queue_redraw()``.
434+
- Control's ``get_stylebox()`` is now ``get_theme_stylebox()``.
422435
- Control's ``set_tooltip()`` is now ``set_tooltip_text()``.
423436
- EditorNode3DGizmoPlugin's ``create_gizmo()`` is now ``_create_gizmo()``
424437
(note the leading underscore, which denotes a virtual method).
425438
- ENetMultiplayerPeer's ``get_peer_port()`` is now ``get_peer()``.
426439
- FileDialog's ``get_mode()`` is now ``get_file_mode()``.
427440
- FileDialog's ``set_mode()`` is now ``set_file_mode()``.
428441
- GraphNode's ``get_offset()`` is now ``get_position_offset()``.
429-
- GridMap's ``world_to_map()`` is now ``local_to_map()``.
430442
- GridMap's ``map_to_world()`` is now ``map_to_local()``.
443+
- GridMap's ``world_to_map()`` is now ``local_to_map()``.
431444
- Image's ``get_rect()`` is now ``get_region()``.
445+
- ImmediateGeometry's ``set_normal()`` is now ``surface_set_normal()``.
446+
- ImmediateMesh's ``set_color()`` is now ``surface_set_color()``.
447+
- ImmediateMesh's ``set_uv()`` is now ``surface_set_uv()``.
432448
- ItemList's ``get_v_scroll()`` is now ``get_v_scroll_bar()``.
433449
- MultiPlayerAPI's ``get_network_connected_peers()`` is now ``get_peers()``.
434450
- MultiPlayerAPI's ``get_network_peer()`` is now ``get_peer()``.
435451
- MultiPlayerAPI's ``get_network_unique_id()`` is now ``get_unique_id()``.
436452
- MultiPlayerAPI's ``has_network_peer()`` is now ``has_multiplayer_peer()``.
453+
- MultiplayerAPI's ``is_refusing_new_network_connections()`` is now ``is_refusing_new_connections()``.
437454
- PacketPeerUDP's ``is_listening()`` is now ``is_bound()``.
438455
- PacketPeerUDP's ``listen()`` is now ``bind()``.
439456
- ParticleProcessMaterial's ``set_flag()`` is now ``set_particle_flag()``.
457+
- PhysicsTestMotionResult2D's ``get_motion()`` is now ``get_travel()``.
458+
- RenderingServer's ``get_render_info()`` is now ``get_rendering_info()``.
440459
- ResourceFormatLoader's ``get_dependencies()`` is now ``_get_dependencies()``
441460
(note the leading underscore, which denotes a virtual method).
461+
- ResourceFormatLoader's ``load()`` is now ``_load()``.
442462
- SceneTree's ``change_scene()`` is now ``change_scene_to_file()``.
443463
- Shortcut's ``is_valid()`` is now ``has_valid_event()``.
444-
- TileMap's ``world_to_map()`` is now ``local_to_map()``.
445464
- TileMap's ``map_to_world()`` is now ``map_to_local()``.
465+
- TileMap's ``world_to_map()`` is now ``local_to_map()``.
446466
- Transform2D's ``xform()`` is ``mat * vec`` and ``xform_inv()`` is ``vec * mat``.
467+
- XRPositionalTracker's ``get_name()`` is now ``get_tracker_name()``.
468+
- XRPositionalTracker's ``get_type()`` is now ``get_tracker_type()``.
469+
- XRPositionalTracker's ``_set_name()`` is now ``get_tracker_name()``.
470+
447471

448472
**Properties**
449473

@@ -454,11 +478,29 @@ table to find its new name.
454478
and PathFollow3D's ``set_offset()`` and ``get_offset()`` must be renamed to
455479
``set_progress()`` and ``get_progress()`` respectively.
456480

481+
- AudioServer's ``device`` is now ``output_device``.
482+
- BaseButton's ``group`` is now ``button_group``.
483+
- Camera3D's ``zfar`` is now ``far``.
484+
- Camera3D's ``znear`` is now ``near``
457485
- Control's ``margin`` is now ``offset``.
486+
- InputEventMouseButton's ``doubleclick`` is now ``double_click``.
487+
- InputEventWithModifiers's ``alt`` is now ``alt_pressed``.
488+
- InputEventWithModifiers's ``command`` is now ``command_pressed``.
489+
- InputEventWithModifiers's ``control`` is now ``ctrl_pressed``.
490+
- InputEventWithModifiers's ``meta`` is now ``meta_pressed``.
491+
- InputEventWithModifiers's ``shift`` is now ``shift_pressed``.
458492
- Label's ``percent_visible`` is now ``visible_ratio``.
459493
- MultiPlayerAPI's ``refuse_new_network_connections`` is now ``refuse_new_connections``.
494+
- Node's ``filename`` is now ``scene_file_path``.
495+
- PathFollow2D's ``rotate`` is now ``rotates``.
460496
- PathFollow2D and PathFollow3D's ``offset`` is now ``progress``.
497+
- RectangleShape2D's ``extents`` is now ``size``
461498
- TextureProgressBar's ``percent_visible`` is now ``show_percentage``.
499+
- Theme's ``off`` is now ``unchecked``.
500+
- Theme's ``ofs`` is now ``offset``.
501+
- Theme's ``on`` is now ``checked``.
502+
- Window's ``window_title`` is now ``title``.
503+
- WorldMarginShape2D's ``d`` is now ``distance``.
462504
- The ``extents`` property on CSG nodes and VoxelGI will have to be replaced
463505
with ``size``, with the set value halved (as they're no longer half-extents).
464506
This also affects its setter/getter methods ``set_extents()`` and
@@ -467,6 +509,7 @@ table to find its new name.
467509
``Engine.is_editor_hint()`` *method*. This is because it's read-only, and
468510
properties in Godot are not used for read-only values.
469511

512+
470513
**Enums**
471514

472515
- CPUParticles2D's ``FLAG_MAX`` is now ``PARTICLE_FLAG_MAX``.
@@ -660,6 +703,10 @@ converter doesn't support updating existing setups:
660703
+---------------------+-----------------------+ |
661704
| DynamicFontData | FontFile | |
662705
+---------------------+-----------------------+----------------------------------------------------------------------------+
706+
| ClippedCamera | Camera2D or Camera3D | Camera's pyramid shape was moved to :ref:'class_Camera3D'. |
707+
+---------------------+-----------------------+ |
708+
| InterpolatedCamera | Camera2D or Camera3D | |
709+
+---------------------+-----------------------+----------------------------------------------------------------------------+
663710
| Navigation2D | Node2D | Replaced by :ref:`other 2D Navigation nodes <doc_navigation_overview_2d>`. |
664711
+---------------------+-----------------------+----------------------------------------------------------------------------+
665712
| Navigation3D | Node3D | Replaced by :ref:`other 3D Navigation nodes <doc_navigation_overview_3d>`. |

0 commit comments

Comments
 (0)