Commit Graph

379 Commits

Author SHA1 Message Date
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
d4175f9676 Ported parts of : Refactor Node Processing
* Node processing works on the concept of process groups.
* A node group can be inherited, run on main thread, or a sub-thread.
* Groups can be ordered.
* Process priority is now present for physics.
This is the first steps towards implementing godotengine/godot-proposals#6424.
No threading or thread guards exist yet in most of the scene code other than Node. That will have to be added later.
- reduz
98c655ec8d
- Only got the smaller improvements, and the thread safety for Node and SceneTree. I'm planning to implement a similar system, but I have a different way of doing it in mind.
2023-06-12 21:13:26 +02:00
de1763d40d Renamed neighbor_dist properties / getters / setters for the navigation server. 2023-06-12 08:37:57 +02:00
3afa1142b9 Merged the functionality of BSInputEventKey to InputEventKey. This new setting can make input event keys act as if they are shortcut matched. 2023-06-11 16:06:09 +02:00
37fa118ec4 Ported: Adds a scale_gizmo_handles entry to the Touchscreen editor settings
When enabled, this scales the editor icons to improve usability on touchscreen devices.
In addition this commit fixes touch detection for the collision_shape_2d_editor_plugin so it scales with the icons size.
- m4gr3d
b78935ef51
2023-06-11 13:16:13 +02:00
d6f5dd35e8 Ported: Enable granular control of touchscreen related settings
- m4gr3d
61e41facc7
2023-06-11 12:57:25 +02:00
3331a7ae04 Ported: Augment the InputEvent class with a CANCELED state
The `InputEvent` class currently supports the `pressed` and `released` states, which given the binary nature, is represented by a `bool` field.
This commit introduced the `CANCELED` state, which signals that an ongoing input event has been canceled.
To represent all the states, the `InputEventState` enum is added and the `InputEvent` logic is refactored accordingly.
- m4gr3d
94d6c3dcc6
2023-06-11 10:26:23 +02:00
7e64510427 Ported: Add setting to control the window used to run the project for the Android editor
The follow options were added to the (new) `run/window_placement/android_window` editor setting:

- `Auto`: choose how to run the project based on the device screen size
- `Same as Editor`: run the project in the same window as the editor
- `Side-by-side with Editor`: run the project in an adjacent window to the editor
- m4gr3d
b5a908c985
Removed my force launch adjacent solution in favor of this.
2023-06-11 09:52:39 +02:00
ShadyChibinko
38bb088c1e Add Tab Metadata 2023-06-11 09:19:03 +02:00
SysError99
830ad2a71d Improve tooltip for CanvasLayer.layer (3.x) 2023-06-11 09:18:20 +02:00
Aaron Franke
a0a6843a25 Fix small mistake in docs, "antecedents" -> "ancestors" 2023-06-11 09:13:12 +02:00
needleful
cfabdb87f0 Add allow_search property to ItemList and Tree 2023-06-11 09:12:26 +02:00
Ninni Pipping
92fe699254 Clarify range of various ID values are 32 bit 2023-06-11 09:10:45 +02:00
MJacred
3227a23031 Warn against using non-uniform scale for 3D physics (in class reference only)
partial backport of #67847
fixes #56824
2023-06-11 09:04:25 +02:00
David Snopek
90100df0b1 Minor improvements to NetworkedMultiplayerCustom.xml 2023-06-11 08:55:49 +02:00
Ryan Roden-Corrent
2a8d12ad59 Fix docs on multiplayer peer signals.
NetworkedMultiplayerPeerENet emits peer_connected and peer_disconnected
on both the client and the server:
6fed1ffa31/modules/enet/networked_multiplayer_enet.cpp (L268)

When trying to implement `NetworkedMultiplayerCustom`, I followed the
documentation and only emitted this signal on the server.
I ended up getting errors like:

```
Invalid packet received. Unabled to find requested cached node
```

While I didn't check other peer implementations, it seems that emitting
on both the client and server is required.

I copied the wording from the `master` branch documentation.

Here's some output from a test program with all the signals connected:
```
1948301815 got multiplayer.network_peer_connected from  1
1948301815 got peer.peer_connected from 1
1948301815 got multiplayer.connected_to_server
1948301815 got peer.connection_succeeded
1413532890 got multiplayer.network_peer_connected from  1
1413532890 got peer.peer_connected from 1
1413532890 got multiplayer.connected_to_server
1413532890 got peer.connection_succeeded
1 got multiplayer.network_peer_connected from  1413532890
1 got peer.peer_connected from 1413532890
1 got multiplayer.network_peer_connected from  1948301815
1 got peer.peer_connected from 1948301815
1413532890 got multiplayer.network_peer_connected from  1948301815
1413532890 got peer.peer_connected from 1948301815
1948301815 got multiplayer.network_peer_connected from  1413532890
1948301815 got peer.peer_connected from 1413532890
1 got multiplayer.network_peer_disconnected from  1948301815
1 got peer.peer_disconnected from 1948301815
1413532890 got multiplayer.network_peer_disconnected from  1948301815
1413532890 got peer.peer_disconnected from 1948301815
1 got multiplayer.network_peer_disconnected from  1413532890
1 got peer.peer_disconnected from 1413532890
```
2023-06-11 08:52:06 +02:00
Ninni Pipping
7579d990c1 Fix NodePath subname index range documentation 2023-06-11 08:50:06 +02:00
05e1c55e1c Ported: Document 3D particle color properties requiring vertex color as albedo
- Calinou
c65967c17f
2023-06-11 00:50:20 +02:00
a0e5645d18 Fix godot4 syntax in docs. 2023-06-10 21:10:45 +02:00
f058c87868 Backported from godot4: Rework Navigation Avoidance
Rework Navigation Avoidance.
- smix8
a6ac305f96
2023-06-10 20:58:49 +02:00
8b18898609 Backported from godot4: Rework const on NavigationServer methods
`const` is used on all methods, even when they cause modification of the server.  This reworks the methods of the server to only use `const` on method that don't change the state of the server.
- DarkKilauea
a0715b30f9
2023-06-09 22:03:42 +02:00