1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00
Commit Graph

543 Commits

Author SHA1 Message Date
Pāvels Nadtočajevs
36521091aa Do not show Physical in the special key names. 2025-12-04 11:30:57 +02:00
Thaddeus Crews
2ab75a93df Merge pull request #113514 from Ivorforce/required-param-no-refcount
Optimize `RequiredParam` to not increase and decrease refcounts on call.
2025-12-03 16:50:37 -06:00
Lukas Tenbrink
ebc9aebb69 Optimize RequiredParam to not increase and decrease refcounts on call. 2025-12-03 21:21:18 +01:00
Thaddeus Crews
825d0fe94a Merge pull request #113418 from Calinou/inputevent-shortcut-physical-unicode-avoid-nested-parentheses
Avoid nested parentheses in physical/Unicode InputEventKey text conversion
2025-12-03 11:42:22 -06:00
Thaddeus Crews
9f76aa3df5 Merge pull request #113282 from dsnopek/required-ptr-get-out-there
Use `RequiredParam`/`RequiredResult` in some high value places
2025-12-02 20:42:53 -06:00
Pāvels Nadtočajevs
a9ef3e5804 Fix duplicate minus in print output.
Co-authored-by: kleonc <9283098+kleonc@users.noreply.github.com>
2025-12-02 18:58:55 +02:00
David Snopek
fc92ce3e7f Use RequiredParam/RequiredResult in some high value places 2025-12-02 10:44:12 -06:00
Hugo Locurcio
e483d2e2d1 Avoid nested parentheses in physical/Unicode InputEventKey text conversion
This was visible in tooltips displayed in shortcuts, including in the editor itself.

For example, "Forward (W (Physical))" is now displayed as "Forward (W - Physical)".
2025-12-02 16:58:24 +01:00
David Snopek
d95d49ee12 Add RequiredParam<T> and RequiredValue<T> to mark Object * arguments and return values as required
Co-authored-by: Thaddeus Crews <repiteo@outlook.com>
2025-11-24 12:12:09 -06:00
Thaddeus Crews
25cc9ccefb Merge pull request #112577 from timothyqiu/multiple-translations-per-locale
Add methods for querying loaded `Translation` instances
2025-11-21 18:37:24 -06:00
metamuffin
6145b0ca29 Add Image.load_exr_from_buffer and enable tinyexr by default 2025-11-21 18:58:26 +01:00
Haoyu Qiu
ec860ffe4a Add methods for querying loaded Translation instances 2025-11-21 08:51:26 +08:00
Lukas Tenbrink
43a8009a56 Clean up String::find to remove duplicate code, and speed up comparison with memcmp where possible. 2025-11-19 22:39:05 +01:00
Lukas Tenbrink
d7f5c13db8 Add Span equality (== and !=) operators.
Exchange duplicate equality iteration implementations across `Vector` and `String` with the `Span` version, for a speed boost.
2025-11-15 14:21:54 +01:00
Thaddeus Crews
32242dbe4d Merge pull request #112026 from timothyqiu/plural-default
Use more practical default plural rules
2025-11-10 08:19:58 -06:00
Thaddeus Crews
6fd949a6dc Merge pull request #110748 from MauriceButler/project-setting-changed-signal
Add ability to get list of Project Settings changed, similar to Editor Settings functionality
2025-11-07 10:32:39 -06:00
Maurice Butler
ffa2651fbc Added ability to get a list of project settings changed. 2025-11-06 20:15:07 +10:00
aaronp64
fd85c5b378 Add more Dictionary tests
Adding more tests to Dictionary for methods exposed to gdscript
2025-10-31 15:37:05 -04:00
Thaddeus Crews
ae9732139a Merge pull request #109433 from KoBeWi/hastension
Add `has_extension()` method to String
2025-10-31 09:23:30 -05:00
Thaddeus Crews
4725a4bac9 Merge pull request #104793 from YYF233333/remove_astar_stress_test
Remove stress unit tests
2025-10-30 10:46:02 -05:00
Aaron Franke
cc13a376c5 Handle NaN and Infinity in JSON stringify function
Co-authored-by: Thaddeus Crews <repiteo@outlook.com>
Co-authored-by: Lukas Tenbrink <lukas.tenbrink@gmail.com>
2025-10-29 12:06:40 -07:00
Thaddeus Crews
881058009f Merge pull request #111522 from Repiteo/core/to-from-native
Core: Support `INF`/`NAN` in JSON from/to native
2025-10-29 13:13:48 -05:00
DeeJayLSP
a149280cea ClassDB: Use AHashMap for property_setget and constant/signal_map 2025-10-28 16:24:54 -03:00
Haoyu Qiu
d180b9af9f Use more practical default plural rules 2025-10-25 15:50:20 +08:00
Edward Moulsdale
b694fe661f Add unit tests for StreamPeerTCP 2025-10-23 19:57:19 +01:00
Thaddeus Crews
49219de402 Merge pull request #108862 from timothyqiu/plural-rules
Move context and plural support to `Translation`
2025-10-15 16:31:07 -05:00
Thaddeus Crews
b802229423 Core: Support INF/NAN in JSON from/to native 2025-10-13 13:57:55 -05:00
Clay John
8b06cdf277 Revert "Handle NaN and Infinity in JSON stringify function" 2025-10-10 18:22:24 -07:00
Thaddeus Crews
89ce203427 Merge pull request #106997 from Ivorforce/fixed-move-semantics
Fix `FixedVector` move and copy semantics.
2025-10-10 10:26:06 -05:00
Thaddeus Crews
21e5b41642 Merge pull request #108837 from aaronfranke/json-handle-nan-inf
Handle NaN and Infinity in JSON stringify function
2025-10-10 10:25:55 -05:00
Michael Alexsander
fdaf00af0e Fix compilation failure in resource test file 2025-10-07 10:45:00 -03:00
Thaddeus Crews
d1d28c0bcf Merge pull request #111223 from Ivorforce/remove-iterator-include
Replace `std::size` usage with `std_size` to avoid `<iterator>` include.
2025-10-06 09:06:49 -05:00
Lukas Tenbrink
1db0a60dc0 Replace std::size usage with std_size to avoid <iterator> include. 2025-10-05 00:26:11 +02:00
Thaddeus Crews
00f8f62be7 Merge pull request #106084 from Kaleb-Reid/fix-geometry-3d
Fix ghost collisions in segment_intersects_convex()
2025-10-03 12:01:02 -05:00
Thaddeus Crews
93fd5c7ad0 Merge pull request #110907 from beicause/extension-deconstruct-before-object
Free script and extension instance before object deconstructing
2025-09-30 18:35:10 -05:00
Thaddeus Crews
6b22951162 Merge pull request #107954 from stuartcarnie/unix_domain_socket_support
Add Core UNIX domain socket support
2025-09-30 18:35:08 -05:00
Thaddeus Crews
e256771e86 Merge pull request #108836 from aaronfranke/json-grisu
Use num_scientific (Grisu2) when stringifying JSON with full precision
2025-09-30 11:19:12 -05:00
Thaddeus Crews
fdf32d1b2a Merge pull request #108577 from YYF233333/global_class_list
Simplify `ScriptServer::get_global_class_list`
2025-09-30 11:19:10 -05:00
Thaddeus Crews
f6fc2f4a08 Core: Remove skip_cr argument from String 2025-09-28 10:07:24 -05:00
Luo Zhihao
727066fe1f Free script and extension instance before object deconstructing
Co-Authored-By: Lukas Tenbrink <lukas.tenbrink@gmail.com>
2025-09-26 18:15:08 +08:00
Haoyu Qiu
4e80190a46 Move context and plural support to Translation
- `TranslationPO` is now an empty class. It exists for compatibility.
- `OptimizedTranslation` stays the same, no context or plural support.
2025-09-26 10:51:57 +08:00
Haoyu Qiu
e882e42e1b Add default plural rules
This makes the PO loader correctly handle the situation where the optional
`Plural-Forms` header field does not exist.

