Commit Graph

507 Commits

Author SHA1 Message Date
8c06dce33f Now PROPERTY_HINT_BUTTON adds the property's name as the called method's first parameter. 2024-02-25 22:09:25 +01:00
0edc5438dd Re-extracted class docs. 2024-02-25 10:26:26 +01:00
66c2b12fc0 Added a new method to Expression so it can be used with multiple threads simultenously. 2024-02-25 10:25:46 +01:00
a5d8696021 Ported: Vertex cache optimizer
Optimizes indices to make good use of vertex cache on GPU.
- lawnjelly
0aa22b8f13
2024-02-08 21:35:01 +01:00
c3c6d64a50 Portred: Add MergeGroup node to simplify merging Meshes at runtime.
- lawnjelly
8b79135538
2024-02-08 21:00:07 +01:00
5d2a594843 Ported: Shadow volume culling and tighter shadow caster culling
Existing shadow caster culling using the BVH takes no account of the camera. This PR adds the highly encapsulated class VisualServerLightCuller which can cut down the casters in the shadow volume to only those which can cast shadows on the camera frustum.
This is used to:
* More accurately defer dirty updates to shadows when the shadow volume does not intersect the camera frustum.
* Tighter cull shadow casters to the view frustum.
Lights dirty state is now automatically managed:
* Continuous (tighter caster culling)
* Static (all casters are rendered)
- lawnjelly
8ca631a466
2024-02-08 18:40:44 +01:00
Mikael Klasson
6fa76aca7e Fix invalid Python escape sequences
(cherry picked from commit 4986d6d317e592db86603ae14a72fe0a96a3f538)
2024-02-08 15:20:50 +01:00
lawnjelly
f09cdf5954 Portals - include in bound and special cases in start room
* Re-introduces a property for portals to decide whether they are included in room bounds during room conversion.
* Adds a special case for portals that extend into the start room, which may be caused by level design inaccuracies.
2024-02-08 15:10:00 +01:00
Rémi Verschelde
b44ee23cee Web: Clarify that OS.get_unique_id is not supported
Remove the base error message in `OS`, we no longer really error out this
way for not implemented methods. Instead, each platform should override them
to provide the context they want.

Fixes #82439.

