bruvzg
1c1036567a
[macOS] Generate min. Info.plist for frameworks if it's missing. Validate framework bundle ID characters.
2024-02-03 19:48:21 +02:00
bruvzg
b990cb95a9
[macOS] Add SIGTRAP to the crash handler.
2024-02-01 23:30:33 +02:00
Stuart Carnie
8f6d4eaa31
use autorelease pools around main loop
...
Reduces memory usage considerably
2024-02-02 07:06:53 +11:00
Rémi Verschelde
f220d46cdc
Merge pull request #80231 from romlok/input-key-location
...
Support detecting and mapping ctrl/alt/shift/meta by their left/right physical location
2024-01-29 13:15:42 +01:00
bruvzg
34723b0d3a
[macOS export] Allow unpacked .app export in "Distribution" export mode.
2024-01-28 00:02:20 +02:00
Mel Collins
8406e60522
Add InputEventKey.location to tell left from right
...
This adds a new enum `KeyLocation` and associated property
`InputEventKey.location`, which indicates the left/right location of key
events which may come from one of two physical keys, eg. Shift, Ctrl.
It also adds simulation of missing Shift KEYUP events for Windows.
When multiple Shifts are held down at the same time, Windows natively
only sends a KEYUP for the last one to be released.
2024-01-26 14:42:28 +01:00
Yuri Sizov
672b034076
Merge pull request #87303 from bruvzg/fd_options_no_editor
...
[Native File Dialog] Add support for adding custom options to the dialogs (w/o editor changes).
2024-01-25 16:26:58 +01:00
bruvzg
a8f521bcad
[Native File Dialog] Add support for adding custom options to the dialogs.
...
Add support for adding custom options (checkboxes and optionboxes) to the dialogs (both native and built-in).
2024-01-24 15:00:31 +02:00
bruvzg
ce47551822
[macOS] Fix missing modifier + space key down events.
2024-01-23 09:03:47 +02:00
bruvzg
7e5bce7090
[macOS] Update window visible state on deminiaturize.
2024-01-22 11:35:37 +02:00
Rémi Verschelde
4db2a6801f
Merge pull request #85206 from bruvzg/mac_clang_version_check_update
...
[macOS] Check Apple specific version instead of generic clang version.
2024-01-18 16:33:39 +01:00
bruvzg
a2c1c01941
[macOS] Fix MoltenVK SDK detection after file location changes in 1.3.275.0.
2024-01-17 19:37:33 +02:00
bruvzg
8c22836532
[macOS] Handle Trackpad / Magic Mouse swipe events and simulate XBUTTON1 / XBUTTON2 buttons.
2024-01-17 00:08:24 +02:00
Yuri Sizov
95b27fe8c7
Reorganize code related to editor theming
...
This change introduces a new EditorThemeManager class
to abstract theme generatio and its subroutines.
Logic related to EditorTheme, EditorColorMap, and editor
icons has been extracted into their respective files with
includes cleaned up.
All related files have been moved to a separate folder to
better scope them in the project. This includes relevant
generated files as well.
2024-01-16 11:57:45 +01:00
Rémi Verschelde
03767fbf3b
Merge pull request #86446 from reduz/transient-to-focused
...
Implement a `transient_to_focused` Window mode
2024-01-15 13:25:00 +01:00
Juan Linietsky
15144c24bd
Implement a transient_to_focused mode
...
This intends to be the correct way to handle non-child windows becoming covered by the current window when becoming focused.
Enabling this property on select windows, they will become transient to the currently focused one when becoming visible.
This deprecates the "unparent_when_invisible" function introduced by #76025 .
2024-01-14 18:51:44 +01:00
bruvzg
491077239c
[macOS/iOS export] Add option to set custom Info.plist data.
2024-01-11 21:05:35 +02:00
bruvzg
bf65c6514f
[macOS export] Fix RLE icon generation.
2024-01-07 18:58:46 +02:00
StagnationPoint
7035cf8c90
Add logging when macOS export will fail due to disabled texture formats. Since ETC2 ASTC is required for universal builds, also ensure it is enabled for them.
2024-01-05 02:44:59 -08:00
Rémi Verschelde
37df2ff387
Merge pull request #86682 from Daylily-Zeleen/daylily-zeleen/distinguish_between_dynamic_libaray_not_found_and_can't_open
...
Distinguish between dynamic library not found and can't be opened.
2024-01-02 18:06:17 +01:00
Daylily-Zeleen
fe6b073811
Distinguishs between dynamic library not found and can't be opened.
2024-01-01 20:01:57 +08:00
jsjtxietian
078bfae6a4
Add RD_ENABLED when VULKAN_ENABLED or D3D12_ENABLED is added
2023-12-25 11:13:01 +08:00
Yuri Sizov
3a8524dd92
Merge pull request #83452 from RandomShaper/rd_common
...
Split `RenderingDevice` into API-agnostic and `RenderingDeviceDriver` parts
2023-12-20 20:09:18 +01:00
Pedro J. Estébanez
12a519bae2
Split RenderingDevice into API-agnostic and RenderingDeviceDriver parts
...
Credit and thanks to @bruzvg for multiple build fixes, update of 3rd-party items and MinGW support.
Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
2023-12-20 19:18:08 +01:00
Yuri Sizov
aee8a3bada
Merge pull request #75489 from bruvzg/init_pos_usable
...
[DisplayServer] Use screen "usable rect" instead of full rect to calculate initial window rect.
2023-12-19 20:32:10 +01:00
bruvzg
0d44b50520
[macOS] Add default Window and Help menus, allow special menu customization.
2023-12-13 23:20:05 +02:00
Yuri Sizov
773b4d7764
Ensure more export errors are reported to users
...
Also fixes the timing issue when exporting all
presets at the same time, where the error report
would try to appear while the progress dialog
was still visible.
2023-12-06 15:26:07 +01:00
bruvzg
d48524a3f4
[macOS] Switch ANGLE backend to ANGLE over OpenGL, switch default compatibility renderer back to native.
2023-12-05 15:39:40 +02:00
Rémi Verschelde
c2d7cfe538
Merge pull request #85458 from HolySkyMin/mac_korean_fix
...
Fix IME key event being erased in macOS
2023-12-04 23:14:54 +01:00
bruvzg
b02cf351f3
[DisplayServer] Use screen "usable rect" instead of full rect to calculate initial window rect.
2023-12-04 07:56:33 +02:00
HolySkyMin
5962e5278c
Fix IME key event being erased in macOS
...
Fixes Korean IME behavior which calls insertText and setMarkedText at the same time.
2023-11-29 18:17:57 +09:00
Alex Drozd
8f2b701892
Fix order of operations for macos template check
2023-11-26 23:26:32 +01:00
bruvzg
5201475f62
[macOS] Check Apple specific version instead of generic clang version.
2023-11-22 09:05:45 +02:00
bruvzg
6b25204575
[macOS] Fix transparent and borderless flags interaction with full-screen mode.
2023-11-14 08:36:32 +02:00
Rémi Verschelde
5a5b456fca
Merge pull request #84774 from akien-mga/fix-TTR-in-ERR-WARN-prints
...
Don't use TTR/RTR for ERR/WARN prints
2023-11-12 22:59:38 +01:00
Rémi Verschelde
15b8185c68
Don't use TTR/RTR for ERR/WARN prints
...
We don't translate those, only editor strings are translated.
2023-11-12 12:00:55 +01:00
Rémi Verschelde
ba713c80df
Fix various typos with codespell
...
Using 2.2.7.dev51+geb4a58fe.
2023-11-11 23:01:24 +01:00
Rémi Verschelde
03d97977b1
Merge pull request #84649 from bruvzg/mac_fs_fs_switch
...
[macOS] Fix fullscreen <-> exclusive fullscreen transition.
2023-11-09 20:05:09 +01:00
Rémi Verschelde
aaafc69132
Merge pull request #84513 from bruvzg/x11_fallback_and_spam
...
[X11] Add fallback from desktop GL to GLES, suppress PRIME detector error spam.
2023-11-09 11:46:36 +01:00
bruvzg
4fda7e14be
[macOS] Fix fullscreen <-> exclusive fullscreen transition.
2023-11-09 08:02:56 +02:00
bruvzg
03662020a9
[macOS export] Improve icon generation.
2023-11-06 15:04:12 +02:00
bruvzg
f3d4f5a77e
[X11] Add fallback from desktop GL to GLES, suppress PRIME detector error spam.
2023-11-06 12:40:44 +02:00
Yuri Sizov
64d20e0ebf
Merge pull request #83482 from bruvzg/no_sign
...
[macOS] Remove deprecated altool notarization support, disable rcodesign for C# version.
2023-11-03 12:52:16 +01:00
bruvzg
6557e8aaaa
[macOS] Remove deprecated altool notarization support, add warning for rcodesign used with C# version.
2023-11-02 10:15:41 +02:00
bruvzg
4c74c7d11a
[macOS] Improve ANGLE support detection.
...
Try opening EGL display when checking if ANGLE is supported.
2023-11-01 08:34:35 +02:00
bruvzg
590c353707
[macOS] Fallback to native OpenGL renderer if ANGLE initialization failed. Remove platform specific renderer config values from docs.
2023-10-21 22:09:35 +03:00
bruvzg
e45cc9c72b
Use "version" project setting as macOS/iOS "short_version" fallback.
2023-10-20 19:31:08 +03:00
bruvzg
b52826bf55
Add error messages to the native menu and file dialogs callback.
2023-10-14 18:10:39 +03:00
Rémi Verschelde
51f81e1c88
Merge pull request #82957 from bruvzg/fs_case_check
...
Add method to check if filesystem is case sensitive.
2023-10-13 12:55:35 +02:00
bruvzg
6371cc3d69
[macOS] Fix crash when using system default menu shortcuts.
2023-10-13 10:12:44 +03:00
bruvzg
3620d612ba
[macOS] Use occlusionState instead of isOnActiveSpace to determine when window is drawable.
2023-10-10 12:20:06 +03:00
bruvzg
97bcd8a631
Add method to check if filesystem is case sensitive.
2023-10-09 11:00:15 +03:00
A Thousand Ships
f18aa00e85
Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
2023-10-08 17:23:33 +02:00
bruvzg
abbdc99821
[macOS] Fix ambiguous method call with older SDKs.
2023-10-05 22:12:24 +03:00
kobewi
09b30be86d
Add vararg call() method to C++ Callable
2023-10-05 11:35:29 +02:00
Rémi Verschelde
d8ab953442
Merge pull request #82163 from naelstrof/master
...
Made signal handling more uniform during crashes.
2023-10-05 10:08:09 +02:00
Rémi Verschelde
1e544505be
Merge pull request #82691 from YuriSizov/rst-validate-with-exceptions
...
Validate `code` tags for class and member references
2023-10-04 15:42:42 +02:00
Rémi Verschelde
d5db0e5032
Merge pull request #81218 from bruvzg/_temp_fs
...
[Native File Dialogs] Improve filter list handling, add selected filter to the callback.
2023-10-04 15:34:16 +02:00
bruvzg
d1aaa914f3
[macOS] Add `about_to_open` and `popup_hide` callback for the global menus, move part of logic to the PopupMenu to allow live menu modification.
2023-10-04 09:49:51 +03:00
bruvzg
43e4708dff
[Native File Dialogs] Improve filter list handling, add selected filter to the callback.
2023-10-03 19:26:16 +03:00
Rémi Verschelde
be6a09b6ec
Merge pull request #82423 from bruvzg/mac_ex_fs
...
[macOS] Check all exclusive fullscreen windows before setting presentation mode.
2023-10-03 17:23:18 +02:00
Rémi Verschelde
124f8983b8
Merge pull request #82357 from bruvzg/mac_fix_bl
...
[macOS] Fix borderless mode on macOS 13.6+.
2023-10-03 17:22:29 +02:00
Rémi Verschelde
5d300016a3
Merge pull request #81969 from bruvzg/macsign
...
[macOS export] Fix GDExtension framework `+x` flag errors, allow recursive signing on non macOS platform.
2023-10-03 17:21:15 +02:00
Rémi Verschelde
31dbbc2c5a
Merge pull request #80952 from bruvzg/nfdlg_refocus
...
[Native File Dialogs] Refocus last focused window on close.
2023-10-03 17:13:58 +02:00
Yuri Sizov
cc0eebd9d8
Validate `code` tags for class and member references
...
This commit also adds means to manually disable warnings
in `code` tags where it's a false positive with the new
`skip-lint` attribute.
Warnings are now enabled on CI to prevent future errors.
2023-10-03 15:48:31 +02:00
bruvzg
72e2e47059
[DisplayServer] Add method to estimate window title bar size.
2023-10-03 16:13:52 +03:00
bruvzg
b7b5fbe7aa
[macOS] Check all exclusive fullscreen windows before setting presentation mode.
2023-09-27 09:01:52 +03:00
A Thousand Ships
517e9f8aef
[Modules] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
2023-09-26 16:44:52 +02:00
bruvzg
873d4079d1
[macOS] Fix borderless mode on macOS 13.6+.
2023-09-26 11:55:25 +03:00
Mario Liebisch
426e18fd37
Updated compiler version detection
...
This fixes multiple issues/inconsistencies around `get_compiler_version()`:
* With no shell allocated, launching the compiler could fail even
with proper paths being set.
* The return value was described as "an array of version numbers as ints",
but the function actually returned a `Dictionary` (or `None`).
* Not all calls were properly handling a `None` return value in case of errors.
On Windows this broke compiling for me since #81869 with default settings.
* Some calls defined inconsistent defaults/fallbacks (`0` or `-1`).
2023-09-25 21:17:20 +02:00
naelstrof
b49e9c9896
Made signal handling more uniform. Fixes #82102
2023-09-22 20:06:58 -06:00
Rémi Verschelde
603119d301
Merge pull request #82037 from bruvzg/macos_gl_min_size
...
[macOS] Enforce non-zero window size.
2023-09-21 14:27:42 +02:00
bruvzg
1887a9df19
[macOS/Windows] Add optional ANGLE backed OpenGL renderer support. Add EGL_ANDROID_blob_cache caching.
...
Co-authored-by: Riteo <riteo@posteo.net>
2023-09-21 14:21:00 +03:00
bruvzg
901e090e56
[macOS] Enforce non-zero window size.
2023-09-21 12:37:18 +03:00
bruvzg
f316283823
[macOS export] Fix GDExtension framework +x flag errors, allow recursive signing on non macOS platform.
2023-09-20 12:21:18 +03:00
bruvzg
6da8c7a662
[macOS] Workaround Xcode 15 linker bug.
2023-09-20 11:03:44 +03:00
A Thousand Ships
3565d1bf7e
[Drivers,Platform] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
2023-09-12 20:13:32 +02:00
Yuri Sizov
07176632a6
Merge pull request #81339 from bruvzg/macos_fix_mvk_live_resize
...
[macOS] Fix live resize with the latest MoltenVK version.
2023-09-06 14:49:30 +02:00
bruvzg
208b379986
[macOS] Fix live resize with the latest MoltenVK version.
2023-09-05 16:21:08 +03:00
kobewi
6de34fde27
Add EditorStringNames singleton
2023-09-03 19:58:18 +02:00
bruvzg
2e1f48ff6e
[Native File Dialogs] Refocus last focused window on close.
2023-08-24 09:34:58 +03:00
Haoyu Qiu
d026b37abd
Fix various typos in classref
2023-08-22 18:05:50 +08:00
Aaron Franke
ada360affe
Add a button in the export dialog to fix missing texture formats
2023-08-17 02:56:42 -05:00
bruvzg
78caaf3717
[macOS] Fix missing mouse exit events on window close.
2023-08-09 10:23:57 +03:00
Rémi Verschelde
9d6570af3b
Merge pull request #79456 from bruvzg/popup_area_fix
...
Fix native popups auto-closing when interacting with non-client area.
2023-08-07 14:47:02 +02:00
Rémi Verschelde
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
bruvzg
e26a6c36c8
Fix native popups auto-closing when interacting with non-client area.
2023-08-07 10:01:48 +03:00
Yuri Sizov
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
Haoyu Qiu
097c849395
Fix various typos in classref
2023-08-04 16:29:55 +08:00
Hugo Locurcio
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
Yuri Sizov
24049b6646
Merge pull request #79950 from bruvzg/win_app
...
[macOS Export] Disable unpacked .app bundle export on Windows.
2023-08-02 21:37:01 +02:00
Yuri Sizov
0c2399d6ec
Merge pull request #63826 from deakcor/dev_clipboard
...
Add `clipboard_has/get_image` methods to DisplayServer
2023-07-27 15:22:16 +02:00
bruvzg
56bd7adae4
[macOS Export] Disable unpacked .app bundle export on Windows.
2023-07-27 13:21:23 +03:00
Yuri Sizov
ec66c53d52
Merge pull request #79572 from bruvzg/mac_bg_ws_sync
...
[macOS] Fix uncapped frame rate for windows in the non-active workspaces.
2023-07-18 15:10:09 +02:00
Vincent D
c13e3a9fb0
add clipboard get image methods for windows and macos
...
Co-Authored-By: RedworkDE <10944644+RedworkDE@users.noreply.github.com>
Co-Authored-By: bruvzg <7645683+bruvzg@users.noreply.github.com>
2023-07-17 23:47:27 +02:00
Phil Hudson
076ef3bf6a
iOS: Add `export_project_only` flag
2023-07-17 11:45:03 +02:00
bruvzg
2ee45dc293
[macOS] Fix uncapped frame rate for windows in the non-active workspaces.
2023-07-17 10:29:49 +03:00
Hendrik Brucker
7e21eb7e00
Extract and reorganize texture resource classes
2023-07-14 20:04:21 +02:00
bruvzg
4790da7900
[macOS] Implement optional native file selection dialog support for sandboxed apps.
2023-07-12 22:36:24 +03:00
Yuri Sizov
1da09fd477
Merge pull request #79062 from MewPurPur/svg-optimizations
...
Optimize SVG icons and remove unused Transpose icon
2023-07-12 21:02:53 +02:00
Yuri Sizov
ff689003a5
Merge pull request #77993 from bruvzg/key_lbl_from_p
...
Implement DisplayServer.keyboard_get_label_from_physical method.
2023-07-12 21:02:37 +02:00
Yuri Sizov
2b47f6715e
Merge pull request #78437 from bruvzg/set_icon
...
Add error checks and harmonize behavior of the `set_icon` method.
2023-07-12 15:09:14 +02:00
Yuri Sizov
6960a1d0e8
Merge pull request #78248 from felaugmar/load-svg-adjustable-scale
...
Added `Image::load_svg_from_(buffer|string)`
2023-07-12 15:09:03 +02:00
Kamil Brzoskowski
3cd865dbe8
Fix formatting of dlopen error message on Windows
...
And harmonize the format for all platforms.
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2023-07-09 23:39:45 +02:00
Rémi Verschelde
43c0fa7f4b
Merge pull request #78797 from Calinou/remove-redundant-vformat
...
Remove uses of `vformat()` with no placeholders
2023-07-08 18:18:35 +02:00
MewPurPur
fe194f8db0
Optimize SVG icons and remove unused Transpose icon
2023-07-07 17:58:15 +03:00
Rémi Verschelde
69dbbcc313
Merge pull request #79092 from akien-mga/doctool-remove-version-attribute
...
Doctool: Remove version attribute from XML header
2023-07-07 08:34:55 +02:00
Rémi Verschelde
9522ef67d5
Merge pull request #79010 from bruvzg/set_native_icon_crash
...
[macOS] Fix `set_native_icon` crash with empty or invalid ICNS file.
2023-07-07 08:32:56 +02:00
Rémi Verschelde
81064cc239
Doctool: Remove version attribute from XML header
...
We don't use that info for anything, and it generates unnecessary diffs
every time we bump the minor version (and CI failures if we forget to
sync some files from opt-in modules (mono, text_server_fb).
2023-07-06 10:08:21 +02:00
Rémi Verschelde
346f1ab86b
Bump version to 4.2-dev
...
Keep on waitin'
2023-07-05 22:07:03 +02:00
bruvzg
618795a214
[macOS] Fix set_native_icon crash with empty or invalid ICNS file.
2023-07-04 09:09:40 +03:00
bruvzg
9c5a0c6c10
Add error checks and harmonize behavior of the set_icon method.
2023-07-03 13:48:28 +03:00
Hugo Locurcio
dcc92c174e
Remove uses of `vformat()` with no placeholders
...
This is identical to passing the string directly.
2023-06-28 16:27:55 +02:00
Felipe Augusto Marques
26eb3db234
Added Image's `load_svg_from_(buffer|string)`
...
No core dependency to the svg module.
2023-06-23 00:43:43 -03:00
Rémi Verschelde
90446fe9f3
SCons: Move platform logo/run icon to `export` folder
...
Follow-up to #75932 .
Since these icons are only used by the export plugin, it makes sense to
move them and generate the headers there.
The whole `detect.is_active()` logic seems to be a leftover from before
times, as far back as 1.0-stable it already wasn't used for anything.
So I'm removing it and moving the export icon generation to
`platform_methods`, where it makes more sense.
2023-06-20 13:16:37 +02:00
Aaron Franke
a981158d1a
macOS: Finish checking templates before validating texture formats
2023-06-19 21:36:31 -05:00
Rémi Verschelde
356a602186
Merge pull request #74511 from AThousandShips/win_cursor_fix
...
Fix clearing custom cursor
2023-06-20 00:00:57 +02:00
Michael Alexsander
41a75cfa4f
Allow exporting release Android builds without a debug keystore
2023-06-19 01:00:13 -03:00
Rémi Verschelde
598378513b
Merge pull request #78319 from bruvzg/fix_lipo_fa
...
[macOS export] Fix lipo file handling.
2023-06-16 10:24:37 +02:00
bruvzg
c7f4e3fd25
[macOS export] Fix lipo file handling.
2023-06-16 11:07:56 +03:00
bruvzg
28db3c7158
[DisplayServer] Add method to check if native window is focused.
2023-06-16 10:27:52 +03:00
RedworkDE
5c57b3aba4
Fix docs after renaming export option
2023-06-12 23:59:55 +02:00
Rémi Verschelde
54a8adfd50
Merge pull request #75984 from KoBeWi/ConsoleMcWrap
...
Rename console script to wrapper
2023-06-12 22:54:24 +02:00
Aaron Franke
944fbce347
Enable S3TC_BPTC but not ETC2_ASTC by default
2023-06-09 11:38:29 -05:00
bruvzg
fe2d9e5bdf
[macOS] Fix IME focus in popup windows.
2023-06-09 08:03:13 +03:00
Rémi Verschelde
9e4315bb50
Style: Harmonize header includes in platform ports
...
This applies our existing style guide, and adds a new rule to that style
guide for modular components such as platform ports and modules:
Includes from the platform port or module should be included with relative
paths (relative to the root folder of the modular component, e.g.
`platform/linuxbsd/`), in their own section before Godot's "core" includes.
The `api` and `export` subfolders also need to be handled as self-contained
(and thus use relative paths for their "local" includes) as they are all
compiled for each editor platform, without necessarily having the api/export
matching platform folder in the include path.
E.g. the Linux editor build will compile `platform/android/{api,export}/*.cpp`
and those need to use relative includes for it to work.
2023-06-08 15:19:19 +02:00
bruvzg
08e8ff371d
Implement keyboard_get_label_from_physical method.
2023-06-08 10:13:31 +03:00
Michael Alexsander
71d8882a02
Enhance icon fallback and their docs for exporters
2023-06-03 19:28:50 -03:00
Rémi Verschelde
8623572b1f
Merge pull request #75666 from ronyeh/main.cpp-2
...
Rename `iconpath` => `icon_path` & `hasicon` => `has_icon`.
2023-06-02 17:26:18 +02:00
bruvzg
5b9984b5a2
Add `audio/general/text_to_speech` project setting to enable/disable TTS.
2023-05-18 20:16:03 +03:00
Rémi Verschelde
265c70a369
Merge pull request #75142 from bruvzg/scr
...
[DisplayServer] Implement screen_get_image method for LinuxBSD/X11, macOS and Windows.
2023-05-16 10:48:16 +02:00
Rémi Verschelde
258fabdbb3
Merge pull request #76836 from Faless/tls/system_certs
...
[TLS] Add support for platform-specific CA bundles.
2023-05-12 11:17:31 +02:00
Fabio Alessandrelli
6fd9982358
[TLS] Add support for platform-specific CA bundles.
...
Adds a new OS::get_system_ca_certs method which can be implemented by
platforms to retrieve the list of trusted CA certificates using OS
specific APIs.
The function should return the certificates in PEM format, and is
currently implemented for Windows/macOS/LinuxBSD(*)/Android.
mbedTLS will fall back to bundled certificates when the OS returns no
certificates.
(*) LinuxBSD does not have a standardized certificates store location.
The current implementation will test for common locations and may
return an empty string on some distributions (falling back to the
bundled certificates).
2023-05-12 09:58:23 +02:00
Ninni Pipping
71ee65dc57
Enable shadow warnings and fix raised errors
2023-05-11 16:00:59 +02:00
Rémi Verschelde
a1db628eb3
Merge pull request #76856 from HolonProduction/macos-specific
...
Don't expose macOS and iOS specific display servers.
2023-05-11 11:47:58 +02:00
HolonProduction
ddcb2d157d
Don't expose mac specific display server.
2023-05-11 11:02:08 +02:00
Andreas Raddau
fab160ce70
Store sensitive export options in dedicated credentials file
2023-05-10 11:40:17 +02:00
Rémi Verschelde
e1075e9c7c
Fix various typos with codespell
...
Also includes the grammar fix from #76206 .
Co-authored-by: Peter Anderson <BWPanda@users.noreply.github.com>
2023-04-26 13:57:09 +02:00
bruvzg
a97225c753
[macOS] Implement OS::shell_show_in_file_manager()
2023-04-25 11:48:41 +03:00
bruvzg
fd3e7e25e8
[macOS] Bump min. version to 10.13, and remove deprecated code.
2023-04-24 10:52:50 +03:00
Hugo Locurcio
303bf247de
Add support for VRAM-compressed custom mouse cursor images
...
No memory is actually saved when using this, so lossless modes are
still recommended as they look better and load faster.
2023-04-21 18:01:47 +02:00
bruvzg
a5128e71bb
[Export docs] Move docs to platform folders.
2023-04-20 11:02:12 +03:00
Rémi Verschelde
989fa49e71
Merge pull request #75219 from bruvzg/get_focus_screen
...
Add project manager / editor initial screen settings, implement `get_keyboard_focus_screen` method.
2023-04-19 10:13:44 +02:00
bruvzg
520a8d8ed2
Add project manager / editor initial screen settings, implement DisplayServer.get_keyboard_focus_screen method.
2023-04-19 08:54:53 +03:00
bruvzg
0088981c40
[Export] Add readable descriptions and validation warnings to the export options.
2023-04-19 08:35:59 +03:00
Danil Alexeev
36bedd341a
Fix misuses of error macros
2023-04-18 10:20:48 +03:00
kobewi
a3799208c0
Rename console script to wrapper
2023-04-12 15:14:51 +02:00
Rémi Verschelde
95791889e2
Merge pull request #75933 from akien-mga/windows-tts-hashmap
...
Windows TTS: Use HashMap instead of RBMap for ids
2023-04-11 19:41:03 +02:00
Rémi Verschelde
f7f7250c0d
Merge pull request #75827 from Kvel2D/fix-custom-cursor-atlas-texture-bug
...
Fix custom cursor using atlas texture
2023-04-11 19:40:44 +02:00
Rémi Verschelde
02b9a9268a
Merge pull request #74326 from mjunix/patch-1
...
macOS export: Fix validation of codesigning certificate password
2023-04-11 19:40:11 +02:00
Kvel2D
41f0a523db
Fix custom cursor using atlas texture
...
Remove image.is_valid() check
There is already a fail condition and image is not used before that
Move up texture_is_valid() check
2023-04-11 19:16:24 +02:00
Johan Mattsson
76e1d1363b
macOS export: Fix validation of codesigning certificate password
2023-04-11 18:45:46 +02:00
Rémi Verschelde
92b9806dcc
Windows TTS: Use HashMap instead of RBMap for ids
...
And fixup includes in other implementations.
2023-04-11 15:54:21 +02:00
Ron B. Yeh
c8cbc67156
Rename `iconpath => icon_path` & `hasicon => has_icon`.
2023-04-04 17:05:37 -07:00
bruvzg
48730e3b77
[macOS] Fix infinite loop caused by global menu callbacks which trigger EditorProgress dialog.
2023-03-23 13:38:12 +02:00
bruvzg
ab94024ce1
[DisplayServer] Implement screen_get_image method for LinuxBSD/X11, macOS and Windows.
2023-03-20 14:58:21 +02:00
bruvzg
42a30c76d9
[macOS] Remove unnecessary debug prints.
2023-03-14 20:04:58 +02:00
John Veness
4505049ba6
Corrected capitalisation of macOS
...
In documentation and comments, ignoring thirdparty code
2023-03-12 16:48:52 +00:00
Ninni Pipping
a419325753
Fix clearing custom cursor
2023-03-10 11:59:49 +01:00
Hugo Locurcio
ddc9cc3e49
Tweak command syntax in Vulkan renderer failure message
...
This quotes the executable name so that copying it always works
(even if the path contains spaces).
The command is also indented from the rest of the text and is
no longer single-quoted, as that can prevent the command from
running if the line is copied in its entirety (with the quotes).
2023-03-08 22:28:23 +01:00
Ron B. Yeh
7e7ac1bb87
Rename mkv_list to mvk_list (MoltenVK path list).
2023-03-06 16:25:00 -08:00
bruvzg
e7647b5ee5
[DisplayServer] Implement screen_get_pixel method for LinuxBSD/X11, macOS and Windows.
2023-03-01 09:32:23 +02:00
bruvzg
fdf56a2fc2
[Input] Use BRACKET_ instead of BRACE_ for physical keys.
2023-02-22 12:39:30 +02:00
bruvzg
6f418a3441
[macOS] Fix Input.warp_mouse shifted by one screen pixel.
2023-02-21 08:30:28 +02:00
Aaron Franke
c53ab56633
macOS: Enable `display/high_res` by default
2023-02-17 10:27:28 -06:00
Rémi Verschelde
4574b97752
Fix crash with bogus shape index to DisplayServer.cursor_set_custom_image()
...
Fixes #66605 .
2023-02-17 14:17:37 +01:00
Zoee Silcock
85ff7a2d2a
Fix so that the main window is displayed before the splash screen minimum display time starts counting on Mac OS
2023-02-01 16:21:58 +01:00
Rémi Verschelde
707ccc09ab
Merge pull request #72104 from bruvzg/popup-non-popups
...
Extend special popup window handling to any non-popup child of a popup.
2023-02-01 11:07:39 +01:00
Juan Linietsky
28f51ba547
Refactor high quality texture import
...
* Only two texture import modes for low/high quality now:
* S3TC/BPTC
* ETC2/ASTC
* Makes sense given this is the general preferred and most compatible combination in most platforms.
* Removed lossy_quality from VRAM texture compression options. It was unused everywhere.
* Added a new "high_quality" option to texture import. When enabled, it uses BPTC/ASTC (BC7/ASTC4x4) instead of S3TC/ETC2 (DXT1-5/ETC2,ETCA).
* Changed MacOS export settings so required texture formats depend on the architecture selected.
This solves the following problems:
* Makes it simpler to import textures as high quality, without having to worry about the specific format used.
* As the editor can now run on platforms such as web, Mac OS with Apple Silicion and Android, it should no longer be assumed that S3TC/BPTC is available by default for it.
2023-01-30 15:53:23 +01:00
daviirodrig
240374c58f
Fix split allow empty string in SSH export plugin
2023-01-27 05:09:30 -03:00
bruvzg
700d85bd19
Extend special popup window handling to any non-popup child of a popup.
2023-01-26 12:38:53 +02:00
bruvzg
daad4aed62
Cleanup and unify keyboard input.
...
- Unify keycode values (secondary label printed on a key), remove unused hardcoded Latin-1 codes.
- Unify IME behaviour, add inline composition string display on Windows and X11.
- Add key_label (localized label printed on a key) value to the key events, and allow mapping actions to the unshifted Unicode events.
- Add support for physical keyboard (Bluetooth or Sidecar) handling on iOS.
- Add support for media key handling on macOS.
Co-authored-by: Raul Santos <raulsntos@gmail.com>
2023-01-23 15:08:12 +02:00
bruvzg
1cc5524b81
[iOS] Restore OpenGLES3 renderer support.
2023-01-22 13:59:52 +02:00
bruvzg
aecfd92ea8
[macOS] Move `Wno-deprecated-declarations` to pragmas in the OpenGL related files, update some deprecated code.
2023-01-20 11:31:07 +02:00
Rémi Verschelde
68d71f88f5
Improve DisplayServer message for video card drivers failure
...
And remove leftover duplicated message on Android.
2023-01-17 15:41:54 +01:00
bruvzg
34b34b104c
Add `WINDOW_FLAG_MOUSE_PASSTHROUGH` flag and enabled it for tooltips. Expose `window_set_mouse_passthrough` to `Window`.
2023-01-16 11:42:49 +02:00
Yuri Sizov
4c1f11944e
Update all outdated online documentation links
2023-01-14 19:38:00 +03:00
Rémi Verschelde
3dffe0b967
Merge pull request #63312 from bruvzg/one_click
...
[Export] Add one-click deploy over SSH for the desktop exports.
2023-01-13 18:00:18 +01:00
bruvzg
1ed4ed3a16
[macOS] Avoid color flash on window creation and resizing.
2023-01-13 07:39:45 +02:00
Patrick Gelvin
8495224d13
Require Apple Team ID when using notarytool
...
Adds a requirement that the Team ID is specified when
notarizing with the new notarytool.
Fixes #70307
2023-01-12 15:00:07 -07:00
Juan Linietsky
2b815df3c1
Use BitField<> in core type masks
...
* All core types masks are now correctly marked as bitfields.
* The enum hacks in MouseButtonMask and many other types are gone. This ensures that binders to other languages non C++ can actually implement type safe bitmasks.
* Most bitmask operations replaced by functions in BitField<>
* Key is still a problem because its enum and mask at the same time. While it kind of works in C++, this most likely can't be implemented safely in other languages and will have to be changed at some point. Mostly left as-is.
* Documentation and API dump updated to reflect bitfields in core types.
2023-01-08 22:17:40 +01:00
bruvzg
2718a7b7d3
Add support for the custom initial screen for the main window, fix primary screen detection.
2023-01-07 11:14:35 +02:00
Rémi Verschelde
d95794ec8a
One Copyright Update to rule them all
...
As many open source projects have started doing it, we're removing the
current year from the copyright notice, so that we don't need to bump
it every year.
It seems like only the first year of publication is technically
relevant for copyright notices, and even that seems to be something
that many companies stopped listing altogether (in a version controlled
codebase, the commits are a much better source of date of publication
than a hardcoded copyright statement).
We also now list Godot Engine contributors first as we're collectively
the current maintainers of the project, and we clarify that the
"exclusive" copyright of the co-founders covers the timespan before
opensourcing (their further contributions are included as part of Godot
Engine contributors).
Also fixed "cf." Frenchism - it's meant as "refer to / see".
2023-01-05 13:25:55 +01:00
Rémi Verschelde
8791e333da
Merge pull request #70624 from bruvzg/cur_sc
...
Improve `window_set_current_screen` and fix secondary window initial mode and positions.
2023-01-03 15:56:05 +01:00
bruvzg
f7955633de
Improve `window_set_current_screen` and fix secondary window initial mode and positions.
2022-12-29 09:43:39 +02:00
bruvzg
cebefc9f5d
[Export] Add one-click deploy over SSH for the desktop exports.
...
Add one-click deploy over SSH for the desktop exports.
Add ZIP export option for Linux and Windows.
Change export plugin icons to SVG format.
2022-12-29 09:42:00 +02:00
bruvzg
5478f9b842
[macOS] Fix stylus tilt Y direction.
2022-12-23 23:39:46 +02:00
bruvzg
104258c5c5
[macOS/iOS] Use framework Info.plist to determine library name.
2022-12-16 11:42:29 +02:00
Hugo Locurcio
6799d000b1
Only support XDG directory path configuration on Linux
...
XDG support breaks when running Windows builds via WINE.
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2022-12-12 11:43:16 +01:00
Rémi Verschelde
0a3f66471e
Merge pull request #69712 from bruvzg/real_size
...
Rename `window_get_real_size`, add position counterpart.
2022-12-07 14:29:46 +01:00
bruvzg
9189c96aef
[macOS export] Add support for Xcode notarytool.
2022-12-07 13:01:12 +02:00
bruvzg
edf13eb5a6
Rename `window_get_real_size` to `window_get_size_with_decorations`, add `window_get_position_with_decorations`.
2022-12-07 11:07:30 +02:00
bruvzg
ecec415988
Use system fonts as fallback and improve system font handling.
...
Add support for font weight and stretch selection when using system fonts.
Add function to get system fallback font from a font name, style, text, and language code.
Implement system font support for Android.
Use system fonts as a last resort fallback.
2022-12-04 18:44:20 +02:00
Rémi Verschelde
7bffdca41c
Merge pull request #69380 from bruvzg/mac_max_ws
...
[macOS] Improve maximized and non-resizable modes handling.
2022-12-02 12:25:25 +01:00
bruvzg
8cd08f8b6f
[macOS] Improve maximized and non-resizable modes handling.
2022-11-30 11:34:40 +02:00
bruvzg
aa117a128e
[macOS] Fix export button incorrectly disabled when using login/app password for notarization.
2022-11-30 10:38:53 +02:00
bruvzg
aaf4d7dfe1
[macOS] Fix sub-windows opening in fullscreen.
2022-11-28 14:11:21 +02:00
Rémi Verschelde
afe1c89fb5
Merge pull request #68897 from bruvzg/mac_reparent
...
[macOS] Dynamically attach and detach transient windows to allow them to stay on top of parent and be moved to another screen.
2022-11-21 11:44:02 +01:00
bruvzg
908bef8eee
[Export] Use image loader directly to avoid "resource as image file" errors.
2022-11-21 10:11:59 +02:00
bruvzg
c2b061dec3
[macOS] Dynamically attach and detach transient windows to allow them to stay on top of parent and can be moved to another screen.
2022-11-21 10:11:14 +02:00