2
0
mirror of https://github.com/godotengine/godot.git synced 2024-12-15 10:12:40 +08:00
Commit Graph

5246 Commits

Author SHA1 Message Date
fabriceci
cc3c4d6323 Revert (applying the delta in move and collide), rename rec_vel to distance and improve the doc description 2022-01-26 23:09:30 +01:00
Rémi Verschelde
58324f4df8
Merge pull request from Ansraer/glow_map 2022-01-26 13:39:51 +01:00
Bastiaan Olij
98e5cd24db Improve XRInterface hooks into rendering 2022-01-26 13:55:44 +11:00
Michael Alexsander
73c225838f Make popup menus focus items automatically when not using the mouse 2022-01-25 13:51:56 -03:00
TechnoPorg
051ef479c9 Allow method binds to take Object subclasses as arguments
This commit adds a condition to VariantCaster that casts Variants of type OBJECT to any type T, if T is derived from Object.
This change enables a fair bit of code cleanup. First, the Variant implicit cast operators for Node and Control can be removed, which allows for some invalid includes to be removed. Second, helper methods in Tree whose sole purpose was to cast arguments to TreeItem * are no longer necessary.
A few small changes also had to be made to other files, due to the changes cascading down all the includes.
2022-01-25 09:03:36 -07:00
Rémi Verschelde
894e2fddda
Merge pull request from OverloadedOrama/expose-bitmap-methods 2022-01-25 16:54:26 +01:00
Rémi Verschelde
3102660512
Merge pull request from IllusiveS/master
Expose AnimationNodeOneShot::mix_mode as a property
2022-01-25 07:58:46 +01:00
Wysocki Patryk
f16c483c9d
Expose AnimationNodeOneShot::mix_mode as a property
Fixes .
2022-01-25 01:17:21 +01:00
Rémi Verschelde
81f2ce4e46
doc: Clarify expected type of Object * parameters in Tree methods
They're meant to be `TreeItem *` but this can't be bound in Variant.

Fixes .
2022-01-25 00:54:28 +01:00
Rémi Verschelde
672363f295
Merge pull request from FreegleBarr/implement_gpuparticle_subemitters2d 2022-01-24 22:19:55 +01:00
freeglebarr
6f88294528 ported particle sub-emission to 2D 2022-01-24 17:28:59 -03:00
Rémi Verschelde
5f8f6ae7f6
Merge pull request from KoBeWi/grandpa_issue 2022-01-24 21:03:48 +01:00
fabriceci
856142a97d rename free mode to floating mode 2022-01-24 15:19:43 +01:00
kobewi
d7f51dd2ec Better clarify map_to_world() description 2022-01-24 14:13:40 +01:00
Max Hilbrunner
26da72eb4b Fix make_rst.py on Windows 2022-01-24 10:30:07 +01:00
Rémi Verschelde
06abfd8c13
Merge pull request from Paulb23/textedit-placeholder 2022-01-24 09:43:33 +01:00
Rémi Verschelde
bd4d57ede2
BaseButton: Rename pressed property to button_pressed
This fixes a conflict with the `pressed` signal.

The new name is temporary and only intended to solve the conflict for upcoming
alpha builds. Discussions are still ongoing regarding the BaseButton API and
how to rename and refactor more of its properties, signals and methods to have
a clearer API in 4.0.
2022-01-23 22:15:09 +01:00
Paulb23
09212ba151 Add Placeholder to TextEdit 2022-01-23 20:19:36 +00:00
Rémi Verschelde
904bc403a0
Merge pull request from Calinou/doc-softdynamicbody3d-no-gameplay 2022-01-23 12:54:31 +01:00
Rémi Verschelde
649aa547a3
Merge pull request from KoBeWi/you_have_1_completion_request 2022-01-23 00:26:35 +01:00
kobewi
b86e3dbe7b Add usage of indeterminate checkboxes to editor 2022-01-22 21:12:06 +01:00
kobewi
1422c756ed Rename request_code_completion signal 2022-01-22 14:04:35 +01:00
Andrii Doroshenko (Xrayez)
5d17fe7d0f Add Input.is_anything_pressed method 2022-01-20 20:55:14 +02:00
Rémi Verschelde
7e3b92f81f
Merge pull request from Calinou/rename-bake-mode-properties 2022-01-20 17:35:32 +01:00
Rémi Verschelde
dbd560cb68
Merge pull request from briansemrau/rd-free-rid-bind-rename 2022-01-20 17:24:34 +01:00
Ansraer
90652b1755 add support for glow maps 2022-01-20 16:47:25 +01:00
Rémi Verschelde
eacde082a5
Merge pull request from Phischermen/propagate_check 2022-01-20 16:37:16 +01:00
Rémi Verschelde
b6cb366884
Merge pull request from timothyqiu/has-clipboard 2022-01-20 12:09:45 +01:00
Rémi Verschelde
7057d26343
Merge pull request from BastiaanOlij/add_tracking_confidence 2022-01-20 12:09:06 +01:00
Hugo Locurcio
677ae4e458
Document that soft bodies should be avoided for gameplay purposes 2022-01-20 01:35:49 +01:00
Bastiaan Olij
173105596e Adding a tracking confidence state to XRPose 2022-01-20 10:35:50 +11:00
Rémi Verschelde
d661835a18
Merge pull request from Paulb23/text-edit-callable 2022-01-19 21:36:56 +01:00
Paulb23
f43f68f605 Convert TextEdit callbacks to Callable 2022-01-19 17:26:22 +00:00
Hugo Locurcio
84a69d7429 Improve the default project theme
The new default project theme uses StyleBoxFlat extensively for
a more modern design and better scalability to multiple resolutions.