(cherry picked from commit 0a10f09ce4321695940a626eef9c64b36f599193)
2024-02-08 15:05:20 +01:00
Micky
e53dcc1432 Mention InputEventJoypadButton's pressure not working 2024-02-08 14:57:01 +01:00
Zach Coleman
92a8e047e0 Add APP_PAUSED and APP_RESUMED MainLoop notifications 2024-02-08 14:49:18 +01:00
kleonc
b952bfcc36 Document some Image methods can unlock it (making set_pixel fail) 2024-02-08 14:47:00 +01:00
Micky
fa226ade2a Rewrite most of Resource's documentation 2024-02-08 14:35:34 +01:00
Cody Roberts
eb8ca6d2ed Add project settings for AVAudioSessionCategory on iOS
Co-authored-by: Georg Wacker <contact@georgwacker.com>
2024-02-08 14:06:59 +01:00
DylanCheetah
d04de8ef62 Implement UWP version of OS.get_unique_id function. 2024-02-08 13:59:32 +01:00
bef218d7e4 Fix some of the missing docs for String. 2024-01-10 20:11:04 +01:00
2f53a26f36 Re-extracted class docs. 2023-12-25 20:20:30 +01:00
e44c46d7a9 Fixed include paths, compile errors and some code style. 2023-12-25 20:00:07 +01:00
db08e3c8b9 Re-extracted class docs. 2023-12-23 00:54:40 +01:00
0d6f38b317 Re-extracted class docs. 2023-12-22 19:49:04 +01:00
cf76e6debf Fix the doc descriptions where they got lost due to adding StringName to Variants. Also fixed smaller issues where I ran into them. 2023-12-21 00:48:25 +01:00
Fredia Huya-Kouadio
6713693291 Add Android project settings for gesture support
- Include project setting to enable long press for Android devices
- Include project setting to enable pan and scale gestures on Android devices
2023-12-20 23:08:39 +01:00
0146de37da Initial docs for the WindowServer. 2023-12-12 14:55:38 +01:00
2c78ecad0f Re-extracted docs for PLogger. 2023-12-12 14:52:01 +01:00
4628e5354e Reworked the wide mode setting for the filesystem dock. Now the code is more flexible and less error prone. 2023-10-20 17:02:41 +02:00
3b8f836a41 Re-extracted class docs. 2023-10-20 15:06:38 +02:00
2e7709185a Added a new CSplitContainer type which acts as both a VSplitContainer and HSplitContainer and allows changing between them using a property. 2023-10-20 15:06:23 +02:00
e6ee1f0c0f Added a new CBoxContainer type which acts as both a VBoxContainer and HBoxContainer and allows changing between them using a property. 2023-10-20 13:44:43 +02:00
a2f1f2925f Added docs for the 2 new editor properties. 2023-10-12 02:12:20 +02:00
93a2081a58 Re-extracted class docs. 2023-10-12 01:59:32 +02:00
b4692f1763 Port4ed from godot: Add binary MO translation file support. Add brotli decoder and WOFF2 support.
Use smaller .mo files instead of .po, if gettext is available.
Convert editor fonts to .woff2 format.
- bruvzg
fd2fba7c2c
2023-10-02 21:12:03 +02:00
23a71e54e5 Added back the translations from godot. 2023-10-02 20:03:52 +02:00
59ae5c4662 Ported from godot: add support for 3 dir shadow splits
- Ansraer
54bc6a300e
2023-10-02 18:12:54 +02:00
cc012d3f92 Ported from godot: CPUParticles2D - Add ability to follow physics interpolated target
Allows a non-interpolated particle system to closely follow an interpolated target without tracking ahead of the target, by performing fixed timestep interpolation on the particle system global transform, and using this for emission.
- lawnjelly
3e19cf834a
2023-10-02 17:49:41 +02:00
Hugo Locurcio
a80ecfcd3a Mark debugger limits settings as requiring a restart
These settings are only read once on engine initialization.
2023-10-02 16:42:00 +02:00
ca105c2f88 Added class docs for the new SubProcess class. 2023-09-10 12:37:33 +02:00
70db9caf20 Re-extracted class docs. Also fixed smaller issues. 2023-09-10 08:42:24 +02:00
b572af1287 Small fixes to ScriptServer's docs. 2023-09-10 08:30:35 +02:00
e31c09d1f4 Small fixes to the docs. 2023-09-10 08:26:35 +02:00
9207afc6cb Added run, create_process and create_instance helper methods to OS. Inspired by godot4's split of execute. 2023-09-10 08:20:35 +02:00
4637f73099 Backported the shortcut context system from godot4. 2023-09-07 12:57:34 +02:00
9a2bf73280 Backported _shortcut_input() virtual from godot4. 2023-09-07 09:56:16 +02:00
8ff20ba6e3 Added docs for StringName. 2023-09-06 20:49:07 +02:00
7fab5e4c25 Implemented a literal syntax for NodePaths in GDScript I decided on using godot4's (^). The doc already said it's '@' but that was wrong. 2023-09-06 20:45:01 +02:00
91f98e39a1 Also added doc for SceneTree::get_first_node_in_group(). 2023-09-06 15:21:26 +02:00
deb5c49700 Backported the new output window from godot4. 2023-09-06 13:08:24 +02:00
b506468b53 Revert "Backport implement loading DDS textures at run-time"
This reverts commit 4b76c7e89c.

