Commit graph

30521 commits

Author SHA1 Message Date
Rémi Verschelde
68e4454c31
Merge pull request #41960 from Calinou/doc-sprite3d
Update and complete the Sprite3D and SpriteBase3D class documentations
2020-09-27 08:44:25 +02:00
Rémi Verschelde
c844cc8251
Merge pull request #42016 from HaSa1002/docs-lang-2
Translate GDScript Code Examples to C# (Classes beginning with C)
2020-09-26 23:36:16 +02:00
Rémi Verschelde
bfd5b58223
Merge pull request #42356 from RandomShaper/fix_gdscript_inf_loop
Avoid infinite loop in GDScript at shutdown
2020-09-26 23:20:31 +02:00
Pedro J. Estébanez
de4e54dd91 Avoid infinite loop in GDScript at shutdown 2020-09-26 19:21:09 +02:00
Rémi Verschelde
84cec777c1
Merge pull request #40978 from HaSa1002/docs-code-1
Port code examples to C# of classes beginning with A and B
2020-09-26 12:42:42 +02:00
HaSa1002
c5aded55df Add C# code examples to the docs
Only existing GDScript code examples are converted and added to the
docs.
This is the first batch include classes beginning with A and B.

Included classes:
 * AcceptDialog
 * AESContext
 * Animation
 * AnimationNodeStateMachine
 * AnimationNodeStateMachinePlayback
 * AnimationNodeStateMachineTransition
 * Array
 * ArrayMesh
 * AStar
 * AStar2D
 * Bool
 * Button
2020-09-26 12:29:55 +02:00
HaSa1002
ae873ab822 Translate GDScript Code Examples to C# (C)
Translates Code Examples in classes beginning with `C`.

Includes:
 * Callable
 * CanvasItem
 * CharFXTransform
 * Color
 * ColorRect
 * ConfigFile
 * ConfirmationDialog
 * Control
 * Crypto
2020-09-26 11:48:37 +02:00
Rémi Verschelde
fea72f2a71
Merge pull request #42338 from godotengine/revert-41697-bug/editor-inspector-refresh-fix
Revert "Fix editor inspector refresh not working"
2020-09-25 21:01:24 +02:00
Rémi Verschelde
6c6d072e3d
Revert "Fix editor inspector refresh not working" 2020-09-25 15:50:05 +02:00
Rémi Verschelde
41c735fe50
Style: Fix black formatting after #42332
Somehow it did not run CI checks so we missed that one.

Also pin `black` version to latest upstream release.
2020-09-25 15:49:37 +02:00
Rémi Verschelde
ed91d3efeb
Merge pull request #42332 from Calinou/default-enable-copy-mono-root
Enable the `copy_mono_root` SCons option by default
2020-09-25 15:00:54 +02:00
Rémi Verschelde
96a51b108c
Merge pull request #42310 from Calinou/add-styleboxflat-shadow-property-hint
Add a property hint to StyleBoxFlat `shadow_size` for editor usability
2020-09-25 12:44:43 +02:00
Rémi Verschelde
a455eb4ccb
Merge pull request #42333 from Calinou/new-autokey-editor-icon
Replace AutoKey icon with a more universally understood "record" button
2020-09-25 12:40:47 +02:00
Hugo Locurcio
da906cade3
Replace AutoKey icon with a more universally understood "record" button
See discussion in
https://github.com/godotengine/godot-proposals/issues/169.
2020-09-25 11:43:17 +02:00
Hugo Locurcio
cfd564b385
Enable the copy_mono_root SCons option by default
This closes #41652.
2020-09-25 11:08:01 +02:00
Rémi Verschelde
9f8a923b92
Merge pull request #42312 from timothyqiu/false-otherwise
Surrounds boolean false with code tag in doc
2020-09-24 19:32:08 +02:00
Haoyu Qiu
aa7ce12bee Surrounds boolean false with code tag 2020-09-25 00:00:22 +08:00
Hugo Locurcio
feb4002017
Add a property hint to StyleBoxFlat shadow_size for editor usability
This adds a visible range to the slider so it can be dragged more easily.

This closes #42309.
2020-09-24 17:41:40 +02:00
Rémi Verschelde
5216ce23b6
Merge pull request #42308 from akien-mga/i18n-rename-pt_PT
i18n: Rename pt_PT to pt
2020-09-24 17:06:09 +02:00
Rémi Verschelde
f21b32aa04
Merge pull request #41683 from skyace65/File
Move note about using ResourceLoader in the File documentation
2020-09-24 17:05:49 +02:00
Rémi Verschelde
1e2f55e273
i18n: Rename pt_PT to pt
We originally used `pt_PT` (i.e. Portuguese (Portugal)) to distinguish with
the Brazilian Portuguese variant `pt_BR`, as both are significantly different
and need separate translation files.

But Portugal's Portuguese (or "European Portuguese") is close to the variant
spoken and written in other Portuguese-speaking countries such as Angola and
Mozambique, so it makes sense for users of these countries to also have access
to the European Portuguese translation (at least until translators decide that
adding e.g. `pt_AO` and `pt_MZ` variants would make sense, taking into account
the translation effort that this duplication implies).