SVG icons are now used in place of PNG icons. While this does not
allow for true vector-based icon drawing (icons are still rasterized
at load-time), this makes the design work easier for contributors
and opens the door to vector drawing in the future (e.g. with polygons
or SDFs).

Like for editor icons, the SVG header file is now built automatically
when a SVG file is changed. This removing the need for running
`make_header.py` manually (TODO).

The "Use Hidpi" project setting has been removed in favor of a
"Default Theme Scale" project setting, which allows creating the
default theme at a higher/lower scale than the default.
This can be used when designing GUIs with a high base resolution
to ensure crisp visuals.

Co-authored-by: Yuri Sizov <yuris@humnom.net>
2022-01-19 18:46:01 +03:00
Haoyu Qiu
314f309035 Add DisplayServer.clipboard_has() to check clipboard content 2022-01-19 23:44:20 +08:00
Rémi Verschelde
cba2fd2e80
Revert "Add new scaling modes for splash screen"
This reverts commit fcc9f5ce39.

The feature is good but the implementation still needs more work.
A new PR will be made with a rework of this commit.
2022-01-19 16:09:52 +01:00
Max Hilbrunner
2d1080e430
Merge pull request from skyace65/Stringify
Better explain JSON stringify indent parameter (4.0)
2022-01-19 15:07:00 +01:00
skyace65
03257fcecb Better explain JSON stringify indent parameter (4.0) 2022-01-19 08:32:58 -05:00
Rémi Verschelde
6ab5d9d008
Merge pull request from V-Sekai/window_theme_changed_signal 2022-01-19 13:31:56 +01:00
Fabio Alessandrelli
7e14548fc6 [Editor] Move some animation specific keying logic out of inspector.
Most of the custom logic to handle special keying cases is now inside
the AnimationPlayerEditorPlugin.

The EditorInspector now emits a signal when inspecting a new object.
2022-01-19 11:08:25 +01:00
Rémi Verschelde
74b110a736
Merge pull request from bruvzg/macos_fix_fullscr_multiwindow 2022-01-19 10:03:17 +01:00
SaracenOne
2db30ef223 Add missing 'theme_changed' signal to Window class 2022-01-19 07:59:42 +00:00
Kevin Fischer
a4bac268c9 Addded methods to propagate checks & refactored classes to use new methods. 2022-01-18 19:21:59 -08:00
Samuel Pedrajas
fcc9f5ce39
Add new scaling modes for splash screen
Removes the `fullsize` option which is superseded by `stretch_mode`.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2022-01-18 23:29:11 +01:00
Rémi Verschelde
030638e5b4
Merge pull request from Geometror/add-flow-layout-container
Add FlowContainer
2022-01-18 20:26:29 +01:00
Rémi Verschelde
01eefa2c50
Merge pull request from Calinou/sdfgi-allow-any-number-of-cascades 2022-01-18 16:21:39 +01:00
Rémi Verschelde
ce2b5bdfa8
Merge pull request from bruvzg/locale_detection 2022-01-18 15:43:04 +01:00
Rémi Verschelde
28cd81c581
Merge pull request from akien-mga/dictionary-improve-VariantWriter-and-docs 2022-01-18 15:33:00 +01:00
Rémi Verschelde
7c771ea310
Merge pull request from madmiraal/rename-test_width-test_height 2022-01-18 13:39:57 +01:00
bruvzg
40c56ed410
Improve locale detection.
Use separate language, script and country lists.
Add locale selection dialog and property hint.
2022-01-18 14:30:00 +02:00
Rémi Verschelde
9912492e93
Merge pull request from akien-mga/array-slice-nicer-bound-checks 2022-01-18 13:22:35 +01:00
Rémi Verschelde
8898d6dadc
Dictionary: Serialize empty dict as {} instead of {\n}
Also make sure to always convert multiline dictionaries to a single line for
its EditorHelp representation, as multiline values break formatting.
2022-01-18 11:31:21 +01:00
Rémi Verschelde
38a54084be
Merge pull request from noidexe/patch-3 2022-01-18 10:50:43 +01:00
bruvzg
d62ca0c9c0 Window management improvements.
[macOS] Fix transient windows not working in the full-screen mode.
[macOS] Fix moving transient windows to the other screen than parent window.
[macOS] Fix popup menu switch on hover.
[macOS] Use content origin rect for windows position (to ensure `DS.mouse_get_position` is equal to `DS.window_get_position` + mouse position from the input events).
[macOS] Fix incorrect input coordinates, when external display with different scaling in connected/disconnected.
[macOS/Windows] Fix moving fullscreen windows between the screens.
Add auto refocusing of the parent window, when the focused transient window is closed.
Remove redundant `DS.mouse_get_absolute_position` function (returns mouse position in the screen coordinates, same as `DS.mouse_get_position`).
2022-01-18 11:47:03 +02:00
rafallus
ba7d3f8331 Fix input_ray_pickable documentation for CollisionObject3D 2022-01-18 01:01:11 -06:00
Lisandro Lorea
176a9c738f
Give example of one-liner for Array natural sort
The documentation for the sort method warns the user that it doesn't do natural sort but fails to provide a solution when it's just a one liner thanks to String.naturalnocasecmp_to() and lambda support

