272ae15993
Now tooltips won't get scaled to their original control's scale anymore by default. Added a new gui_scale_tooltips property to Viewport to be able to use the previous behaviour when it's desired.
2024-03-13 16:55:47 +01:00
105115dbb3
Removed clips_input() method and _clips_input() virtual method from Control. Made clip_contents to also have an input clipping effect, since I couldn't think any single instance where keeping them separated would be useful.
...
This fixes LayeredTileMap's editors clipping input while being invisible, and likely other smaller issues.
2024-03-12 17:29:22 +01:00
5133ef182d
File copyright header updates pt10.
2023-12-18 00:31:04 +01:00
88e9ad04f2
Moved back the servers and resources from core.
2023-12-10 23:11:07 +01:00
053f083e17
Moved the Physics 2d server to core.
2023-12-10 19:42:57 +01:00
3902cf1924
Moved ScneeStringNames and PropertyUtils into scene/main.
2023-12-10 18:01:51 +01:00
9df5649c1b
Moved CanvasItem, Control, Node2D and Spatial under scene/main.
2023-12-10 15:50:54 +01:00
763f662263
Moved meshes to a new subfolder.
2023-12-10 15:22:09 +01:00
9a2bf73280
Backported _shortcut_input() virtual from godot4.
2023-09-07 09:56:16 +02:00
7fcc653a0e
Backported the CallInputType parameter for SceneTree::_call_input_pause() from godot4.
2023-09-07 07:40:45 +02:00
32e9927ac8
Ported from godot 4: Remove NOTIFICATION_MOVED_IN_PARENT
...
* This notification makes node children management very inefficient.
* Replaced by a NOTIFICATION_CHILDREN_CHANGED (and children_changed signal).
* Changed Canvas code (and similar) to use the above signal, to perform more efficiently.
This PR breaks compatibility (although this notification was very rarely used, even within the engine), but provides an alternate way to do the same.
It is required for the changes in #75627 to be entirely effective.
- reduz
Note that I removed NOTIFICATION_MOVED_IN_PARENT, as keeping it, but making it just not work is worse in my opinion.
104392ef4e
2023-04-10 15:55:34 +02:00
7d2667830d
Ported from godot 4: Fix Viewport root order after Node2D raise
...
- Sauermann
022d24a9ae
2023-04-10 11:42:15 +02:00
15bf4aefd0
Ported: Rework how current Camera2D is determined
...
7e2a8afb57
- KoBeWi
and
Fix Camera2D crashes
724d6581d6
- KoBeWi
From godot4.
Also fixed issues with active Camera2D switching.
2023-03-04 21:29:49 +01:00
8c9d7bc567
Ported: Set touch input as handled only after _gui_call_input - necrashter
...
147de75e52
2023-01-16 14:46:29 +01:00
2cd4e4d828
Renamed Set to RBSet.
2023-01-15 19:42:08 +01:00
1b0aac6028
Renamed Map to RBMap.
2023-01-15 19:12:50 +01:00
ce5e82d910
Ported: Include the follow-viewport-transform into CanvasLayer transform calculations
...
The follow-viewport-transform was missing from several calculations
3.x version of #59682
- Sauermann
608cbd8296
2022-12-22 19:06:10 +01:00
c7809991b2
Fixed an another issue with touch gui input handling.
2022-12-12 18:30:35 +01:00
37961b1990
Fix regression in touch input handling.
2022-12-12 14:26:54 +01:00
Fredia Huya-Kouadio
4759ad6517
Fix the logic used to route InputEventScreenDrag
events to Control
nodes.
2022-12-11 18:30:58 +01:00
kobewi
b5b6d14d37
Fix Viewport size change not updating textures
...
(cherry picked from commit 3a4a4aeadec36324da394238cf0f86dbac345e93)
2022-09-16 23:13:40 +02:00
6a317fbe15
Fix build.
2022-09-16 22:42:11 +02:00
Atlinx
561aab3227
Remove HDR warning if on low end
2022-09-16 22:34:05 +02:00
Michael Alexsander
bce30062a5
Fix some corner cases in the Menu/OptionButton
item auto-highlight
2022-09-16 22:04:23 +02:00
Yuri Sizov
211cd1e46a
Remove Inspector tooltip hack that never actually worked
2022-09-16 21:57:00 +02:00
9bdb8b6bce
Now only one override is allowed per World, as there is really no reason to have support for more than one per world pair. This fixes lots of issues with the system.
2022-08-30 15:47:22 +02:00
66f2357d01
Now Cameras use Worlds directly instead of Viewports.
2022-08-30 14:08:27 +02:00
9b3714a274
Now CanvasItems work with World overrides aswell.
2022-08-30 01:40:03 +02:00
4303dfb5c0
More work on World override support.
2022-08-29 22:55:48 +02:00
49af677ca8
Work on the ability for overriding Worlds.
2022-08-29 20:56:17 +02:00
68b21dc61f
Move World2D and World3D related things to World from Viewport.
2022-08-29 19:40:17 +02:00
b886d14cf5
Added _3d postfix to the end of the World3D related getters and setters in Viewport.
2022-08-29 17:54:41 +02:00
24a1580dbf
Renamed the files aswell.
2022-08-29 17:33:10 +02:00
e4ae7f2ebc
Renamed Environment to Environment3D, and WorldEnvironment to WorldEnvironment3D.
2022-08-29 17:21:40 +02:00
2aee6ab0bb
Renamed World to World3D.
2022-08-29 16:49:00 +02:00
cffe742085
Renamed the VisualServer to RenderringServer like in Godot4, as I think it's a lot better name for it. I did not yet rename the files.
2022-08-19 20:50:20 +02:00
1b503ad711
Revert "Fix mouse_over not dropped when mouse leaves window"
...
This reverts commit 33a2d5e20b
.
2022-08-19 02:48:36 +02:00
Marcel Admiraal
33a2d5e20b
Fix mouse_over not dropped when mouse leaves window
2022-08-19 02:20:03 +02:00
4c4e19223e
Added _theme_ infix to the theme helper methods in Control.
2022-08-17 20:57:16 +02:00
99e94b08c4
Moved base input related classes to core/input.
2022-08-17 17:02:24 +02:00
04feb63860
Moved Engine and projectSettings.
2022-08-17 15:35:28 +02:00
e4cad690a3
Renamed elements in Transform2D to columns.
2022-08-14 15:37:05 +02:00
47358bfaab
Backported: add viewport.get_camera_2d()
...
* there is now a more clear distinction between camera_2d and camera_3d functions in the engine code
* simplified camera2d's exported interface - now everything happens directly with the 'current' variable and make_current and clear_current are no longer exposed- there were some situations where calling one instead of set_current would result in incomplete results
* rebased to current godot master
- verdog
879f84d8f8
- Note that i did not rename the original Camera related methods.
2022-08-12 18:29:04 +02:00
Hugo Locurcio
0e32de0bad
Clamp Viewport shadow atlas sizes to improve usability
...
- Add a range hint to the Viewport `shadow_atlas_size` property.
- Add range steps to the shadow resolution project settings that
match the lowest allowed values (since lower increments don't
make sense).
2022-07-29 17:38:06 +02:00
328da6b799
Ported: Print a warning for Viewports that have 2D usage and HDR enabled
...
2D usage + HDR isn't supported, so the usage must be changed to 3D
to be able to use HDR.
- Calinou
f64d5f4095
2022-07-29 17:36:54 +02:00
Haoyu Qiu
8002080311
Fix Viewport.own_world
documentation
...
Also fixed the naming of the setter's parameter and made an `if` block
straightforward.
2022-07-28 13:44:56 +02:00
a43091d427
Ported: Add drag and drop to TextEdit, LineEdit, RichTextLabel - ConteZero
...
4167e98088
2022-07-25 20:32:14 +02:00
b74c00ea65
Backported the 3.x android editor port pr by m4gr3d and thebestnom. (Godot pr 57747).
2022-03-22 19:35:57 +01:00
4d7df62b8e
Clang format all files.
2022-03-18 19:00:13 +01:00
3965d70ac5
Moved more includes to cpp files.
2022-03-17 19:35:23 +01:00