Godot's locale matching checks first for the full locale (e.g. `pt_AO`), and
if no translation is found, it checks for the non-regional language code
(`pt`), so this change enables translations for Portuguese speakers outside
Portugal and Brazil.
2020-09-24 16:50:44 +02:00
skyace65
75c5a8b354 Move note about using Resource in the File documentation 2020-09-24 10:37:03 -04:00
Rémi Verschelde
93303737ac
i18n: Sync translations with Weblate
(cherry picked from commit 510d87e468)
2020-09-24 15:35:55 +02:00
Rémi Verschelde
f87c75f77b
Merge pull request #41934 from timothyqiu/parallax-ignore-zoom
Fixes ParallaxLayer offset when camera zoom is ignored
2020-09-24 15:23:24 +02:00
Rémi Verschelde
6cb11cf41c
Merge pull request #42014 from Leleat/strip-edges-on-node-rename
Strip edges on node rename in SceneTreeDock
2020-09-24 15:21:59 +02:00
Rémi Verschelde
4b3a566cf1
Merge pull request #42018 from Leleat/create-user-dir-if-nonexistant
Create user-dir, if non-existant, so it can be opened with Godot
2020-09-24 15:21:01 +02:00
Rémi Verschelde
915ac7360a
Merge pull request #42066 from dalexeev/output_copy
Improvement for the Copy button in the Output Log
2020-09-24 15:18:59 +02:00
Rémi Verschelde
3e4627ab6f
Merge pull request #42283 from Calinou/doc-print-push-error-warning
Improve documentation related to printing error/warning messages
2020-09-24 15:16:27 +02:00
Rémi Verschelde
a5885d6987
Merge pull request #42089 from skyace65/ShelfFilters
Add documentation for shelf filters
2020-09-24 15:16:04 +02:00
Rémi Verschelde
fc8904236b
Merge pull request #42070 from Razoric480/ignore-cancel-request
Make LSP ignore $/cancelRequest msgs
2020-09-24 15:15:25 +02:00
Rémi Verschelde
079b6753c3
Merge pull request #42287 from Calinou/doc-color-constants-cheatsheet
Reference the Color constants cheatsheet in the class reference
2020-09-24 15:13:52 +02:00
Rémi Verschelde
9c9f3365b2
Merge pull request #42296 from akien-mga/messagequeue-default-size-4096-kb
MessageQueue: Change default queue size to 4096 KB
2020-09-24 15:11:17 +02:00
Hugo Locurcio
50f3a8e312
Improve documentation related to printing error/warning messages 2020-09-24 14:23:53 +02:00
Rémi Verschelde
5e24232597
Merge pull request #42300 from KoBeWi/noline
Remove unnecessary empty line from Dictionaries
2020-09-24 14:12:44 +02:00
Tomasz Chabora
7b1ad6fbe0 Remove unnecessary empty line from Dictionaries 2020-09-24 13:23:06 +02:00
Rémi Verschelde
5009ba54b2
MessageQueue: Change default queue size to 4096 KB
1024 KB was low enough that many users seem to hit it, which can lead to the
editor freezing.

The proper fixed as described in #35653 would be to implement a page allocator
to prevent this overflow, but as a stop-gap measure, we can increase the
default value to a more lenient 4096 KB which should be high enough for the
vast majority of use cases.

The default size can be brought down again if/when #35653 is properly fixed,
and if it's actually relevant from a memory point of view.
2020-09-24 09:05:12 +02:00
Rémi Verschelde
a6bb4f70e0
Merge pull request #42293 from ricardoalcantara/fix_basis_csharp
Basis RotationQuat should be public.
2020-09-24 08:16:24 +02:00
Rémi Verschelde
1e376958b3
Merge pull request #42284 from Calinou/doc-button-basebutton
Reference the BaseButton class explicitly in button class documentations
2020-09-24 08:12:10 +02:00
Ricardo Alcantara
a676b8ea66 Basis RotationQuat should be public. 2020-09-24 00:59:54 -03:00
Hugo Locurcio
de49085567
Reference the Color constants cheatsheet in the class reference 2020-09-23 23:48:37 +02:00
Hugo Locurcio
038baede5a
Reference the BaseButton class explicitly in button class documentations
Users are sometimes confused as to the `pressed` property not being
visible in the Button class documentation. This is because `pressed`
is defined in BaseButton.
2020-09-23 23:34:28 +02:00
Rémi Verschelde
72aaf81518
Merge pull request #42259 from zaevi/fix-mono-IsAbsPath
Fix C# string.IsAbsPath()
2020-09-23 18:12:27 +02:00
Rémi Verschelde
215fa6e85b
Merge pull request #42274 from KoBeWi/nullevents
Check for null in InputMap::_find_event
2020-09-23 15:55:57 +02:00
Rémi Verschelde
7b1de6deda
Merge pull request #42126 from Calinou/doc-videoplayer-formats
Improve documentation about VideoPlayer video formats
2020-09-23 15:40:50 +02:00
Tomasz Chabora
f4e34ac353 Check for null in InputMap::_find_event 2020-09-23 15:39:06 +02:00
Hugo Locurcio
1efe57848a
Improve documentation about VideoPlayer video formats
This closes https://github.com/godotengine/godot-docs/issues/4021.
2020-09-23 14:28:16 +02:00
Rémi Verschelde
9a463cb1d6
Merge pull request #42263 from Faless/js/servers_no_threads
Ignore thread models when compiling with NO_THREAD
2020-09-23 11:50:23 +02:00
Fabio Alessandrelli
f3c6ac1d71 Ignore thread models when compiling with NO_THREAD
The thread model option for physics (2D) and rendering (single-unsafe,
single-safe, multithread), was causing crashes/locks when set as
multithreaded and exported for a platform that does not support threads
(namely HTML5).

This commit ensures that when threads support is not available, that
option is ignored, and the equivalent of "single-unsafe" is always used
instead.
2020-09-23 11:24:01 +02:00
Rémi Verschelde
78304b904f
Merge pull request #42150 from DashCell/resize_tile_shape_fixed
Resize the tile shapes when a vertex is outside of the tilesheet
2020-09-23 10:51:02 +02:00
Rémi Verschelde
3e8d1de515
Merge pull request #42129 from kotelifelif/33477
Fix changing icons' colors when switch dark and light theme
2020-09-23 10:43:09 +02:00