Commit Graph

4267 Commits

Author SHA1 Message Date
Hugo Locurcio 04225415c3
Document image size restrictions for custom mouse cursors in HTML5
(cherry picked from commit 296b8f299a)
2023-01-20 12:15:07 +01:00
Rémi Verschelde 161134e969
Merge pull request #71672 from RandomShaper/compat_hooks_3.x
[3.x] Let make_rst.py be forward compatible with 4.0's
2023-01-20 12:12:58 +01:00
Rémi Verschelde f3da393b44
Merge pull request #70378 from Calinou/os-expose-read-from-stdin-3.x
Expose `OS.read_string_from_stdin()` to the scripting API (3.x)
2023-01-20 12:12:35 +01:00
Pedro J. Estébanez 373e545f55 Let make_rst.py be forward compatible with 4.0's 2023-01-19 13:34:21 +01:00
Rémi Verschelde d4f66544ce
Merge pull request #71146 from dalexeev/3.x-fix-sprite-frames-doc
[3.x] Fix wrong `SpriteFrames` docs
2023-01-16 22:22:02 +01:00
Hugo Locurcio badcfa2523
Expose `OS.read_string_from_stdin()` to the scripting API
This can be used in scripts to read user input in a blocking manner.

This also removes the unused `block` argument, which is always `true`.
2023-01-16 11:39:53 +01:00
Jóhannes Gunnar Þorsteinsson e09d4d255e
Add independent spinbox arrow step precision
Backported from the `master` branch, with a property hint added.
2023-01-14 20:14:17 +01:00
Rémi Verschelde 1426cd3b3a
One Copyright Update to rule them all
As many open source projects have started doing it, we're removing the
current year from the copyright notice, so that we don't need to bump
it every year.

It seems like only the first year of publication is technically
relevant for copyright notices, and even that seems to be something
that many companies stopped listing altogether (in a version controlled
codebase, the commits are a much better source of date of publication
than a hardcoded copyright statement).

We also now list Godot Engine contributors first as we're collectively
the current maintainers of the project, and we clarify that the
"exclusive" copyright of the co-founders covers the timespan before
opensourcing (their further contributions are included as part of Godot
Engine contributors).

Also fixed "cf." Frenchism - it's meant as "refer to / see".

Backported from #70885.
2023-01-10 15:26:54 +01:00
Rémi Verschelde 1ee7c5a62c
Merge pull request #62444 from lawnjelly/faster_queue_free3
[3.x] Faster queue free
2023-01-10 10:55:36 +01:00
Danil Alexeev 398ed4efc3
[3.x] Fix wrong `SpriteFrames` docs 2023-01-10 10:02:04 +03:00
Fabio Alessandrelli d0ba1517a7 [Web] Expose API to force file system sync. 2023-01-09 21:30:42 +01:00
Rémi Verschelde 3b7bb812fd
Merge pull request #70310 from Sauermann/3x-fix-follow-viewport-transform
[3.x] Include the follow-viewport-transform into CanvasLayer transform calculations
2022-12-22 08:55:28 +01:00
Rémi Verschelde 76bcc90da8
Merge pull request #70228 from Calinou/add-transparent-viewport-project-setting-3.x
Add a project setting to make the root viewport transparent (3.x)
2022-12-22 08:55:21 +01:00
Markus Sauermann 608cbd8296 Include the follow-viewport-transform into CanvasLayer transform calculations
The follow-viewport-transform was missing from several calculations

3.x version of #59682
2022-12-19 19:18:54 +01:00
Zak f974bcf074 Add `uri` property for LinkButton
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
(cherry picked from commit d73a9b56b0)
2022-12-18 10:43:39 +08:00
smix8 17e6d76de6 Fix Navigation agent callback wild pointer crash
Fixes crash in sanitizer builds when callback agent or object are already freed.

(cherry picked from commit 194c1c44e0)
2022-12-18 10:32:04 +08:00
Hugo Locurcio be3017114f Silence `Input.vibrate_handheld()` warning as it's already documented
The warning causes messages to be spammed if you are calling this
method in a game that runs on both desktop and mobile platforms,
unless you guard all calls to `Input.vibrate_handheld()` with
`OS.has_feature("mobile") or OS.has_feature("web")`.

