Aaron Franke
b831fb0a54
Rename Transform2D "elements" to "columns"
2022-04-29 08:02:39 -05:00
FireForge
3073b85de9
Rename theme properties to include underscores
...
- check_vadjust -> check_v_adjust
- close_h_ofs -> close_h_offset
- close_v_ofs -> close_v_offset
- commentfocus -> comment_focus
- hseparation -> h_separation
- ofs -> offset
- selectedframe -> selected_frame
- state_machine_selectedframe -> state_machine_selected_frame
- table_hseparation -> table_h_separation
- table_vseparation -> table_v_separation
- vseparation -> v_separation
2022-04-23 11:16:18 -05:00
Hugo Locurcio
52d6a7a7ff
Fix the Audio Listener 3D property not being grouped with 2D in Viewport
2022-04-16 02:22:58 +02:00
Hugo Locurcio
d15b69118d
Fix 3D scaling enum size in the editor and improve descriptions
2022-04-09 17:53:45 +02:00
bruvzg
d1207a0504
[Input] Add extra `shortcut_input` input processing step to process Unicode character input with Alt / Ctrl modifiers, after processing of shortcuts.
2022-04-05 13:46:45 +03:00
Markus Sauermann
529e2279e1
Fix Drag n Drop Transform in main embedding window
2022-03-31 00:43:52 +02:00
Rémi Verschelde
398d502cc7
Merge pull request #59308 from Sauermann/fix-viewport-warp-mouse
2022-03-30 11:41:31 +02:00
bruvzg
76174cb05a
Update sub-viewport canvas items to ensure oversampling is applied correctly.
2022-03-29 10:44:09 +03:00
Rémi Verschelde
7119d355eb
String: Remove TTR and DTR defines in non-tools build
...
This ensures we don't use TTR in runtime code, as it's specifically meant
to source translations for the editor.
2022-03-28 20:26:35 +02:00
Rémi Verschelde
2e85105959
Merge pull request #59555 from Sauermann/fix-mouseover-drag
2022-03-28 20:21:28 +02:00
Markus Sauermann
ffe42171a5
Fix using Viewport::warp_mouse within Viewports
2022-03-28 11:59:40 +02:00
Rémi Verschelde
7e5cd4bb48
Merge pull request #59118 from Sauermann/fix-window-input-event-coordinates
2022-03-28 09:54:59 +02:00
Rémi Verschelde
00e9170812
Merge pull request #59574 from Sauermann/proposal-rename-warp-mouse
...
Rename warp mouse functions to warp_mouse
2022-03-28 08:52:02 +02:00
Markus Sauermann
d8a3d4b9da
Send Mouse Enter/Exit Notifications independently of mouse focus
2022-03-27 14:20:03 +02:00
Markus Sauermann
0494e024d8
Rename warp mouse functions to warp_mouse
2022-03-27 14:12:01 +02:00
Univeous
383dc11965
Fix UI navigation with joysticks
2022-03-27 17:41:29 +08:00
Markus Sauermann
3f7770c453
Fix coordinate system for stretched viewports for subwindows.
2022-03-18 18:10:53 +01:00
Rémi Verschelde
e4b9406313
Merge pull request #59099 from RandomShaper/mouse_drop_on_disable
2022-03-14 11:18:38 +01:00
Markus Sauermann
86574b91dd
Cleanup internal GUI state, if event is accepted in _input.
2022-03-14 08:38:48 +01:00
kobewi
3c53752b4a
Cleanup embed subwindows getters
2022-03-13 18:20:53 +01:00
Pedro J. Estébanez
d083fb21c7
Drop mouse focus and over when gui input is globally disabled
2022-03-13 12:45:32 +01:00
Markus Sauermann
40c08e522f
Revert "Update mouse cursor shape after changes"
...
This reverts commit 0fce98b4b5
.
2022-03-10 09:43:06 +01:00
Markus Sauermann
0fce98b4b5
Update mouse cursor shape after changes
...
This fixes some cases where the mouse cursor shape did not change automatically, but instead required a MouseMove to update.
2022-03-09 07:54:03 +01:00
bruvzg
74ff5921d6
Improve popup window handling.
...
Add window FLAG_POPUP and a platform specific routines to control popup auto-hiding and event forwarding.
2022-02-25 09:33:27 +02:00
Markus Sauermann
27aab7f7ca
Update variable name to reflect usage
2022-02-19 09:19:15 +01:00
Markus Sauermann
415042ac89
Connect notifications from Container to Viewport
...
mouse enter+exit
2022-02-15 22:41:30 +01:00
Rémi Verschelde
0f5455230c
Use `switch` consistently in `_notification` (`scene` folder)
2022-02-15 18:44:55 +01:00
Hendrik Brucker
c30d161562
Fix tooltip flickering in some cases
2022-02-15 16:29:03 +01:00
Hendrik Brucker
b396fd4eef
Improve compilation speed (forward declarations/includes cleanup)
2022-02-12 02:46:22 +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
Rémi Verschelde
36880714e4
Merge pull request #57517 from groud/viewport_expose_gui_focus
2022-02-03 11:20:20 +01:00
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
rafallus
44f6fe4be4
Bring reusable variables out of while loop
2022-01-23 19:39:00 -06:00
Marcel Admiraal
d009aa4d02
Fix mouse position not being scaled when window size is changed
2022-01-23 11:53:58 +00:00
Mario Liebisch
a5a03b3a73
Allow embedded windows to be non-resizable
...
This fixes issue #56869 .
2022-01-17 21:19:45 +01:00
Rémi Verschelde
d40d86b959
Merge pull request #56667 from Ice-Cube69/fix_incorrect_property_types
2022-01-11 14:34:18 +01:00
Arnav Vijaywargiya
0c46f73b5e
Fixed incorrect property types
2022-01-11 17:17:11 +05:30
Rémi Verschelde
46624388d4
Merge pull request #56322 from madmiraal/fix-42450
2022-01-11 11:33:59 +01:00
Rémi Verschelde
07d2dfef7b
Merge pull request #53419 from TechnoPorg/rework-subwindows
2022-01-07 16:15:09 +01:00
Tomasz Chabora
e72adab511
Update the minimum size of ViewportContainer
2022-01-06 15:43:12 +01:00
Rémi Verschelde
851fb16350
Merge pull request #56305 from Calinou/rename-lod-threshold
2022-01-04 15:28:06 +01:00
Rémi Verschelde
7f66c16c03
Merge pull request #51206 from clayjohn/Vulkan-ASSGI
2022-01-04 10:00:17 +01:00
Rémi Verschelde
fe52458154
Update copyright statements to 2022
...
Happy new year to the wonderful Godot community!
2022-01-03 21:27:34 +01:00
Marcel Admiraal
3105d9b1f3
Rename speed to velocity when it's a directional Vector
2021-12-29 15:35:26 +00:00
Hugo Locurcio
df09bc38cb
Rename Lod Threshold to Mesh Lod Threshold
...
This makes it more obvious that the setting only affects mesh LOD,
not manual (H)LOD achieved using visibility ranges.
2021-12-29 00:11:50 +01:00
vitika9
51501dadcc
Added check for SceneTree being null
2021-12-13 15:41:29 +05:30
jmb462
d44b33741b
Fix bad mouse offset to show tooltips in Tree
2021-12-12 09:12:26 +01:00
jmb462
81efebb3a1
Fix bad popups offset in editor with single window off
...
Co-authored-by: Gil Arasa Verge <gilarasaverge@gmail.com>
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
2021-12-06 14:29:48 +01:00
Haoyu Qiu
86a47c6540
Fix mouse cursor and notification for force dragging
2021-12-03 18:19:41 +08:00
Rémi Verschelde
e223a9c129
Merge pull request #55486 from nekomatata/physics-contacts-debug
2021-11-30 20:21:54 +01:00
PouleyKetchoupp
1ce74c0273
Fix physics 2D/3D contact points rendering
...
Physics internal process was removed by mistake, it's needed for contact
points to be updated each frame.
Fixed some multimesh parameters to allow 3D contact points to be drawn,
although it's still not working well in 3D as only some of the contact
points are drawn, and some of them keep being drawn when the number
of visible instances drops to 0 instead of hiding them all.
2021-11-30 09:35:12 -07:00
TechnoPorg
acb90ed020
Don't obtain a reference to a subwindow
...
Fixes the wrong location being accessed after changing the order of embedded windows.
This commit also removes an unused variable.
2021-11-29 16:52:19 -07:00
kobewi
dc5f6ac4cf
Don't show tooltips for paused controls
2021-11-29 13:23:28 +01:00
Rémi Verschelde
547c270777
Merge pull request #51679 from Je06jm/fsr
...
AMD FidelityFX Super Resolution
2021-11-24 22:34:48 +01:00
Lightning_A
e078f970db
Rename `remove()` to `remove_at()` when removing by index
2021-11-23 18:58:57 -07:00
Je06jm
20deb0917d
Implemented AMD's FSR as a computer shader for upscaling 3D scenes
2021-11-23 14:16:03 -07:00
ConteZero
2b1787b446
Fix drag and drop on LineEdit
2021-11-15 17:10:56 +01:00
Aaron Franke
3c0fdcc8ac
Use "enum class" for input enums
2021-11-12 15:37:54 -06:00
clayjohn
0eff109a21
Added SSIL post processing effect
2021-11-06 12:43:19 -07:00
PouleyKetchoupp
acbd24ea84
Use parameter classes instead of arguments for all physics queries
...
Same as what is already done for shape queries, applied to point and ray
queries. Easier to document and more flexible to add more parameters.
Also expose intersect_point method to script in 3D.
Remove intersect_point_on_canvas in 2D, replaced with a parameter.
2021-11-04 11:44:39 -07:00
Rémi Verschelde
96ce806b2f
Merge pull request #54369 from S0yKaf/fix-hardcoded-ray-distance
...
Fix hardcoded raycast distance in viewport object picking
2021-11-01 21:01:44 +01:00
vdyotte
02b6bbc5df
fix hardcoded raycast distance with viewport object picking
...
having the raycast distance hardcoded to `10000` caused input events
to not be registered in very large 3D scenes.
This resolves the issue by using the cameras far distance instead.
Creating the more predictable behavior of if an object is visible,
it will be picked by the viewport.
resolves : #49735
2021-10-28 23:08:48 -04:00
Lyuma
97a4ae9e0f
Fix off by one in Viewport.render_target_update_mode property enum
2021-10-28 19:42:31 -07:00
Rémi Verschelde
3b11e33a09
clang-format: Disable alignment of operands, too unreliable
...
Sets `AlignOperands` to `DontAlign`.
`clang-format` developers seem to mostly care about space-based indentation and
every other version of clang-format breaks the bad mismatch of tabs and spaces
that it seems to use for operand alignment. So it's better without, so that it
respects our two-tabs `ContinuationIndentWidth`.
2021-10-28 15:19:35 +02:00
PouleyKetchoupp
d5847f1cb4
Fix errors in mouse detection when removing collision object from tree
...
Now behaves the same way as ui elements, mouse exit is skipped when the
object is removed from the tree.
2021-10-20 09:10:59 -07:00
Rémi Verschelde
56078cca90
Merge pull request #53630 from timothyqiu/viewport-recursion
2021-10-11 10:02:22 +02:00
Haoyu Qiu
7ecb133b22
Fix Viewport::handle_input_locally related infinite recursion
2021-10-10 18:10:28 +08:00
mashumafi
80dc1cc412
Executing AcceptDialog.push_input no longer crashes
2021-10-09 20:33:29 +00:00
Hugo Locurcio
73c6e19acc
Allow any floating-point value as a 3D rendering scale option
...
This allows for finer control over 3D rendering resolution.
Supersampling can also be performed by setting a 3D rendering
resolution above 1.0, which is useful for offline rendering or
for very high-end GPUs.
2021-10-08 18:22:10 +02:00
jitspoe
2ceba818c3
Fix ViewportTexture error when viewport is used from a child scene
...
Fix invalid errors when a separate child scene file contains a viewport and
that viewport is used for a texture in the current scene.
Fixes #27790 .
2021-10-05 12:21:06 +02:00
Eric M
caac2e1a87
Fix focus shortcuts triggering incorrectly
2021-09-21 12:24:07 +10:00
Wilson E. Alvarez
f3a564f9a5
Rename Listener2D/Listener3D to AudioListener2D/AudioListener3D
2021-09-16 17:51:51 -04:00
Rémi Verschelde
70ba366743
Merge pull request #50375 from Paulb23/code_edit_unit_tests
2021-09-13 21:51:20 +02:00
Rémi Verschelde
8ecc571158
Merge pull request #49063 from Calinou/remove-16x-msaa
...
Remove 16× MSAA support due to driver bugs and low performance
2021-09-13 17:34:04 +02:00
kobewi
6b68445e4d
Fix multiple definitions of Listener2D
2021-09-12 21:19:37 +02:00
Max Hilbrunner
06e2a02253
Clean up Viewport, remove dead code.
2021-09-10 16:58:33 +02:00
Max Hilbrunner
68563b5760
Merge pull request #52431 from dozingpip/patch-1
...
Remove dead code from Viewport::_gui_input_event
2021-09-10 16:34:28 +02:00
Pip
d7a6f8990a
Remove dead code from Viewport::_gui_input_event
2021-09-06 03:11:02 -04:00
Paulb23
cd6b11222c
Prevent crash on startup if no audio server
2021-09-01 16:46:04 +01:00
kobewi
f2cb0a8d4b
Add Listener2D
2021-08-31 16:53:14 +02:00
Michael Alexsander
565ba91d28
Merge pull request #51906 from requizm/fix/49077
...
Fix tooltips don't appear for PopupMenus
2021-08-28 15:43:02 +00:00
Ellen Poe
3598d300cb
Do all audio mixing in the AudioServer
2021-08-27 10:41:57 -07:00
Bastiaan Olij
64626cc435
Optionally scale 3D render content
2021-08-26 20:48:40 +10:00
Hugo Locurcio
7192852da3
Remove 16× MSAA support due to driver bugs and low performance
...
In the `master` branch, 16× MSAA caused the entire system to freeze
on NVIDIA GPUs. This is likely caused by graphics drivers not actually
implementing 16× MSAA, but combining 8× MSAA with 2× SSAA instead.
On top of that, modern shader complexity makes 16× MSAA very difficult
to use while keeping a good framerate. 8× MSAA is hard enough to use
as it is.
2021-08-25 07:56:27 +02:00
reduz
5cecdfa8af
Entirely removes BIND_VMETHOD in favor of GDVIRTUAL
...
* `_gui_input`, `_input`, `_unhandled_input` and `_unhandled_key_input` are now regular C++ virutal functions.
* Everything else converted to GDVIRTUAL
* BIND_VMETHOD is gone, always use the new syntax from now on.
Creating `_gui_input` method and using the binder to register events will no longer work, simply override the virtual function now.
2021-08-23 08:10:13 -03:00
requizm
6f3d8fa228
Fix tooltip message working incorrectly in PopupMenu
...
fix
2021-08-20 23:06:00 +03:00
Aaron Franke
7094ccfbe9
Disable Node3D when compiling without 3D and fix disable_3d option
2021-08-13 08:59:48 -05:00
Rémi Verschelde
85e315d6e8
Merge pull request #51607 from aaronfranke/includes
...
Fix some unnecessary includes
2021-08-13 14:38:56 +02:00
Aaron Franke
eb4902a455
Fix some unnecessary includes
2021-08-13 00:27:38 -05:00
Hugo Locurcio
7612cff432
Use the Unicode multiplication symbol where relevant
2021-08-12 21:45:33 +02:00
Rémi Verschelde
dce488d8f7
Merge pull request #49417 from Bhu1-V/gsoc-cmd-plt
...
Command Palette For Godot
2021-08-10 18:55:22 +02:00
Aaron Franke
339687e04f
Organize methods in Viewport and explicitly name 3D methods with 3D
2021-08-10 09:10:34 -05:00
Bhuvan Vemula
a0a019a998
Added EditorCommandPalette
2021-08-09 17:41:50 +05:30
Michael Alexsander
94a64d557e
Add `auto_translate` toggle for automatic translation
2021-07-29 18:30:34 -03:00
Michael Alexsander
79fc188fc4
Multiple cosmetic fixes for embedded windows
2021-07-27 23:55:06 -03:00
Rémi Verschelde
92299989bd
Use Ref<T> references as iterators where relevant
...
And const when possible.
2021-07-26 19:27:11 +02:00
Aaron Franke
4e6efd1b07
Use C++ iterators for Lists in many situations
2021-07-23 17:38:28 -04:00
kobewi
8793ec4564
Show tooltips even when paused or time_scale is 0
2021-07-23 17:49:30 +02:00
Michael Alexsander
a690cd9251
Make `MenuButton`'s `switch_on_hover` work again
2021-07-22 14:27:30 -03:00