Age | Commit message (Collapse) | Author |
|
Allow negative `speed_scale` in AnimatedSprite2D & 3D
|
|
If the `speed_scale` is set to a negative value, the animation plays in reverse.
The second parameter of `play()` still reverses as before. if `speed_scale` and the second parameter of `play()` is true, the animation plays forward.
Also updates the documentation to better describe the pausing and playing behaviour.
|
|
Implement `Area[2D/3D].has_overlapping_[bodies/areas]`
|
|
|
|
|
|
|
|
Add the following properties to AnimatedSprite3D:
- `backwards` parameter in `play()`;
- `speed_scale`.
Both classes' internals are more similar, down to the line spacings. They've also been updated to be clearer and less inconsistent (e.g. `!frames.is_valid()` -> `frames.is_null()`, use SceneStringNames instead of CoreStringNames, rename the internal _queue_update to _queue_redraw)
|
|
Fix NavigationObstacle 2D/3D (re)parent issues
|
|
- removes / replaces leftovers from old navigation debug code
- cleanes SceneTree and ProjectSettings from old navigation debug
|
|
calling _edit_get_rect()
|
|
Rename TileMap/GridMap.`world_to_map` and opposite to `local_to_map`
|
|
Rename Camera2D's `*_screen_center` and `*_position` to `get_screen_center_position` and `get_target_position`
|
|
For both TileMap and GridMap:
- `world_to_map` -> `local_to_map`
- `map_to_world` -> `map_to_local`
Also changes any mention of "world" in this context to "local" to avoid future confusion.
Finally, updates the docs of both methods for consistency.
In particular, adding a note on how to convert the returned values from local to global coordinates and vice versa.
|
|
|
|
"less" should be used for quantity, rather than "lesser".
Existing scripts that use `or_lesser` in `_get_property_list()`
will need to be updated to account for this change.
|
|
fixed a type and made it so area3d get_overlapping_x is similar to its counterpart func in area2d so that it uses TypedArray instead of Array and ERR_FAIL_COND_V_MSG instead of no message, also minimized array resize calls
|
|
|
|
|
|
|
|
|
|
Co-authored-by: Resul Çelik <resul_celik@hotmail.com>
|
|
"sampling" is a more accurate term than "interpolating" for what's
happening when using that function.
|
|
|
|
Rename `CanvasItem.update()` to `queue_redraw()`
|
|
|
|
Affects a lot of classes. Very thoroughly checked signal connections and deferred calls to this method, add_do_method/add_undo_method calls, and so on.
Also renames the internal `_update_callback()` to `_redraw_callback()` for consistency.
Just a few comments have also been changed to say "redraw".
In CPUParticles2D, there was a private variable with the same name. It has been renamed to `do_redraw`.
|
|
|
|
|
|
Rename `str2var` to `str_to_var` and similar
|
|
|
|
Affects the Math class, a good chunk of the audio code, and a lot of other miscellaneous classes, too.
- `var2str` -> `var_to_str`
- `str2var` -> `str_to_var`
- `bytes2var` -> `bytes_to_var`
- `bytes2var_with_objects` -> `bytes_to_var_with_objects`
- `var2bytes` -> `var_to_bytes`
- `var2bytes_with_objects` -> `var_to_bytes_with_objects`
- `linear2db` -> `linear_to_db`
- `db2linear` -> `db_to_linear`
- `deg2rad` -> `deg_to_rad`
- `rad2deg` -> `rad_to_deg`
- `dict2inst` -> `dict_to_inst`
- `inst2dict` -> `inst_to_dict`
|
|
|
|
|
|
`get_camera_screen_center` -> `get_screen_center_position`
`get_camera_position` -> `get_target_position`
|
|
Fix AnimatedSprite2D & 3D animation list in inspector
|
|
Also affects their file names, related classes and documentation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Polygon2D.`invert_enable` -> `invert_enabled`
Also affects the setters and getters, which are now named in full instead of cutting "enabled" off.
Updates old leftover documentation slightly, as well.
|
|
Rename Position* nodes to Marker*
|
|
Replace Array return types with TypedArray (part 2)
|
|
Applies for both PathFollow2D and PathFollow3D
|
|
|
|
- Position2D -> Marker2D
- Position3D -> Marker3D
Also changes their respective file names.
|
|
This is a legacy of Godot 2 days before the inspector had support for groups.
"Properties" with a slash in their name can't be accessed from script unless
using `set()`/`get()` so they were not actual properties as far as script
languages are concerned.
Part of #17558.
|
|
|