Commit Graph

41222 Commits

Author SHA1 Message Date
Rémi Verschelde b68db2f98a
Merge pull request #57571 from Haydoggo/improved-expression 2022-02-04 09:30:50 +01:00
Mai Lavelle b966ca6167 Improve detection of gamepads on Linux
Some devices (Nintendo Switch Right Joy-Con) report only a right stick.
2022-02-03 22:56:43 -05:00
jordi 54dec44dba Add screen_get_refresh_rate to DisplayServer 2022-02-03 21:50:32 -06:00
Ignacio Roldán Etcheverry c24fc415dc
Merge pull request #57609 from Densorius/master
Add Visual Studio 2022 support with fallback to 2019
2022-02-04 03:47:11 +01:00
Densorius 9ea0508d35 Add Visual Studio 2022 support with fallback to 2019 2022-02-04 00:34:02 +01:00
Rémi Verschelde cfa2bfca4e
Merge pull request #57598 from Faless/js/4.x_fix_config_regression 2022-02-04 00:15:18 +01:00
Hayden Leete 018de19eba Added hex and bin literal support to Expression parser
fixed formatting
2022-02-04 10:49:19 +13: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
Rémi Verschelde 025e778020
Merge pull request #57175 from fire-forge/add-type-icons
Add type icons to Project Settings, Array, and Dictionary editors
2022-02-03 22:17:25 +01:00
Anilforextra adbe948bda String: Add contains(). 2022-02-04 01:28:02 +05:45
Rémi Verschelde c47f059776
Merge pull request #57467 from webbuf/modules-initialize
Initialized Member Variables in /modules
2022-02-03 20:41:29 +01:00
Rémi Verschelde 7191605324
Merge pull request #57587 from bruvzg/gde_fix_ptr_and_enum_returns
[GDExtension] Fix registration of functions with enum or native pointer return type.
2022-02-03 20:36:59 +01:00
fire540 d5d05386a6 Add type icons to Project Settings, Array, and Dictionary editors 2022-02-03 13:02:18 -06:00
Fabio Alessandrelli 6d3d17651a Revert "[HTML5] Better engine config parsing."
This reverts commit 2f509f1b12.

Breaks closure compiler builds.
And adds a warning for future readers.
2022-02-03 19:17:51 +01:00
Rémi Verschelde bf0253bab9
Merge pull request #56764 from madmiraal/fix-45592-2 2022-02-03 18:10:30 +01:00
Rémi Verschelde ffc828ac50
Merge pull request #57582 from akien-mga/editorproperty-range-fix-step 2022-02-03 17:51:16 +01:00
George Marques ceafdf347e
GDScript: Treat enum values as int and enum types as dictionary
Since enums resolve to a dictionary at runtime, calling dictionary
methods on an enum type is a valid use case. This ensures this is true
by adding test cases. This also makes enum values be treated as ints
when used in operations.
2022-02-03 13:32:34 -03:00
George Marques b013c0d544
GDScript: Allow tests to run on release builds
- Fix compilation issues by disabling warnings on release builds. This
  also strips warnings from expected result before the comparison to
  avoid false mismatches.
- Add a `#debug-only` flag to tests. Must be the first line of the test
  script. Those won't run with release builds. Can be used for test
  cases that rely on checks only available on debug builds.
2022-02-03 13:32:33 -03:00
George Marques ad6e2e82a9
GDScript: Consolidate behavior for assigning enum types
This makes sure that assigning values to enum-typed variables are
consistent. Same enum is always valid, different enum is always
invalid (without casting) and assigning `int` creates a warning
if there is no casting.