Since the limitation is already documented (and is obvious enough
given the method's name), the warning message is redundant.

(cherry picked from commit 4a991887bf)
2022-12-18 10:32:04 +08:00
kobewi 9499ebecee Add vector value linking
Co-authored-by: redlamp <244062+redlamp@users.noreply.github.com>
(cherry picked from commit 5553e27fe8)
2022-12-18 10:32:04 +08:00
Hugo Locurcio 65465f309c
Add a project setting to make the root viewport transparent
This allows creating a project with a transparent window without having
to write any script.
2022-12-18 00:38:05 +01:00
Rémi Verschelde 6963ba631e
Fix typos with codespell 2022-12-15 12:26:59 +01:00
Rémi Verschelde 0b7eb2f744
i18n: Sync classref translations with Weblate (3.5 branch)
(cherry picked from commit f5f0543aec)
2022-12-13 14:37:39 +01:00
Rémi Verschelde 2c714f19e5
Merge pull request #65453 from timothyqiu/agent-target-3.x
[3.x] Make NavigationAgent `target_location` a property
2022-12-12 16:07:25 +01:00
Rémi Verschelde 16ad014dd3
Merge pull request #67040 from Calinou/xdg-paths-linux-only-3.x
Only support XDG directory path configuration on Linux (3.x)
2022-12-12 12:27:56 +01:00
Hugo Locurcio 06c266f231
Only support XDG directory path configuration on Linux
This also harmonizes the server code to be consistent with Linux desktop
(with warnings printed for relative XDG paths).

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2022-12-12 11:13:19 +01:00
Hugo Locurcio 4475a93736
Document debanding only affecting 3D rendering by default 2022-12-12 11:01:26 +01:00
Steve Cotton 8770197731 doc: link GPUParticles2D to the 2D Particles demo
Add a comment in the link to the Dodge The Creeps demo too. That demo only uses
particles for one thing (to leave a trail when the player moves), they're not
interacting with anything else in the demo; it took me a bit of searching to
find where they were used.

(cherry picked from commit 6db9752f23)
2022-12-12 14:06:49 +08:00
Haoyu Qiu dd1c96b547 Add note about GROUP_CALL_UNIQUE not considering arguments
(cherry picked from commit 3f2d6f5f6c)
2022-12-12 13:57:28 +08:00
Hugo Locurcio 5115db63aa
Fix BackBufferCopy `rect` property appearing when not relevant in inspector
The `rect` property is only effective if `copy_mode` is Rect.
2022-12-08 20:04:56 +01:00
Hugo Locurcio 9a0a9bbaec Document `Array.sort()` and `sort_custom()` using unstable sorting
(cherry picked from commit 85b617a6a3)
2022-12-04 20:12:27 +08:00
Zak Grumbles aa8c63f8af Add note regarding RefCounted to EditorScript docs
(cherry picked from commit e5dc2ed982)
2022-12-04 20:06:18 +08:00
kobewi 2f13adbdb6 Remove error condition from get_global_transform()
(cherry picked from commit 2ff676a696)
2022-12-01 11:47:52 +08:00
Haoyu Qiu 21856280fa Describe the left mouse button constant as the primary button
(cherry picked from commit f6e9565bdc)
2022-12-01 11:38:54 +08:00
streq a001932790 clarify [member polygons] functionality in the Polygon2D class documentation
(cherry picked from commit de66acc624)
2022-12-01 10:41:59 +08:00
Lyuma 099e90e00d Make Node editable_instance methods available to GDScript
(cherry picked from commit 7eb6ae2798)
2022-12-01 10:15:06 +08:00
Rémi Verschelde 7f0b3bc2a0 Add editor setting for AcceptDialog OK/Cancel buttons positioning
The position (left/right) of the Cancel and OK buttons in AcceptDialog
are DisplayServer specific, as Windows uses OK/Cancel and macOS uses Cancel/OK.

Linux/X11 currently uses the macOS convention which is also the GTK+/GNOME one,
though it's not consistent with Qt/KDE applications which follow the Windows
convention.

Since that can't satisfy everyone, it's best if it's configurable also for the
editor (it's already configurable for the project).

Fixes #59379.

(cherry picked from commit 9bb05de89f)
2022-12-01 09:50:51 +08:00
Ev1lbl0w 6d030f93b7
Document PopupMenu id behavior
(cherry picked from commit b8aa5ebfeb)
2022-11-30 15:44:05 +01:00
voidshine 7284230ebe
Fix MIDI note-on events being converted to note-off events
Update documentation with note about MIDI velocity interpretation

(cherry picked from commit f0f72b3132)
2022-11-30 15:36:03 +01:00
Fireflash 239b2e4bbc
Update AudioStreamGeneratorPlayback.xml
Fixed incorrect method description for `get_frames_available`.
According to [The AudioStreamGenerator source](https://github.com/godotengine/godot/blob/master/servers/audio/effects/audio_stream_generator.cpp#L132), the `get_frames_available` method should return the space remaining in the sample buffer.

(cherry picked from commit 7823ca1367)
2022-11-30 15:05:26 +01:00
lawnjelly edc85d22fc Faster queue free
Calling queue_free() for large numbers of siblings could previously be very slow, with the time taken rising exponentially with number of children. This looked partly due to ordered_remove from the child list and notifications.

This PR identifies objects that are nodes, and sorts the deletion queue so that children are deleted in reverse child order. This minimizes the costs of reordering.
2022-11-25 09:53:50 +00:00
Nonunknown eb5b297fef
add ability to pick random value from array
(cherry picked from commit 9f4dbf415d)

Co-authored-by: BleedingXiko <66162192+BleedingXiko@users.noreply.github.com>
2022-11-14 19:11:41 +01:00
Rémi Verschelde d80396db03
Merge pull request #68556 from 98teg/flow-container-alignment
Add alignment options to flow container
2022-11-14 14:35:46 +01:00
Rémi Verschelde 322bfec275
Merge pull request #68384 from cheece/expose_get_transform_for_eye
expose ARVRInterface::get_transform_for_eye to gdscript
2022-11-14 14:35:39 +01:00
Teggy 5d0c29460a Add alignment options to flow container 2022-11-12 12:11:16 +01:00
avemort 872e36b8f9 expose ARVRInterface::get_transform_for_eye to gdscript 2022-11-10 15:25:07 -03:00
Hugo Locurcio d17d6d6cc4
Document (Omni/Spot)Light ignoring Spatial's scale property 2022-11-09 18:47:09 +01:00
Rémi Verschelde 92aedd5063
Merge pull request #68190 from ztc0611/3.x-ios-promotion
[3.x] Add ProMotion/High Refresh Rate Support to iOS Exports
2022-11-03 11:34:22 +01:00
Zach Coleman e538771d4f [3.x] Add ProMotion Support to iOS Exports 2022-11-02 22:14:34 -04:00
Zach Coleman 5e7b0e3a61 [3.x] Add iOS UI Options 2022-11-02 22:13:18 -04:00
Rémi Verschelde 8f7508ca4d
Merge pull request #68167 from kleonc/shape-cast-get-collider-rid-3x
[3.x] Add `ShapeCast2D/3D::get_collider_rid` method
2022-11-02 23:01:45 +01:00
kleonc 3e373c4eec Add `ShapeCast2D/3D::get_collider_rid` method 2022-11-02 15:20:13 +01:00
kleonc 5f01413774 Docs Clarify Array.fill behavior when reference type is passed in 2022-10-31 17:12:44 +01:00
Matthew eb0b5d38d1
Merge pull request #67649 from Calinou/doc-cylindershape3d-bugs-3.x
Document known issues with CylinderShape (3.x)
2022-10-31 11:47:48 -04:00
Haoyu Qiu 78981d2e0a Make NavigationAgent `target_location` a property 2022-10-31 20:46:38 +08:00
Rémi Verschelde 64635af7ff
Merge pull request #67360 from jordo/PR-expose-property-hints
expose additional global enums in 3.x which are available in master
2022-10-31 12:25:04 +01:00
Rémi Verschelde 20ce0284cf
Merge pull request #67313 from Mickeon/3.x-rename-params
[3.x] Rename `set_indexed` & `get_child`'s params to be clearer
2022-10-31 12:24:58 +01:00
Fredia Huya-Kouadio be4b07c3e4 Add `double_tap` attribute to `InputEventScreenTouch`
This provides parity with the `InputEventMouseButton` allowing for proper conversion between the two events.
2022-10-20 11:56:11 -07:00
Hugo Locurcio 14391ef344
Document known issues with CylinderShape 2022-10-19 23:48:41 +02:00
Jordan Schidlowsky dc5226ecfd expose additional global enums in 3.x which are available in master 2022-10-14 09:33:24 -06:00
Michael Alexsander 6059cf2594 Expose various color themes for `Button` 2022-10-12 18:19:52 -03:00
Micky 6102f3cfc2 [3.x] Rename `set_indexed` & `get_child`'s params to be clearer
3.x backport of #67300 and #64463.
2022-10-12 20:55:41 +02:00
Haoyu Qiu 456c0ecda6 Remove leading spaces from enumerator name hints 2022-10-08 15:23:46 +08:00
Rémi Verschelde ec21ac518a Merge pull request #66971 from timothyqiu/obstacles-pathfinding-3.x
[3.x] Make it clear that obstacles don't affect pathfinding
2022-10-06 17:37:21 +02:00
Haoyu Qiu 1100f217d7 Make it clear that obstacles don't affect pathfinding 2022-10-06 16:08:06 +08:00
Haoyu Qiu 78ea140bb3 Improve StaticBody description 2022-10-06 15:08:16 +08:00
Rémi Verschelde 07f7d6ab73 Merge pull request #64896 from Calinou/doc-editorsettings-3.x
Document editor settings in the class reference
2022-10-05 17:07:56 +02:00
Matthew d81a253f9f
Merge pull request #66855 from Jantho1990/bugfix/update-control-focus-signal-documentation-3.x
update messaging for focus to be less keyboard-specific (3.x)
2022-10-04 17:23:45 -04:00
Rémi Verschelde b3301d22c5 Merge pull request #66168 from Calinou/expose-os-restart-on-exit-3.x
Expose the "restart on exit" OS functionality (3.x)
2022-10-04 16:57:43 +02:00
Josh Anthony e8c92fc7b5 update messaging for focus to be less keyboard-specific
address comments

Put back missing keyboard tags, fix language to match master's version.

match suggested commits from master
2022-10-04 08:55:11 -05:00
Hugo Locurcio b84b003bc3
Document editor settings in the class reference 2022-10-04 00:43:07 +02:00
smix8 f15cb16b14 Fix avoidance calculation on NO_THREADS build 2022-10-03 13:39:48 +02:00
Rémi Verschelde ce0abbe6fb i18n: Sync classref translations with Weblate (3.5 branch)
(cherry picked from commit 8dbd40db65)
2022-09-27 23:52:14 +02:00
Hugo Locurcio 811f814f45
Document Mesh vertex color compression clamping overbright/HDR colors 2022-09-21 20:30:04 +02:00
Rémi Verschelde 6a600b1acd
Merge pull request #66153 from rburing/concave_area_docs_3.x 2022-09-21 13:34:43 +02:00
Hugo Locurcio 76a14cfd02
Expose the "restart on exit" OS functionality
This can be used to restart a project with specific command line arguments
applied. This can work in tandem with `OS.get_cmdline_args()` to restart
with the same command line arguments as used to originally run the project.

Example use cases:

- Restart to apply an user setting change that requires a restart to work.
- Restart with a Godot command line argument to change the video driver,
  audio driver, etc.
2022-09-20 17:27:46 +02:00
Ricardo Buring be5d18163d Document behavior of areas with concave shapes 2022-09-20 11:58:27 +02:00
Voylin 41e63559bb Fixes doc/Makefile fails if path contains spaces
(cherry picked from commit 0fd29f76a2)
2022-09-20 10:26:17 +02:00
kobewi 577b562428 Add more clarifications about Tween processing
(cherry picked from commit 038cb677cb)
2022-09-20 10:26:17 +02:00
Haoyu Qiu 4bc1ea0ac4 Fix typo in CollisionObject documentation 2022-09-20 08:55:18 +08:00
lawnjelly dcf52103a6 Portals - clarify docs VisualInstances only
Makes it more clear in the documentation that some debugger features are expected not to show when portals are active.
2022-09-12 06:29:55 +01:00
Rémi Verschelde 13d99d1676
Merge pull request #65568 from YuriSizov/docs-theme-no-param-woes-3.x 2022-09-09 16:11:21 +02:00
Rémi Verschelde 46104d4886 i18n: Sync classref translations with Weblate (3.5 branch)
(cherry picked from commit 26a28d6bbd)
2022-09-09 14:51:33 +02:00
volokh0x 36bda802e5 Fix typos in Dictionary.xml
(cherry picked from commit ff23defaf8)
2022-09-09 14:11:35 +02:00
kobewi 884f368c24 Improve the description of follow_viewport_enabled
(cherry picked from commit 229e764290)
2022-09-09 14:10:33 +02:00
Yuri Sizov 9496254737 Fix parameter references in Theme documentation 2022-09-09 14:52:24 +03:00
Rémi Verschelde 92fa63886c
Merge pull request #65397 from maximkulkin/3.x-graph-edit-node-selection 2022-09-07 17:52:24 +02:00
Rémi Verschelde d8e590195a Merge pull request #65366 from KoBeWi/3333333_33333_33_3_3333333333
[3.x] Add Dictionary.find_key()
2022-09-06 12:30:11 +02:00
Maxim Kulkin 466c912344 Add GraphNode 'selected' and 'unselected' signals, simplify GraphEdit
Backport of the fix from master to 3.x
2022-09-06 01:35:58 -04:00
kobewi fdbef1c074 Add Dictionary.find_key() 2022-09-05 16:08:41 +02:00
Leonardo Santagada b9eed3a455 Mention an issue with infinite scroll on mirroring of Parallax layer
(cherry picked from commit 74df54a99e)
2022-09-05 15:35:45 +02:00
BenniKane c030cc1ef6 doc: Clarifying NavigationAgent and NavigationAgent2D velocity_computed requires avoidance_enabled to be true to emit
(cherry picked from commit ed5b832a81)
2022-09-05 15:35:45 +02:00
kobewi 739919469e Mention that grab_focus is more reliable deferred
(cherry picked from commit 188d5593e1)
2022-09-05 15:35:45 +02:00
Hugo Locurcio ac31fac9a5
Improve documentation related to audio input permissions 2022-09-03 01:36:55 +02:00
Rémi Verschelde 2ee933bb77
Merge pull request #64920 from lawnjelly/bind_physics_interpolation
Bind Physics Interpolation functions in VisualServer
2022-08-30 22:02:58 +02:00
lawnjelly 96a1b86717 Bind Physics Interpolation functions in VisualServer
To allow maximum flexibility in the initial rollout, VisualServer functions were not bound in order to prevent compatibility issues if the API changed.

These functions are now bound to allow direct use from the VisualServer.
2022-08-30 18:06:12 +01:00
QbieShay acdcbefa4e added options for sorting transparent objects
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
Co-authored-by: Clay John <claynjohn@gmail.com>
2022-08-30 13:39:32 +02:00
Atlinx f624acef42 Add missing parameters for signal in docs
(cherry picked from commit 0e3097c023)
2022-08-30 11:05:37 +02:00
Haoyu Qiu 9644e9a046 Fix missing URL text in the classref
(cherry picked from commit a90c348a86)
2022-08-29 15:45:30 +02:00
Haoyu Qiu fed2879463 Improve documentation for `get_animation()` 2022-08-29 14:56:26 +08:00
Rémi Verschelde 47da910fcb
Merge pull request #64965 from YeldhamDev/more_hl_stuff_bp 2022-08-29 08:05:54 +02:00
Rémi Verschelde 8551d5875e
Merge pull request #64707 from YeldhamDev/tabs_button_expose
Expose `set/get_tab_button_icon()` to scripting
2022-08-28 23:29:58 +02:00
Michael Alexsander 1e80b17a8d Fix some corner cases in the `Menu/OptionButton` item auto-highlight 2022-08-28 01:45:08 -03:00
Yuri Sizov 72d1156286 Remove Inspector tooltip hack that never actually worked 2022-08-26 17:12:46 +03:00
Rémi Verschelde 0b4e600f2b
Merge pull request #64895 from Calinou/editor-help-add-kbd-tag-3.x 2022-08-25 21:43:22 +02:00
Hugo Locurcio ed380cc0fa
Add a `[kbd]` tag for highlighting keyboard shortcuts in the editor help
This allows backporting documentation from the `master` branch more easily,
as it already features the `[kbd]` tag.

Co-authored-by: Yuri Sizov <11782833+YuriSizov@users.noreply.github.com>
2022-08-25 19:53:49 +02:00
Hugo Locurcio 576da2bd50
Remove unused Create Signal Callbacks editor setting
This setting wasn't referred to anywhere.
2022-08-25 19:22:12 +02:00
Rémi Verschelde 6358e41772
Merge pull request #64838 from akien-mga/3.x-cherrypicks
Cherry-picks for the 3.x branch (future 3.6) - 2nd batch
2022-08-25 00:51:19 +02:00
Rémi Verschelde fd08545a59
Merge pull request #64579 from marcinn/backport-panning-strength
[3.x] Backport panning strength parameters from 4.0
2022-08-24 23:55:28 +02:00
Danil Alexeev bf33de769a Add boot splash display time setting
Implements #8867.

(cherry picked from commit dad9683d11)
2022-08-24 17:30:00 +02:00
Hugo Locurcio a53264ab41 Add support for documenting most editor settings in the class reference
Settings defined in editor plugins are missing (about 100 of them),
but all other settings (about 200 of them) can now be documented in the
EditorSettings class.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
(cherry picked from commit 63ce655e75)
2022-08-24 17:22:48 +02:00
Micky cfa9b772da Improve documentation of CanvasItem's draw logic
(cherry picked from commit 953c78eaff)
2022-08-24 17:15:56 +02:00
kobewi a0fc7e80d9 Mention the stretching behavior of PopupPanel
(cherry picked from commit a2b088b1c1)
2022-08-24 17:15:23 +02:00
Dan Boorstein 09fb05bc05 Add note about using AudioListener2D
There was no mention of the effect of AudioListener2D in this documentation, making it unclear if there was a relationship. The new text is copied and modified from the AudioStreamPlayer3D documentation.

Use 'an' as article before 'AudioListener3D'

(cherry picked from commit a7ebc6fb18)
2022-08-24 17:12:17 +02:00
Marlin Watts-Woods ddb568731a Added to Sprite3D Documentation
(cherry picked from commit f8f665b03e)
2022-08-24 17:10:08 +02:00
Hugo Locurcio 637330b866 Improve InstancePlaceholder documentation
(cherry picked from commit 5acf30b538)
2022-08-24 17:08:55 +02:00
Marcin Nowak 90762b9660 [3.x] Backport panning strength parameters from 4.0 2022-08-23 23:27:51 +02:00
Rémi Verschelde aeabd3dcb9
Merge pull request #64740 from Calinou/doc-anisotropic-filter-3.x
Improve documentation related to anisotropic filtering (3.x)
2022-08-23 09:16:55 +02:00
Rémi Verschelde 812caa5f44
Merge pull request #58601 from Calinou/material-triplanar-sharpness-clamp-3.x 2022-08-22 22:21:59 +02:00
David Snopek d3ae6566b4 Minor improvements to NetworkedMultiplayerCustom.xml 2022-08-22 12:29:14 -05:00
Hugo Locurcio d2ef3bf8a6
Improve documentation related to anisotropic filtering 2022-08-22 18:40:40 +02:00
Michael Alexsander 73470e1b16 Expose `set/get_tab_button_icon()` to scripting 2022-08-22 11:08:38 -03:00
Olivier Bombardier c988deb3b1 Fix has_filter of AnimationNode not being called in scripts 2022-08-21 17:37:59 -04:00
Yuri Sizov 39f46613bb Backport fixes to documentation for paths, curves and navigation servers 2022-08-19 15:52:03 +03:00
Andy Maloney 4ee4c7954a [doc 3.x] Clarify that AnimationNode virtual methods need to be implemented rather than called directly
Backport of #64344

Fixes #35272
2022-08-17 12:17:28 -04:00
Max Hilbrunner 84358e1381
Merge pull request #64390 from Calinou/doc-scenetree-debug-no-runtime-change-3.x
Document run-time SceneTree debug property changes not working correctly (3.x)
2022-08-17 14:54:25 +02:00
Aaron Franke cac69ea132
[3.x] Fix incorrect Camera3D size documentation 2022-08-14 16:06:57 -05:00
Hugo Locurcio 3396f45eef
Document run-time SceneTree debug property changes not working correctly 2022-08-14 15:07:06 +02:00
Haoyu Qiu 93493843b0 Document `outline` parameter of `Font.draw_char()` 2022-08-12 10:18:51 +08:00
Haoyu Qiu 2d93718cd2 Add clear method to pool arrays 2022-08-10 17:31:29 +08:00
kobewi 520d341836 Add root_subfolder to FileDialog 2022-08-08 19:50:41 +02:00
Rémi Verschelde 6eee83579a
Merge pull request #64101 from timothyqiu/subsecond 2022-08-08 16:31:49 +02:00
Rémi Verschelde 4f1dc83b0d
Merge pull request #64044 from Calinou/add-torusmesh-3.x 2022-08-08 15:37:58 +02:00
Rémi Verschelde 7dc8ec0c61
Merge pull request #63643 from aaronfranke/3.x-mouse-mode-ch 2022-08-08 14:36:45 +02:00
Haoyu Qiu 1be078ebcb Fix Time.get_unix_time_from_system() not including msecs 2022-08-08 20:31:51 +08:00
Cristiano Simao 0e5a99390e doc: Clarify `MultiMesh.set_instance_color` re: white albedo color
If the user does not set the albedo color to pure white, then the
multiplication with a value different from 1 will produce modulated colors.

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
(cherry picked from commit 1f6709d6e3)
2022-08-08 10:52:14 +02:00
Hugo Locurcio f12f59ef0f Fix broken rST reference in HTTPClient documentation
References in reStructuredText cannot be located within bold/italic
text. This caused the online class reference to have the `:ref:`
text written as-is.

(cherry picked from commit 9709205112)
2022-08-08 09:47:37 +02:00
Tom 295b531e3d updated the String class with info about the 'allow_empty' optional argument
(cherry picked from commit 39233c299c)
2022-08-08 09:45:47 +02:00
Hugo Locurcio 60031ea275 Improve `range_lerp()` and related methods documentation
(cherry picked from commit bd19c9a95c)
2022-08-08 09:44:37 +02:00
Rémi Verschelde d29451b400
Merge pull request #63984 from Calinou/doc-shape2d-custom-solver-bias-3.x 2022-08-07 16:06:55 +02:00
Hugo Locurcio 373e3dffb4
Improve Shape2D's `custom_solver_bias` description 2022-08-07 12:51:04 +02:00
hoontee 53adb2a142
Add `TorusMesh` 2022-08-07 12:42:24 +02:00
Rémi Verschelde 9be7c49a5d
doc: Fix version number after PR merge 2022-08-06 09:20:18 +02:00
Rémi Verschelde ab7e2564f3
Merge pull request #63659 from PrecisionRender/add-shape-cast-3d
[3.x] Add `ShapeCast` and `ShapeCast2D` nodes
2022-08-06 00:33:29 +02:00
Rémi Verschelde 0bed7ea63f
Merge pull request #61316 from bruvzg/tts_3x
[3.x] Backport text-to-speech support.
2022-08-05 23:45:51 +02:00
Rémi Verschelde 0dccbcd7ce
Merge pull request #61878 from bruvzg/backport_locale_select
[3.x] Backport locale selection improvements.
2022-08-05 23:45:17 +02:00
Rémi Verschelde 14c9325b5d
Merge pull request #62408 from Razoric480/raz/fix-no-cache
[3.x] Fix nested resources being cached if no-cache argument used
2022-08-05 23:43:54 +02:00
Rémi Verschelde d9d3861f76
Merge pull request #55764 from tinmanjuggernaut/validate_rid
[3.x] Validate RIDs before freeing
2022-08-05 22:38:49 +02:00
Rémi Verschelde daa5b542b4
Merge pull request #56765 from madmiraal/fix-45592-2-3.x
[3.x] Fix mouse speed not changing fast enough
2022-08-05 22:37:44 +02:00
Rémi Verschelde 61b5e35de5
Merge pull request #61559 from kleonc/triangle_mesh_from_triangle_strip_or_fan_3x
[3.x] Make `Mesh::generate_triangle_mesh()` handle `PRIMITIVE_TRIANGLE_STRIP` and `PRIMITIVE_TRIANGLE_FAN`
2022-08-05 22:35:52 +02:00
Rémi Verschelde 906a693934
Merge pull request #53852 from Calinou/particles-allow-negative-scale
Allow negative scale in Particles and CPUParticles
2022-08-05 22:34:43 +02:00
Rémi Verschelde 5d3b6eb073
Merge pull request #48372 from Calinou/gradienttexture-add-hdr-property-3.x
Add an `use_hdr` property to GradientTexture to allow storing HDR colors (3.x)
2022-08-05 22:33:44 +02:00
Rémi Verschelde ef7502e1d4
Merge pull request #50540 from Calinou/material-hide-triplanar-subproperties-when-disabled-3.x 2022-08-05 19:39:19 +02:00
Rémi Verschelde 26762a71b6
Merge pull request #58537 from winterpixelgames/feature/virtual-keyboard-types-3.x 2022-08-05 19:37:13 +02:00
Rémi Verschelde 0a8d5d7098 Bump version to 3.6-beta 2022-08-05 18:51:38 +02:00
Rémi Verschelde b671ea88fb i18n: Sync classref translations with Weblate 2022-08-05 03:12:25 +02:00
Matt eba8ce7d8c adds null case to weakref docs
(cherry picked from commit dc4e72a3fc)
2022-08-03 15:01:30 +02:00
Hugo Locurcio 8543c5599c
Document Camera's frustum offset property requiring Frustum projection 2022-08-03 02:45:05 +02:00
Rémi Verschelde 751b16a285 File: Re-add support to skip CR (`\r`) in `File::get_as_text`
This was removed in #63481, and we confirmed that it's better like this,
but we add back the possibility to strip CR as an option, to optionally
restore the previous behavior.

For performance this is done directly in `String::parse_utf8`.

Also fixes Android `FileAccess::get_line()` as this one _should_ strip CR.

Supersedes #63717.

(cherry picked from commit 1418f97c70)
2022-08-01 00:40:55 +02:00
PrecisionRender 47a62e28ac [3.x] Add `ShapeCast` and `ShapeCast2D` nodes 2022-07-30 10:23:58 -05:00
Rémi Verschelde 284dbef733
Merge pull request #63639 from twobitadder/scenetree_docs_how_do_i_rebase
updated SceneTree docs to include information on passing in null
2022-07-30 11:22:40 +02:00
Rémi Verschelde 4a8d3bf129
Merge pull request #63649 from snailrhymer/meshinstance-fix
Fix typo in MeshInstance.xml
2022-07-30 09:21:51 +02:00
SnailRhymer eb7ce02239 Fix typo in MeshInstance.xml 2022-07-29 22:21:22 +01:00
twobit 359205f7d7 updated scenetree docs to include information on passing in null 2022-07-29 15:47:53 -04:00
David Snopek 5eaf83f2d7 Add error messages and docs to explain restrictions when calling NetworkedMultiplayerCustom.initialize() 2022-07-29 13:51:44 -05:00
Aaron Franke 0d6e2d1090
Add MOUSE_MODE_CONFINED_HIDDEN to MouseMode enum 2022-07-29 13:46:04 -05:00
David Snopek 738e76b710 Add error messages and docs to explain allowed transitions in NetworkedMultiplayerCustom.set_connection_status() 2022-07-29 09:02:53 -05:00
pattlebass fb7ecc748f [3.x] HTML5: Add support for `Input.vibrate_handheld()` 2022-07-28 13:20:05 +03:00
Rémi Verschelde 516d6b6bad i18n: Sync classref translations with Weblate 2022-07-27 15:55:38 +02:00
Rémi Verschelde 76440fe1aa doc: Fix relative paths in `make_rst.py` generated comment
Follow-up to #63495.

(cherry picked from commit f66527ddc3)
2022-07-27 15:29:28 +02:00
Yuri Sizov ff7554413b Improve the autogenerated note in RST docs for class reference
(cherry picked from commit f3561696da)
2022-07-27 15:29:27 +02:00
Andy Maloney 7c06b9b670 Add missing Python type hints in tools/make_rst.py
(cherry picked from commit 4b3d6f04a8)
2022-07-27 15:24:15 +02:00
Rémi Verschelde d3e9ed10e0 doc: Fixup reference to Camera 2022-07-25 14:53:22 +02:00
Zak Grumbles 967755980f Improve documentation for Camera3D's `current` member
* Added additional information to the camera documentation to explain
  how the 'current' attribute behaves when multiple cameras are in a
  scene.

(cherry picked from commit 349c750b18)
2022-07-25 11:44:09 +02:00
Derwent Ready (drentsoft) 12968f3107 Clarified usage of TreeItem get_next*() and get_prev*() functions.
(cherry picked from commit df5a922880)
2022-07-25 11:43:41 +02:00
Hugo Locurcio ed4976d1d5
Expose `VisualServer.viewport_set_use_32_bpc_depth()` to the scripting API
Previously, only the Viewport methods/properties were exposed to the
scripting API.
2022-07-23 03:52:38 +02:00
Rémi Verschelde 4ef99b409d
Merge pull request #63163 from dsnopek/multiplayer-peer-custom-3.x 2022-07-20 22:41:15 +02:00
David Snopek 8ad5889c1a Add NetworkedMultiplayerCustom so high-level multiplayer backends can be added from GDScript 2022-07-19 09:16:41 -05:00
BimDav ab644a9913 Add option in VisibilityEnabler2D to hide the parent for better performance 2022-07-19 10:56:47 +02:00
Hugo Locurcio b03ceaba2f
Document support limitations for OmniLight cubemap shadows in GLES2 2022-07-18 22:18:56 +02:00
Rémi Verschelde 7379f2c76a i18n: Sync classref translations with Weblate 2022-07-18 10:21:37 +02:00
Rémi Verschelde 5aa22a21be
Merge pull request #63058 from AaronRecord/backport-global-position-rotation 2022-07-18 09:33:23 +02:00
Rémi Verschelde 1995e1fb8d
Merge pull request #62850 from Calinou/doc-httprequest-timeout-3.x 2022-07-18 09:19:38 +02:00
foxydevloper 5238740fef Add global_translation and global_rotation to Spatial 2022-07-15 21:39:35 -06:00
Rémi Verschelde 101cbe5d5b
Merge pull request #62723 from hansemro/eraser-detect-3.x 2022-07-15 00:13:15 +02:00
Francois Belair 2ceb93bbef Fix custom res caching sub-res even if no-cache
Fixes #59686, fixes #59752
2022-07-13 11:18:26 -04:00
Hugo Locurcio 28b9e376cf
Improve documentation for HTTPRequest's `timeout` property 2022-07-08 23:25:06 +02:00
Rémi Verschelde 685cecbd5f AudioStreamPlayer: Clarify that no validation is made on 'bus' name
Supersedes #39605.
Fixes #39585.

(cherry picked from commit eedb729771)
2022-07-08 16:41:41 +02:00
Rémi Verschelde f05cecdc43
Merge pull request #55650 from kdiduk/pooled-arrays 2022-07-08 00:15:44 +02:00
Kirill Diduk 7b8b91f505 [GDScript][GDNative] Add 'sort' and 'has' methods to pooled arrays
This is a backport from 4.0 to 3.x that adds 'sort' and 'has' methods
to the following types:
- PoolByteArray
- PoolIntArray
- PoolRealArray
- PoolStringArray
- PoolVector2Array
- PoolVector3Array
- PoolColorArray

For all the types above, the methods 'sort' and 'has' have been
exposed to the GDNative API (v. 1.3)

Since the method 'has' was already implemented in GDScript before,
in this commit it has been only exposed to GDNative API.

The classes documentation is updated.

The method 'sort' uses the exisging class "Sorter".

Pooled arrays in 4.0 are rewritten, that's why this backport is not
completely indentical to the original PR made for 4.0 (see #32144).
2022-07-07 23:24:31 +02:00
Rémi Verschelde d6bcdd18c3 Input: Re-enable input accumulation disabled by error in 3.4
Input accumulation was implemented and enabled by default in 3.1, and
I don't recall major complaints around it (or bugs were fixed).

In 3.4, #42220 added input buffering and apparently toggled input
accumulation off by mistake.

This led to multiple bug reports about degraded performance on Windows,
or simply unexpected behavior change (see linked issues in #55037).

Fixes #55037.
2022-07-07 23:04:51 +02:00
Brian Semrau ce24b48e50 Add support for multiple virtual keyboard types 2022-07-07 14:22:28 -04:00
Haoyu Qiu e170ddadef Fix cherry-pick mistakes in SceneTreeTween doc 2022-07-07 00:51:50 +08:00
Rémi Verschelde 417f20f06c i18n: Sync classref translations with Weblate 2022-07-06 15:04:01 +02:00
Jean-Marc Pelletier ee227b9d09 StyleBox: Document correct methods to draw with a RID
(cherry picked from commit 63d5f31561)
2022-07-06 11:43:04 +02:00
Hansem Ro 193d5c11f3 [3.x, macOS, Windows, X11] Add stylus inverted/eraser support to InputEventMouseMotion event 2022-07-04 16:12:11 -07:00
bruvzg a8eb779ac3
Backport locale selection improvements. 2022-07-04 11:49:20 +03:00
Rémi Verschelde 7de45b6203 Input: Document that accumulated input is disabled by default
This was actually disabled by mistake in 3.4 causing a regression, but since
this issue survived the whole 3.4.x series and it's now very close to 3.5,
it's too late to change it again.

We might consider it for 3.6 after some beta testing.

Fixes #55037.
2022-07-03 12:00:26 +02:00
Rémi Verschelde df70aa1772
Merge pull request #57566 from Calinou/viewport-shadow-atlas-clamp-sizes 2022-07-03 03:08:03 +02:00
Rémi Verschelde 3d19f21576
Merge pull request #49967 from Calinou/viewport-2d-hdr-print-warning 2022-07-03 02:41:26 +02:00
Rémi Verschelde 86229d0b03
Merge pull request #54239 from Calinou/editor-directionallight-3d-only-show-relevant-properties-3.x
Only show relevant properties in the DirectionalLight inspector (3.x)
2022-07-03 02:02:10 +02:00
saneery cb94797ce4 Add process_mode property to InterpolatedCamera 2022-07-03 01:47:10 +02:00