Apparently it can cause issues.
2023-09-06 09:13:08 +02:00
0a9c9ca15e Ported godot pr: [3.x] Allow exporting custom resources from/to any scripting language (GDScript, VisualScript, C#, NativeScript, PluginScript)
- willnationsdev
https://github.com/godotengine/godot/pull/44879
Using the rebased version from 02d1f70ee5 by Atlinx
2023-09-06 01:45:29 +02:00
2a7a431c94 Replace navigation demo locations. 2023-09-05 12:42:59 +02:00
102ef3ac12 Backported from godot4: Add navigation tutorial links inside class doc
Adds navigation tutorial links inside the class doc to the related and more detailed godot-docs pages.
- smix8
7506ecc5d9
2023-09-05 09:32:40 +02:00
43c11fcdf5 Backported from godot4: Fix typo and ensure backwards compatibility for changed property names
Changes to the name of the `navmesh` and `navpoly` properties on
`NavigationRegion` caused navigation data to be lost on load.
This PR creates uses `_set`/`_get` to handle compatibility with the
older names on load, preserving the data.
Also fixes a typo on `get_vertices_per_polygon` in `NavigationMesh`,
and renames the property to remove the `polygon_` prefix which doesn't
match the setter/getter.
- DarkKilauea, akien-mga
0572346985
2023-09-05 09:13:54 +02:00
54acfac5e2 Backported from godot4: NavigationAgent2D, NavigationAgent3D typo fixes
Fixed minor spelling errors in the NavigationAgent2D and NavigationAgent3D classes.
- JustinDodemaide
29a228595c
2023-09-05 08:16:03 +02:00
1e5f9895e7 Backported from godot4: Remove SceneTree debug avoidance hint
Removes SceneTree debug avoidance hint.
- smix8
f1d8ddd9bd
2023-09-04 21:43:06 +02:00
a222159442 Backported from godot4: Add NavigationServer API to enable regions and links
Adds NavigationServer API to enable regions and links.
- smix8
69fad39cf5
2023-09-04 20:22:28 +02:00
b37e0e6a4e Backported from godot4: Update navigation obstacle API
Updates navigation obstacle API.
- smix8
c1fc331b88
2023-09-04 19:55:32 +02:00
aeb4d3fbe2 Backported from godot4: Add agent pause mode to NavigationServer
Adds agent pause mode to NavigationServer.
- smix8
https://github.com/godotengine/godot/commit/ae9dd47d0c1c237d0733439862aa5ff651dcac2
2023-09-04 19:04:29 +02:00
2f036edcc5 Backported from godot4: Fix cell_height for navigation meshes
Fixes `cell_height` for navigation meshes.
- smix8
180a5cded1
2023-09-04 18:34:15 +02:00
c326722a65 Backported from godot4: Allow negative NavigationAgent2D path debug line_width for thin lines
Allows the line_width for NavigationAgent2D path debug to go negativ for thin line rendering.
- smix8
f6a10c0565
2023-09-04 18:03:12 +02:00
493af67f7a Backported from godot4: Add detail to NavigationAgent signal descriptions
Adds detail to NavigationAgent signal descriptions.
- smix8
99e70ab6ef
2023-09-04 17:55:11 +02:00
8485b37515 Ported from godot4: Fix Navigation API abbreviations inconsistency
Schema for navigation to name user facing API with  "navigation" without abbreviation and e.g. NavigationServer internals with abbr "nav".
- smix8
34e7628f5f
2023-09-04 17:09:39 +02:00
b4dbd26415 Backported from godot4: Expose NavigationAgent path postprocessing and pathfinding algorithm options
Exposes the path postprocessing and pathfinding algorithm options of the NavigationAgent internal NavigationPathQueryParameters object.
- smix8
6e324bb341
2023-09-03 10:12:41 +02:00
a516cf2e1b Backported from godot4: Tweak NavigationAgent3D defaults
Tweaks default values for NavigationAgent3D to work better out of the box within a new 3D project.
- smix8
8be4af38e4
2023-09-03 09:43:32 +02:00
9fd4b941e2 Backported from godot4: Unbind NavigationServer3D.process()
Unbinds NavigationServer3D.process().
- smix8
f1026450bf
2023-09-03 09:26:48 +02:00
935ed3c807 Backported from godot4: Tweak NavigationAgent2D defaults
Tweaks default values for NavigationAgent2D to work better out of the box within a new 2D project using default resolution.
- smix8
594ffd2200
2023-09-03 09:14:50 +02:00
6ff5c5f7f3 Added missing doc for NavigationPolygon's cell_size. 2023-09-02 14:01:54 +02:00
e6e30d2f27 Backported from godot4: Disable NavigationMesh edge_max_length property by default
Disables NavigationMesh edge_max_length property by default.
- smix8
c63125c317
2023-09-02 13:46:13 +02:00
697d4a32fc Backported from godot4: Change 2D navigation ProjectSettings from integers to floats
Changes 2D navigation ProjectSettings from integers to floats.
- smix8
2852fb43f7
2023-09-02 13:38:20 +02:00
76488d4381 Also add docs for the newly bound methods. 2023-09-02 12:26:15 +02:00
eb8943a4f6 Backported from godot4: Add Path2D/3D debug options
- smix8
e12e239ab4
2023-09-02 11:38:01 +02:00
5d93975c8d Ported: Fix custom res caching sub-res even if no-cache
-Razoric480
2ceb93bbef
2023-08-30 12:55:37 +02:00
Hugo Locurcio
7a49ea5bda Document the database for Input.get_joy_name() and Input.get_joy_guid()
(cherry picked from commit 922d2b7034fb1655f489fce502a3eb5eadf801f2)
2023-08-30 11:03:43 +02:00
stmSi
ec6ed1f398 Added note to used set_deferred while setting scroll values in _ready function.
(cherry picked from commit 83626ab90db2dee1152d3e147e44aac658b92067)
2023-08-30 10:58:44 +02:00
Ninni Pipping
971ae4eb5d Add information about how Engine.time_scale affects Timers
(cherry picked from commit 16a1465380df708edebffc53c77011cd771f6b91)
2023-08-30 10:53:33 +02:00
Hugo Locurcio
e3c9959aa6 Document custom mouse cursors larger than 128×128 potentially having issues
(cherry picked from commit 92730fb07dbeb7e3640d0bed60c9b9033bc30577)
2023-08-30 10:53:03 +02:00
86c9343349 Updated the links in the docs. 2023-08-29 22:33:15 +02:00
889cba3244 Added back missing descriptions to Translation's class docs. 2023-08-29 22:17:16 +02:00
65d4c57233 Added translate_to() method to TranslationServer, and trt() method to Object. This let's you transalte strings into specific (noon app wide) locales. 2023-08-29 22:02:31 +02:00
17fa82ac02 Ported: Add debug_canvas_item_get_local_bound() function to VisualServer
Useful for debugging hierarchical culling.
- lawnjelly
61e41cc9a1
2023-08-27 19:00:01 +02:00
d977ed360e Ported: 2D Fixed Timestep Interpolation
Adds support to canvas items and Camera2D.
- lawnjelly
5162efbfe9
2023-08-27 18:48:25 +02:00
Luke Hubmayer-Werner
f80e276363 PulseAudio: Remove get_latency() caching 2023-08-27 12:14:00 +02:00
puzzud
21d78d77f6 Prevent double input events on gamepad when running through steam input #79706
Co-authored-by: Eoin O'Neill <eoinoneill1991@gmail.com>
2023-08-27 11:47:35 +02:00
Marcin Nowak
4b76c7e89c Backport implement loading DDS textures at run-time 2023-08-27 11:31:12 +02:00
8ed3b41865 Re-extracted class docs. 2023-08-26 22:41:21 +02:00
3244eab5c5 Fix docs for the write lock part of the RWLock, as it's not re-entrant. 2023-07-06 21:46:45 +02:00
bbbcfacd84 Re-extracted class docs. 2023-07-06 21:17:58 +02:00
be022b610f Bind RWLock, so it's accessible to scripts. 2023-07-06 21:17:13 +02:00
5b869f8b54 Ported from godot: Canvas item hierarchical culling
Adds optional hierarchical culling to the 2D rendering (within VisualServer).
Each canvas item maintains a bound in local space of the item itself and all child / grandchild items. This allows branches to be culled at once when they don't intersect a viewport.
- lawnjelly
b777a9e5f9
2023-06-28 20:25:48 +02:00
75ceb22100 Revert "Add option in VisibilityEnabler2D to hide the parent for better performance"
This reverts commit ad6e504a5b.
2023-06-28 19:00:29 +02:00
ee54ca3808 Ported from godot: Input - fix just pressed and released with short presses
Previously if an action was both pressed and released on the same tick or frame, `is_action_just_pressed()` would return false, resulting in missed input.

This PR separately the timestamp for pressing and releasing so each can be tested independently.

- lawnjelly

63d208d1b0
2023-06-28 12:48:36 +02:00
83468ef10b Added missing descriptions to Input's class docs from godot. 2023-06-28 12:39:36 +02:00
Ninni Pipping
e492213868 Add example for NodePath to grandparent 2023-06-28 12:23:49 +02:00
Ninni Pipping
c25ea39a3b Clarify String.get_slice behavior
Clarify that the function returns the whole string if there is no
instances of the delimiter in the string.
2023-06-28 12:23:28 +02:00
Patrick
78bc0eeb97 Backport VideoLooping and fix for initial black frame 2023-06-28 12:22:49 +02:00
1a5cba555c Backported godot4 PR: Support threads in the script debugger
* This implementation adds threads on the side of the client (script debugger).
* Some functions of the debugger are optimized.
* The profile is also now thread safe using atomics.
* The editor can switch between multiple threads when debugging.
This PR adds threaded support for the script language debugger. Every thread has its own thread local data and it will connect to the debugger using multiple thread IDs.
This means that, now, the editor can receive multiple threads entering debug mode at the same time.
- reduz
PR 76582
Will be available here after it's merged:
6b176671c4
2023-06-14 14:43:55 +02:00
4b9989b553 Committing small change on test docs re-extraction. 2023-06-13 18:20:18 +02:00
fe56b4c6b5 Fixed up the remaining newly extracted class doc xmls. 2023-06-13 18:19:02 +02:00
24df83cd32 Added more newly extracted class docs. 2023-06-13 17:55:03 +02:00
8d679355df Re-extracted class docs pt3. 2023-06-13 17:34:41 +02:00
a7f1f3356c Re-extracted class docs pt2. 2023-06-13 16:51:37 +02:00
ee6f207b0d Re-extracted class docs pt1. 2023-06-13 15:22:43 +02:00