This suggests exactly the same algorithm as used by the filesystem dock for file sorting.

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2022-01-17 15:11:50 -03:00
Rémi Verschelde
324dca57af
Merge pull request from KoBeWi/7H15_15_NUMB3R 2022-01-17 17:25:05 +01:00
Hugo Locurcio
2dc7b03a82
Allow using between 1 and 8 cascades for SDFGI
This provides more flexibility between performance and quality
adjustments, especially when using SDFGI for small-scale levels
(which can be useful for procedurally generated scenes).
2022-01-17 16:49:02 +01:00
kobewi
7bb682651f Clarify to_float() and to_int() methods 2022-01-17 16:44:07 +01:00
Rémi Verschelde
b315295ffc
Merge pull request from bruvzg/cmd_exec 2022-01-17 15:58:06 +01:00
Rémi Verschelde
57ad84537d
Merge pull request from bruvzg/icu_case 2022-01-17 14:28:38 +01:00
bruvzg
9faf1e027a
[Documentation] Add instruction how to execute built-in commands of various shells. 2022-01-17 15:10:04 +02:00
Rémi Verschelde
8bdef23f7f
Merge pull request from bruvzg/wt🤎4 2022-01-17 13:26:15 +01:00
Rémi Verschelde
a2d323c67e
Merge pull request from bruvzg/runtime_bmfont_parser 2022-01-17 13:25:08 +01:00
bruvzg
e02a097280
[TextServer] Implement locale and context sensitive case conversion functions. 2022-01-17 14:23:36 +02:00
Rémi Verschelde
a27b85378b
Merge pull request from Calinou/remove-pvrtc-support 2022-01-16 11:15:34 +01:00
Rémi Verschelde
1cff9a2e49
Merge pull request from brennengreen/panorama-sky-filtering
Add filtering property to PanoramaSkyMaterial and switch from static shader to shader cache
2022-01-16 01:30:44 +01:00
Brennen Green
0695440124 Add shader cache and filter variable to PanoramaSkyMaterial 2022-01-14 23:30:27 -05:00
kobewi
3f0e9da5a4 Mention that modifying text erases BBCode stacks 2022-01-15 02:13:58 +01:00
Hugo Locurcio
40be15920f
Remove support for PVRTC texture encoding and decoding
On the only platform where PVRTC is supported (iOS),
ETC2 generally supersedes PVRTC in every possible way. The increased
memory usage is not really a problem thanks to modern iOS' devices
processing power being higher than its Android counterparts.
2022-01-14 21:08:22 +01:00
Rémi Verschelde
f60c81af11
Merge pull request from V-Sekai/expose-add-named-bind 2022-01-14 14:24:16 +01:00
bruvzg
89f37d4105
Add support for getting native display, window, and view handles. 2022-01-14 13:36:32 +02:00
K. S. Ernest (iFire) Lee
c5528af71c Expose add_named_bind for all essential skin bindings. 2022-01-14 03:20:24 -08:00
Marcel Admiraal
5c3600b29f Fix mouse velocity not changing fast enough
- Uses all accumulated movements when calculating velocity
- Discards old accumulated movements
- Sets last mouse velocity to zero when there is no movement
2022-01-13 18:51:34 +00:00
Rémi Verschelde
f0382530a7
Merge pull request from KoBeWi/🚗complete_setters 2022-01-13 12:40:48 +01:00
Rémi Verschelde
e0f2902a11
Merge pull request from KoBeWi/you_touched_my_TouchScreeenButton 2022-01-13 12:23:49 +01:00
Rémi Verschelde
a987ebfde2
Merge pull request from bruvzg/fix_alignment_break_overrun 2022-01-13 10:20:02 +01:00
Rémi Verschelde
8fce6166cb
Merge pull request from Calinou/default-allow-hidpi 2022-01-13 09:33:00 +01:00
Rémi Verschelde
f6792eacf5
Merge pull request from Calinou/lineedit-textedit-add-caret-width-theme-item
Add a theme constant to change LineEdit and TextEdit's caret width
2022-01-13 09:21:01 +01:00
bruvzg
baec983d8a
[TextServer] Improvements for line breaking, "Fill" alignment, overrun, and interaction between these modes.
Fix "Fill" alignment processing wrong side of the text if overrun trim was applied.
Improve "Fill" alignment to avoid adding excessive subsequent spaces or elongations.
Add font detection to the overrun, to correctly add ellipsis (was using last glyph font, which doesn't necessary have dot character).
Improve line breaking to avoid adding excessive subsequent soft break points for languages without word separator.
Port missing overrun/justification code to the Fallback text server.
Fix inferred text direction detection by controls.
Add tests for "Fill" alignment and line breaking glyph flags.
2022-01-13 08:53:28 +02:00
Rémi Verschelde
53096c6f01
i18n: Sync classref translations with Weblate
(cherry picked from commit b9b23d2226)
2022-01-12 18:45:42 +01:00
Rémi Verschelde
f927fee49a
Merge pull request from KoBeWi/to_hover_or_not_to_hover 2022-01-12 17:28:34 +01:00
Rémi Verschelde
929f483ca0
Merge pull request from Calinou/spritebase3d-remove-opacity 2022-01-12 16:49:57 +01:00
Rémi Verschelde
42d3993446
Merge pull request from JFonS/fix_gizmo_secondary_handles 2022-01-12 15:53:06 +01:00
jfons
5ebea2d120 Fix secondary handles in editor gizmos
Primary and secondary handles are no longer differentiated by their ids, so a bool was added to tell them apart in all the handle-related methods.

Includes a minor fix in CollisionPolygon3DEditor, unrelated to editor gizmos.
2022-01-12 14:21:20 +01:00
kobewi
4eec0032ea Improve description of mouse_exited signal 2022-01-12 12:49:21 +01:00
Rémi Verschelde
886c75985f
Merge pull request from zacryol/spriteframes-list-3d 2022-01-12 12:21:53 +01:00
Rémi Verschelde
d9f6e33663
Merge pull request from zacryol/file-dialog-filters-description 2022-01-12 11:46:23 +01:00
Rémi Verschelde
b5495783b2
Merge pull request from KoBeWi/viewing_pan 2022-01-12 11:36:41 +01:00
zacryol
4391f6a5b5 List AnimatedSprite3D in SpriteFrames description
Both AnimatedSprite2D and AnimatedSprite3D use a SpriteFrames resource, but the SpriteFrames
class description currently only lists being used with the 2D variant.
2022-01-11 19:55:45 -07:00
zacryol
123cfb4759 Update description of FileDialog filters property
specify that multiple filetypes/extensions can be included in one filter within the
PackedStringArray, and provide an example
2022-01-11 18:04:14 -07:00
Max Hilbrunner
96a20e477b
Merge pull request from mhilbrunner/meshdatatool-docs
Fixed typos in MeshDataTool documentation
2022-01-11 23:00:13 +01:00
Sam
bc9df365b0 Fixed typos in MeshDataTool documentation
- Fixed missing "be" typo in MeshDataTool's get_face_edge function
- Corrected documentation to say negative values aren't valid
2022-01-11 17:39:10 +01:00
Max Hilbrunner
b6bdbd2650
Merge pull request from skyace65/InstancePlaceholder
Instance placeholder clarification
2022-01-11 17:21:01 +01:00
Rémi Verschelde
d40d86b959
Merge pull request from Ice-Cube69/fix_incorrect_property_types 2022-01-11 14:34:18 +01:00
kobewi
ba7ed05792 Unify panning in sub-editors and make it configurable 2022-01-11 13:57:19 +01:00
Rémi Verschelde
adf29a0deb
Merge pull request from timothyqiu/2d-cross-product 2022-01-11 13:35:38 +01:00
Arnav Vijaywargiya
0c46f73b5e Fixed incorrect property types 2022-01-11 17:17:11 +05:30
Rémi Verschelde
46624388d4
Merge pull request from madmiraal/fix-42450 2022-01-11 11:33:59 +01:00
Rémi Verschelde
f20ae16e0b
Merge pull request from Gallilus/Update-default-port_grab_distance_vertical 2022-01-11 11:17:33 +01:00