Commit Graph

8116 Commits

Author SHA1 Message Date
cb0814f051 Document behavior of the application/config/version project setting
The alternative is to default to `1.0.0`, but this means that it
won't be saved to `project.godot` if the version number is equal to `1.0.0`.
2023-08-11 11:38:08 +02:00
33198d0df0 Merge pull request #75784 from Riteo/int-scale
Add content scale stretch modes, implement integer scaling
2023-08-11 10:32:11 +02:00
87cfc415a3 Add content scale stretch modes, implement integer scaling
Integer scaling is achieved (after aspect expansion) by "lying" to the
stretching code about the window's size, telling it that it's always an
integer multiple of the viewport so that it only gets stretched to an
integer factor.

This approach works with all stretch and aspect modes and doesn't
require handling for each, only requiring to "loosen up" some
self-excluding conditions (in other words, replacing some `else if`s
with just `if`s) regarding viewport offset and margin calculation (black
bars).

Includes a tiny usability change that adds a range hint for the content
scale factor between 0.5 to 8.0.

Co-Authored-By: Hugo Locurcio <hugo.locurcio@hugo.pro>
2023-08-10 19:45:47 +02:00
fca3ab5564 Deprecate project_settings_changed signal 2023-08-10 15:07:25 +02:00
5ba34564b9 Merge pull request #80474 from Sai-Suraj-27/spelling_error_fix
Fixed tiny spelling error in `doc\classes\NavigationAgent2D.xml`
2023-08-10 14:55:33 +02:00
b78d52b693 Merge pull request #75694 from YuriSizov/editor-hot-singleton-interfaces-in-your-area
Make `EditorInterface` accessible as a singleton
2023-08-10 14:53:35 +02:00
11cfb23798 Merge pull request #62038 from KoBeWi/ChangedSettings
Add `settings_changed` signal to ProjectSettings
2023-08-10 14:53:07 +02:00
c2fd9b6d72 Fixed tiny spelling error in doc\classes\NavigationAgent2D.xml 2023-08-10 12:07:56 +05:30
d76b97e904 Merge pull request #80443 from lotuspar/lotuspar-patch-1
Consistency for NodePath doc code examples
2023-08-10 00:43:50 +02:00
951ea2415b Make EditorInterface accessible as a singleton
- EditorPlugin.get_editor_interface() is removed as redundant.
2023-08-09 16:01:31 +02:00
d255811443 Merge pull request #80404 from bruvzg/file_attribs
[FileAccess] Add methods to get/set "hidden" and "read-only" attributes on macOS/BSD and Windows.
2023-08-09 15:20:32 +02:00
f6b9d445b5 Merge pull request #80285 from YeldhamDev/just_a_little_bit
Further separate icon from text of buttons in both editor and default themes
2023-08-09 15:20:25 +02:00
59c13fea5d Fix nodes receiving mouse events in black bars of Window
Previously for InputEvents there was no distinction between
Window-area and Viewport-area.
This was problematic in cases where stretching was used and the Window
contained black bars at the sides of the Viewport.
This PR separates the area of Window and Viewport regarding InputEvents.
2023-08-09 12:34:22 +02:00
c751f190c9 Document RenderingServer.get_video_adapter_name() may report a fixed name
Firefox will always report the user's GPU as a GeForce GTX 980 in
an attempt to make fingerprinting more difficult.
This is not the case in Chromium-based browsers though.
2023-08-09 11:43:22 +02:00
Gio
15aa04314d Consistency for NodePath doc code examples
Just makes a code example in NodePath.xml similar to the others
2023-08-09 17:20:30 +08:00
c5ec847aa0 Add settings_changed signal to ProjectSettings 2023-08-08 23:57:31 +02:00
8aa6f29b56 [FileAccess] Add methods to get/set "hidden" and "read-only" attributes on macOS/BSD and Windows. 2023-08-08 21:51:32 +03:00
1163dac9e3 Merge pull request #80215 from clayjohn/HDR-2D
Add option to enable HDR rendering in 2D
2023-08-08 16:57:33 +02:00
98bdb56815 Further separate icon from text of buttons in both editor and default themes 2023-08-07 13:22:39 -03:00
8686e84b44 Add multi-threaded NavMesh baking to NavigationServer
Adds multi-threaded NavMesh baking to NavigationServer.
2023-08-07 17:14:37 +02:00
01758ea4ce Merge pull request #80264 from AttackButton/doc-current_scene
Clarify `SceneTree.current_scene` functionality
2023-08-07 14:52:46 +02:00
5146096869 Merge pull request #80254 from marcospb19/edit-description-of-node3d-basis
Clarify relationship between `basis` and `transform` properties of `Node3D`
2023-08-07 14:51:11 +02:00
75976a282a Merge pull request #79933 from SamDevelopsCode/softbody3d-documentation-update
Document `linear_stiffness` in SoftBody3D
2023-08-07 14:49:34 +02:00
7eb047a5ed Merge pull request #79643 from smix8/navgenerator_4.x
Move navigation mesh baking to NavigationServer
2023-08-07 14:48:15 +02:00
5fc0d71ecd Merge pull request #78266 from Faolan-Rad/master
Move registration of `fallbacks` property in the base Font class
2023-08-07 14:44:09 +02:00
3fa5a15a2c Merge pull request #72091 from MewPurPur/fix-nearest-po2
Improve documentation of `nearest_po2()`
2023-08-07 14:42:49 +02:00
b02d25605d Clarify SceneTree.current_scene functionality 2023-08-07 14:34:20 +02:00
b3b791350b Move registration of fallbacks property in the base Font class 2023-08-07 13:46:44 +02:00
faaf27f284 Fix various typos with codespell
Also includes typo fixes from #79993, #80068, #80276, and #80303.