The `Translation` class and its subclasses always have access to valid plural
rules via `_get_plural_rules()`. Plural rules are prioritized:

1. `Translation.plural_rules_override`
2. `TranslationServer.get_plural_rules(locale)`
3. The English plural rules: `nplurals=2; plurals=(n != 1)`

Co-Authored-By: Pāvels Nadtočajevs <7645683+bruvzg@users.noreply.github.com>
2025-09-26 10:51:57 +08:00
Haoyu Qiu
ebb96e2303 Move plural rules logic into a separate class
- Extracts plural rules logic in `TranslationPO` into a new `PluralRules` class.
- Changes caching the last used plural index in `TranslationPO` into an LRU cache in `PluralRules`.
- Adds tests for `PluralRules`.
2025-09-26 10:51:55 +08:00
Stuart Carnie
7227fdd805 Core: Add UNIX domain socket support
> [!NOTE]
>
> Later versions of Windows has support for `AF_UNIX`, so it could be
> added.
2025-09-26 05:46:19 +10:00
Aaron Franke
a238af4d20 Use num_scientific (Grisu2) when stringifying JSON with full precision 2025-09-24 08:21:37 -07:00
BlueCube3310
666ed1b51c Image: Make fill method also fill the mipmaps 2025-09-23 14:55:04 +02:00
Yufeng Ying
0139ea615c Remove stress unit test. 2025-09-23 00:30:16 +08:00
Thaddeus Crews
8265bb8b6a Merge pull request #110097 from aaronp64/array_tests
Add more `Array` tests
2025-09-19 13:07:13 -05:00
Thaddeus Crews
1e84bc4d9c Merge pull request #108260 from Silver1063/master
Fix modifier order in keycode string generation
2025-09-18 12:42:20 -05:00
Yufeng Ying
a50fc5acd8 Change ClassDB::get_class_list and related stuff. 2025-09-16 15:00:33 +08:00