There are new test cases to ensure this behavior doesn't break in
the future.
2022-02-03 13:32:16 -03:00
Rémi Verschelde 5e39a8eded
Merge pull request #56992 from YeldhamDev/smarter_popmenu_focus 2022-02-03 17:15:06 +01:00
zwebb 466661c78f initialized member variables in header 2022-02-03 11:14:42 -05:00
Rémi Verschelde 3004415bfc
Merge pull request #57565 from jmb462/split_offset 2022-02-03 17:04:49 +01:00
Rémi Verschelde 45d5aa5d47
Merge pull request #56365 from aaronfranke/default-shape-size 2022-02-03 16:59:07 +01:00
Rémi Verschelde c0daec389d
Merge pull request #57589 from bruvzg/rtl_autowrap 2022-02-03 16:09:04 +01:00
Rémi Verschelde 6acbd5f774
Merge pull request #57102 from akien-mga/libwebp-1.2.2 2022-02-03 15:16:57 +01:00
Rémi Verschelde c4f38813b4
Merge pull request #57577 from bruvzg/mac_export_tr 2022-02-03 15:16:46 +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
bruvzg ddd96b3059
[GDExtension] Fix registration of functions with enum or native pointer return type. 2022-02-03 16:03:23 +02:00
Rémi Verschelde 17d33c0530
Merge pull request #57579 from Chaosus/shader_better_for_loop 2022-02-03 14:54:59 +01:00
Rémi Verschelde 7f93eb34cf
Merge pull request #57581 from groud/remove_get_fowus_owner 2022-02-03 13:35:19 +01:00
Rémi Verschelde ebe9495b7d
EditorProperty: Fix range hint parsing with optional step
This could lead to have a step of 0 when parsing e.g. "1,10,is_greater".
2022-02-03 12:57:59 +01:00
Rémi Verschelde e165f18ae5
Merge pull request #57350 from NeilKleistGao/master 2022-02-03 12:36:23 +01: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
Rémi Verschelde 309b9d3301
Merge pull request #57575 from timothyqiu/doc-stream-peer-buffer 2022-02-03 10:24:12 +01:00
Rémi Verschelde bab1ac6dcb
Merge pull request #57570 from Faless/net/4.x_http_client_req_noblock 2022-02-03 10:06:13 +01:00
Max Hilbrunner 98d8c9acd7
Merge pull request #57568 from TechnicalSoup/TechnicalSoup-patch-1
Expand description for warp_mouse_position method
2022-02-03 09:51:09 +01:00
Yuri Roubinsky 58696fd774 Allow multiple declarations in for loop in a shader 2022-02-03 11:35:38 +03:00
NeilKleistGao 1cf2b9a44b Add warning for Windows export when rcedit is not configured 2022-02-03 16:25:00 +08:00
Haoyu Qiu b30c566c19 Add documentation for StreamPeerBuffer 2022-02-03 16:00:55 +08:00
bruvzg 2eeff4caec
[macOS] Add empty translation files to the exported app bundle, to allow translation detection by the OS. 2022-02-03 09:56:10 +02:00
Fabio Alessandrelli ac4fb2996b [Net] Non-blocking request in HTTPClientTCP.
HTTPClientJavaScript already supports non-blocking requests.
2022-02-03 02:45:30 +01:00
TechnicalSoup 3dc1fad262
Expand description for warp_mouse_position method
Add more detail to the description for the warp_mouse_position method, clarifying that the vector is in screen coordinates and relative to an origin at the top of the game window.
2022-02-03 10:11:25 +11:00
Rémi Verschelde 339dcd80ae
libwebp: Sync with upstream 1.2.2
Changes: https://chromium.googlesource.com/webm/libwebp/+/1.2.2/NEWS
2022-02-02 23:29:30 +01:00
Rémi Verschelde 6de5bafd2f
Merge pull request #57547 from akien-mga/editorhelp-tooltip-set-fit_content_height 2022-02-02 23:19:30 +01:00
Rémi Verschelde 969780cd2d
Merge pull request #57203 from bruvzg/ios_export_fix 2022-02-02 23:14:30 +01:00
jmb462 71fb89390f Save script editor's function list split offset with the editor layout 2022-02-02 22:50:49 +01:00
Rémi Verschelde 5f3f0b5e00
Merge pull request #57563 from bruvzg/hb331 2022-02-02 22:17:43 +01:00
Rémi Verschelde 9f0a693b50
EditorHelpBit: Fix content height fit and RTL theme propagation
This reverts #51619 and fixes the issue properly, as well as enabling
`fit_content_height` which is necessary following #57304.

Fixes #57174.

Also adds a placeholder for property and signal tooltips with no description,
factoring the code while at it.

Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
2022-02-02 22:16:46 +01:00
Rémi Verschelde 7be7623d69
Merge pull request #57494 from Geometror/project-and-editor-settings-fixes 2022-02-02 21:55:08 +01:00