Co-authored-by: betalars <contact@betalars.de>
Co-authored-by: spaceyjase <429978+spaceyjase@users.noreply.github.com>
Co-authored-by: Swarkin <102416174+Swarkin@users.noreply.github.com>
Co-authored-by: Raul Santos <raulsntos@gmail.com>
2023-08-07 13:09:47 +02:00
9e6da4e00e Clarify relationship between basis and transform properties of Node3D 2023-08-07 12:13:22 +02:00
57eb762bae Add option to enable HDR rendering in 2D
This is needed to allow 2D to fully make use of 3D effects (e.g. glow), and can be used to substantially improve quality of 2D rendering at the cost of performance

Additionally, the 2D rendering pipeline is done in linear space (we skip linear_to_srgb conversion in 3D tonemapping) so the entire Viewport can be kept linear.
This is necessary for proper HDR screen support in the future.
2023-08-07 11:24:03 +02:00
7ca6e94c36 Add description for SoftBody3D linear_stiffness property 2023-08-07 01:20:06 -05:00
dc6ea03101 Merge pull request #35555 from Calinou/add-version-project-setting
Add a "version" project setting and use it in new export presets
2023-08-04 21:01:15 +02:00
bf299233bc Merge pull request #80245 from timothyqiu/float-color-alpha
Fix wrong example output of `float*Color` in classref
2023-08-04 16:59:31 +02:00
8e0c898fc3 Merge pull request #80243 from timothyqiu/classref-typos
Fix various typos in classref
2023-08-04 16:59:27 +02:00
b8fa19cc19 Merge pull request #79495 from Chaosus/astargrid_all_solid
Add a `fill_region` method to the `AStarGrid2D`
2023-08-04 16:59:11 +02:00
54f26c66ab Fix wrong example output of float*Color in classref 2023-08-04 17:00:40 +08:00
097c849395 Fix various typos in classref 2023-08-04 16:29:55 +08:00
ad4480bf2e Add a "version" project setting and use it in new export presets
This makes it easy to retrieve the project version at runtime
for display purposes, while simplifying the export preset configuration.
You can now leave the version empty unless you need to override it on a per-preset
basis.

Since export presets save the values of default values to the `export_presets.cfg`
file, this change only affects export presets created after this commit was merged.
2023-08-04 10:29:33 +02:00
9e844cc0c8 PulseAudio: Remove get_latency() caching 2023-08-04 15:35:13 +09:30
1610fc2ae7 Merge pull request #78539 from EIREXE/input-info
Add the ability to get per-platform information for joypads
2023-08-03 22:37:45 +02:00
a56e960150 Merge pull request #71233 from PrecisionRender/barycentric-coords
Add ability to get face index and barycentric coordinates from raycast
2023-08-03 22:37:30 +02:00
744fa87da2 Move navigation mesh baking to NavigationServer
Moves navigation mesh baking to NavigationServer.
2023-08-03 19:49:07 +02:00
df57d0b569 Merge pull request #80141 from Mickeon/doc-peeves-boolwing
Overhaul bool documentation
2023-08-03 18:33:53 +02:00
c97e4a31ac Merge pull request #80217 from Mickeon/oops-rects
Revert incorrect `Rect2.expand` description.
2023-08-03 15:12:45 +02:00
f17d3a66fe Revert incorrect Rect2.expand description.
Also affects Rect2i of course.
2023-08-03 14:59:07 +02:00
f9d960c925 Merge pull request #80178 from YeldhamDev/override_all_the_things
Expose `Window`'s `_get_contents_minimum_size()` to scripting
2023-08-03 14:46:52 +02:00
ae8f1015e0 Merge pull request #79064 from MewPurPur/rename-button-pressed-THIS-IS-NOT-A-COMPAT-BREAK
Rename `button_pressed` default signal binding to avoid shadowing
2023-08-03 14:46:39 +02:00
2cec27a3f1 Add shortcut handling to OptionButton 2023-08-03 08:38:20 +00:00
3aa340d081 Add the ability to get per-platform information for joypads.
This adds the ability for games to obtain platform-specific information about joypads such as their vendor/product ID, their XInput gamepad index or the real name of the device before it gets swapped out by the gamecontrollerdb's name.

This PR also includes a rebased version of #76045, this is because this PR is intended to be mainly to help people implementing Steam Input, as having the gamepad index is essential.
2023-08-02 22:30:30 +02:00