Rémi Verschelde
bfb75d107c
Merge pull request #57741 from Chaosus/vs_fixes
2022-02-07 12:50:44 +01:00
Rémi Verschelde
b024602660
Merge pull request #57725 from jmb462/missing-sname-theme-setters
2022-02-07 11:46:25 +01:00
Rémi Verschelde
404364d4b4
Merge pull request #57684 from KoBeWi/todo_optimize
2022-02-07 09:52:11 +01:00
Yuri Roubinsky
a6e280c5de
Add some more fixes to visual shader
2022-02-07 11:28:42 +03:00
Michael Alexsander
8bde86da10
Make popups from `MenuButton`, `OptionButton`, and submenus obey the layout direction
2022-02-06 23:07:08 -03:00
jmb462
a988fad9a0
Add missing SNAME macro optimization to all theme methods call
2022-02-06 23:06:11 +01:00
Rémi Verschelde
9cf6e5113b
Merge pull request #57716 from Chaosus/vs_vector_3d
...
Rename `PORT_TYPE_VECTOR` to `PORT_TYPE_VECTOR_3D` in visual shaders
2022-02-06 21:24:47 +01:00
Rémi Verschelde
784b74ef56
Merge pull request #57721 from YeldhamDev/separate_from_separators
...
Better handle icons and checkboxes with separators in `PopupMenu`
2022-02-06 21:24:06 +01:00
Michael Alexsander
989caab0ad
Better handle icons and checkboxes with separators in `PopupMenu`
2022-02-06 16:05:45 -03:00
Michael Alexsander
21bf23d966
Enhancements and fixes for `OptionButton` and `PopupMenu`
2022-02-06 16:03:18 -03:00
Yuri Roubinsky
db18faf660
Rename `PORT_TYPE_VECTOR` to `PORT_TYPE_VECTOR_3D`
2022-02-06 20:15:28 +03:00
Fabio Alessandrelli
87f4bbd668
[Debugger] Move most profilers to ServersDebugger.
...
Also splits bandwidth/rpc profiler (RPCProfiler is now in
SceneDebugger).
2022-02-06 17:36:48 +01:00
jmb462
1ce81dc5f2
Add missing SNAME macro optimization in some function calls
2022-02-06 15:54:04 +01:00
Hugo Locurcio
7721e19ccc
Tweak default SDFGI settings for better quality
...
- Enable Read Sky Light to get proper outdoors lighting out of the box.
- Set bounce feedback to 0.5 by default to get a better quality result.
- Higher values may cause infinite feedback with bright surfaces.
- Increase the number of frames to converge to improve quality
at the cost of latency. Most scenes are fairly static after all.
- Use 75% Y scale by default as most scenes are not highly vertical.
- Reorder the Y scale enum to go from the lowest Y scale to the highest.
Also rename the "Disabled" setting to "100%" for clarity.
2022-02-06 15:28:59 +01:00
Hugo Locurcio
b9cfc74f29
Decrease the default number of SDFGI cascades to 4
...
This improves rendering performance noticeably, especially when the
camera moves fast.
On a medium-sized test scene on a GTX 1080 in 2560×1440, going
from 6 to cascades saves 0.5 ms of frame time while looking visually
identical (as most of the scene fits within the 4 cascades).
2022-02-06 15:01:25 +01:00
kobewi
ab5b5e1577
Rework CanvasItem visibility propagation
2022-02-06 00:26:28 +01:00
Rémi Verschelde
5f42e0d0ab
Merge pull request #57646 from Faless/mp/4.x_interfaces
...
[Net] Move RPC, Node cache out of MultiplayerAPI.
2022-02-05 18:26:04 +01:00
Rémi Verschelde
aecff478b7
Merge pull request #48006 from KoBeWi/incognito_layer
...
Add visibility to CanvasLayer
2022-02-05 16:05:53 +01:00
kobewi
189dab2d76
Add visibility to CanvasLayer
2022-02-05 14:02:21 +01:00
Ger Hean
8acc8838c4
Add shortcut_cell double click functionality
2022-02-05 19:06:54 +08:00
Stijn Hinlopen
31824420e4
Center when scrolling to tree item.
2022-02-05 10:59:33 +01:00
kobewi
e714f5e56e
Rework TextureButton stretch
2022-02-05 02:11:32 +01:00
Fabio Alessandrelli
347d2dfc42
[Net] Move RPC, Node cache out of MultiplayerAPI.
...
Now uses two interfaces so it can be overridden in the future, and
core no longer depends on Node.
The interfaces are implements in scene/multiplayer.
Replaces root_node with root_path.
Remove all Node references from MultiplayerAPI.
2022-02-05 02:00:23 +01:00
Rémi Verschelde
2885befbe6
Merge pull request #55950 from Faless/mp/4.x_replication_nodes
2022-02-04 19:03:10 +01:00
Fabio Alessandrelli
d219547c96
[Net] New replication interface, spawner and synchronizer nodes.
...
Initial implementation of the MultiplayerReplicationInterface and its
default implementation (SceneReplicationInterface).
New MultiplayerSpawner node helps dealing with instantiation of scenes
on remote peers (e.g. clients).
It supports both custom spawns via a `_spawn_custom` virtual function,
and optional auto-spawn of known scenes via a TypedArray<PackedScenes>
property.
New MultiplayerSynchornizer helps synchronizing states between the local
and remote peers, supports both sync and spawn properties and is
configured via a `SceneReplicationConfig` resource.
It can also sync via path (i.e. without being spawned by a
MultiplayerSpawner if both peers has it in tree, but will not send the
spawn state in that case, only the sync one.
2022-02-04 14:56:30 +01:00
Rémi Verschelde
225a3b2545
Merge pull request #57341 from bruvzg/win_multiwin_fs
2022-02-04 13:28:56 +01:00
bruvzg
f4ea9cd9f3
[Windows] Add WS_BORDER flag to windows in WINDOW_MODE_FULLSCREEN mode to allow multi-window interface in full-screen.
...
[Windows] Add WINDOW_MODE_EXCLUSIVE_FULLSCREEN without WS_BORDER flag enabled (no multi-window support).
2022-02-04 12:08:46 +02:00
bruvzg
244db37508
Cleanup and move char functions to the `char_utils.h` header.
2022-02-04 11:35:01 +02:00
Rémi Verschelde
2a3c4f00c8
Merge pull request #57541 from reduz/node-add-remove-hook
2022-02-04 10:13:29 +01:00
Rémi Verschelde
f8f19b313d
Merge pull request #57562 from AnilBK/string-add-contains
...
String: Add contains().
2022-02-03 22:21:24 +01:00
Anilforextra
adbe948bda
String: Add contains().
2022-02-04 01:28:02 +05:45
Rémi Verschelde
5e39a8eded
Merge pull request #56992 from YeldhamDev/smarter_popmenu_focus
2022-02-03 17:15:06 +01:00
Rémi Verschelde
45d5aa5d47
Merge pull request #56365 from aaronfranke/default-shape-size
2022-02-03 16:59:07 +01:00
bruvzg
ead6f67670
Add auto-wrap mode property to the RichTextLabel, set default auto-wrap mode to AUTOWRAP_WORD_SMART to match 3.x behavior.
2022-02-03 16:04:07 +02:00
Gilles Roudière
73e784de1e
Remove get_focus_owner() from Control, replaced by get_viewport()->gui_get_focus_owner()
2022-02-03 11:59:32 +01:00
Rémi Verschelde
36880714e4
Merge pull request #57517 from groud/viewport_expose_gui_focus
2022-02-03 11:20:20 +01:00
Yuri Roubinsky
ca42bfb2a5
Merge pull request #57504 from Chaosus/vs_vector2
2022-02-02 21:12:45 +03:00
Fabio Alessandrelli
6ff753675a
Merge pull request #56771 from mhilbrunner/unacceptable
...
Verify custom HTTP headers, fix off by one error
2022-02-02 18:28:30 +01:00
Yuri Roubinsky
59af063636
Add support for 2D vector type to visual shaders
2022-02-02 19:59:34 +03:00
reduz
fbd9599b04
Add a signal to notify when children nodes enter or exit tree
...
-Allows more fine grained notifications (hence better performance) than using the global scene tree signals (node added and removed).
-Required for #55950
2022-02-02 11:28:11 +01:00
bruvzg
215bede6ff
[TextServer] Add function to change font, font size, and OpenType features without invalidating line break points, justification points, or recreating shaped text buffer.
2022-02-02 11:20:44 +02:00
Rémi Verschelde
7ed7bf1fa7
Merge pull request #48156 from madmiraal/fix-46438
...
Fix `mouse_over` not dropped when mouse leaves window
2022-02-02 07:58:49 +01:00
Anilforextra
fc27636999
Vectors: Use clear() and has().
...
Use clear() instead of resize(0).
Use has() instead of "find(p_val) != -1".
2022-02-02 00:11:09 +05:45
Marcel Admiraal
eaa70fd3f8
Fix mouse_over not dropped when mouse leaves window
2022-02-01 16:12:37 +00:00
Gilles Roudière
3521eecb4c
Exposes gui_release_focus and gui_get_focus_owner to Viewport
2022-02-01 15:07:22 +01:00
Rémi Verschelde
d4e21b7d62
Merge pull request #57358 from akien-mga/signal-bindings-object
2022-02-01 14:24:47 +01:00
Rémi Verschelde
f1bff648f2
Merge pull request #57355 from akien-mga/method-bindings-clearer-types
2022-02-01 14:24:35 +01:00
Rémi Verschelde
6914a58f99
Merge pull request #57376 from Calinou/gradienttexture2d-clamp-size
2022-02-01 14:22:01 +01:00
Aaron Franke
8cfd264148
Improve the default size for 3D shapes (Box, Capsule, and Cylinder)
2022-02-01 06:43:16 -06:00
Rémi Verschelde
dafadd73ac
Merge pull request #57375 from Calinou/gradienttexture-curvetexture-decrease-default-size
2022-02-01 13:39:16 +01:00
Rémi Verschelde
45553fd586
Merge pull request #56970 from YeldhamDev/rise_tabbar_rise
2022-01-31 21:46:07 +01:00
Michael Alexsander
64c4a5b283
Bring `TabBar` to full parity with the `TabContainer` implementation.
2022-01-31 15:35:54 -03:00
Rémi Verschelde
7da9e31f66
Merge pull request #57405 from kleonc/texture_button_focus_only_logic_fix
2022-01-31 18:22:58 +01:00
Rémi Verschelde
74b1e77938
Merge pull request #57276 from IgorKordiukiewicz/fix-auto-brace-complete-wrap-on-selection
2022-01-31 18:14:01 +01:00
Rémi Verschelde
d7822cbf21
Merge pull request #57367 from Chaosus/vs_derivative
2022-01-31 16:51:30 +01:00
Rémi Verschelde
777c821748
Merge pull request #57462 from mashumafi/master-fix-button-icon-alpha3
...
Fix button icon_disabled_color alpha channel
2022-01-31 14:53:22 +01:00
Rémi Verschelde
7cb25c2870
Merge pull request #57456 from Paulb23/placeholder-color
...
Move placeholder colour to theme item
2022-01-31 14:52:34 +01:00
bruvzg
e1148cc452
Revert "Fix control node transform animation jitter with pivot offset"
...
This reverts commit dfb7d46a2a
.
2022-01-31 13:30:35 +02:00
mashumafi
c317a97359
Fix button icon_color_disabled alpha channel
2022-01-30 14:25:42 -05:00
Paulb23
1cd1df5dc3
Move placeholder color to theme item
2022-01-30 17:56:23 +00:00
Igor Kordiukiewicz
f170d6a171
With auto_brace_complete enabled, selected text now gets wrapped by braces
2022-01-30 17:33:13 +01:00
kleonc
078b8c25ce
TextureButton Fix logic for drawing only the focus texture
2022-01-29 16:00:30 +01:00
Nathan Franke
8a0a3accee
simplify formatting scripts, add a clang-tidy script, and run clang-tidy
2022-01-29 04:41:03 -06:00
Rémi Verschelde
cb3d308f96
Merge pull request #57372 from KoBeWi/tween_freeze()
...
Better handle infinite Tween loops
2022-01-29 08:08:34 +01:00
kobewi
038977a985
Better handle infinite Tween loops
2022-01-29 00:36:39 +01:00
Hugo Locurcio
34d382eab6
Clamp GradientTexture2D dimensions to 2048×2048 in the inspector
...
Larger sizes take up a lot of memory for little visual benefit.
They also take a while to initialize, which makes the inspector slow
to refresh when the texture needs to be regenerated.
2022-01-29 00:32:16 +01:00
Hugo Locurcio
b4f0d4c7db
Decrease the default GradientTexture and CurveTexture size
...
This provides better usability when a GradientTexture or CurveTexture
is added to a Control node.
Visual appearance of most GradientTextures and CurveTextures will
be unaffected.
2022-01-29 00:28:10 +01:00
Rémi Verschelde
ffa566c770
Merge pull request #57330 from eikobear/master
2022-01-28 23:59:18 +01:00
Rémi Verschelde
1c6f0aa3a0
Merge pull request #56601 from Scony/fix-navigation-obstacle-errors
2022-01-28 23:25:55 +01:00
Rémi Verschelde
2a5b136de2
Merge pull request #57371 from Scony/fix-navigation-2d-defaults
2022-01-28 23:24:38 +01:00
Rémi Verschelde
2279edeaf0
Merge pull request #57368 from TokageItLab/fix-delta-for-animation-tree
2022-01-28 23:16:29 +01:00
eikobear
3b146c5eaa
Make various improvements to OptionButton
...
- Allow OptionButton selection to be set to -1 to signify no selection, both via API and in the editor.
- Reset OptionButton selection to -1 when the selected item has been removed.
- Fully convert PopupMenu to a zero-based ID system, which improves an inconsistency in generated IDs when making new items in the editor.
2022-01-28 17:03:45 -05:00
Pawel Lampe
450e29a569
Improve Navigation2D default settings, see #56852
...
This commit reduces `cell_size` and `edge_connection_margin` default
values so that `Navigation2D` behaves more like in Godot <= `3.4` by default.
2022-01-28 22:35:05 +01:00
Silc 'Tokage' Renew
0650846248
Make AnimationTree delta argument force double in core
2022-01-29 05:07:30 +09:00
Yuri Roubinsky
88b2afa28f
[VisualShader] Merge scalar and vector derivative functions into one
2022-01-28 22:19:10 +03:00
Rémi Verschelde
e3a644ee37
Merge pull request #57353 from KoBeWi/tween_stop()
2022-01-28 15:51:58 +01:00
Rémi Verschelde
7c3003fcbe
Improve some signal bindings to use specific `Object` subtypes
2022-01-28 15:35:40 +01:00
Rémi Verschelde
7072b359b4
Improve some method bindings to use specific `Object` subtypes
...
This was made possible by changes to `VariantCaster` which now make
it possible to pass any `Object`-derived type as pointer.
2022-01-28 15:07:22 +01:00
kobewi
4f5c3d5a60
Fix not being able to stop() empty Tweens
2022-01-28 14:54:14 +01:00
Rémi Verschelde
b8b33df178
TileSetAtlasSource: Make `get_tile_data` return `TileData *`
...
This is now possible thanks to `Variant` changes.
Also unbind some `_` prefixed methods which don't need to be exposed.
2022-01-28 14:27:12 +01:00
Rémi Verschelde
38c6611b91
Merge pull request #57344 from bruvzg/rtl_fix_tab_offset
2022-01-28 14:04:33 +01:00
bruvzg
a2f5f7cccf
Fix RTL table offset, if indent is set.
2022-01-28 12:27:47 +02:00
Rémi Verschelde
9686d680b7
Merge pull request #57116 from bruvzg/win_net_share
2022-01-28 11:03:23 +01:00
bruvzg
978f2edeea
[RTL] Fix calculation of the last line height.
2022-01-28 10:13:23 +02:00
Rémi Verschelde
e6caaf4c80
Merge pull request #57205 from TechnoPorg/variant-template-cast
...
Allow method binds to take Object subclasses as arguments
2022-01-27 23:46:37 +01:00
bruvzg
0014f0233a
[RTL] Fix min. height calculation when fit_content_height is enabled.
2022-01-27 12:05:21 +02:00
Rémi Verschelde
899cd34426
Merge pull request #57281 from Rubonnek/rename-subsequence
2022-01-27 11:03:13 +01:00
Rémi Verschelde
a4f999b7dc
Merge pull request #57295 from TokageItLab/fix-blendspace2d-discrete
2022-01-27 10:17:04 +01:00
Silc 'Tokage' Renew
1c0b163df5
More time parameters change type float to double
2022-01-27 12:42:46 +09:00
Max Hilbrunner
3ef5a97505
Verify custom HTTP headers, fix off by one error
2022-01-27 03:22:37 +01:00
Max Hilbrunner
3a83872d26
HTTP comment cleanup
2022-01-27 03:22:37 +01:00
Wilson E. Alvarez
3eb5e0ac50
Rename String::is_subsequence_ofi to String::is_subsequence_ofn
2022-01-26 18:03:56 -05:00
fabriceci
cc3c4d6323
Revert #53174 (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
1894f3f165
Merge pull request #57247 from bruvzg/rtl_ol_type1
2022-01-26 13:43:43 +01:00
Rémi Verschelde
58324f4df8
Merge pull request #54574 from Ansraer/glow_map
2022-01-26 13:39:51 +01:00
Rémi Verschelde
5eaa93e6b0
Merge pull request #57182 from timothyqiu/shape-owner
2022-01-26 13:26:44 +01:00
bruvzg
cf3d3a6ffa
Fix RichTextLabel [ol type=1] tag closing.
2022-01-26 13:52:24 +02:00
Rémi Verschelde
d9fd16c8e4
Merge pull request #53954 from Chaosus/fix_quit_errors
2022-01-25 20:09:52 +01:00
Rémi Verschelde
ee7c555665
Merge pull request #57215 from Paulb23/placeholder-invis
2022-01-25 19:13:16 +01:00
Paulb23
e911eee21b
Fix TextEdit placeholder not checking line count
2022-01-25 17:41:05 +00:00