1
0
Fork 0
Commit Graph

6505 Commits

Author SHA1 Message Date
Pāvels Nadtočajevs 22b5a2fc5c
Change editor button focus mode to `FOCUS_ACCESSIBILITY`. 2025-06-08 15:53:27 +03:00
kleonc 576e1f1263 Ensure hiding AcceptDialog OK button keeps other buttons centered 2025-06-08 12:40:19 +02:00
LuoZhihao 7b4c95e6d8 ColorPicker: Add okhsl HS and HL rectangular picker shapes 2025-06-07 22:30:40 +08:00
Rémi Verschelde 7cd4a319a4
Merge pull request #107198 from beicause/color-picker-fix-okhsl-cursor
ColorPicker: Fix cursor position in okhsl circle
2025-06-06 17:38:19 +02:00
LuoZhihao 2a4fc10868 ColorPicker: Fix cursor position in okhsl circle 2025-06-06 13:45:35 +08:00
Logan Detrick 0413297f7f Add dock dragging area and highlight 2025-06-05 16:02:33 -07:00
Rémi Verschelde fc5b99f3d6
Merge pull request #107125 from roughbits01/line-edit-caret-desync-secret-toggle
Fix LineEdit's caret desyncing issue when toggling secret mode
2025-06-05 13:13:52 +02:00
Rémi Verschelde d37a1134eb
Merge pull request #107092 from bruvzg/rtl_ol_offset
[RTL] Fix outline offset.
2025-06-05 13:13:36 +02:00
Rémi Verschelde 8e0c258408
Merge pull request #106300 from bruvzg/rtl_ualp
[RTL] Add options to override underline color and default alpha.
2025-06-05 13:11:39 +02:00
Rémi Verschelde b25f609eed
Merge pull request #105994 from syntaxerror247/split_container
Add option for a touch-friendly drag handle in `SplitContainer`
2025-06-05 13:11:14 +02:00
Pāvels Nadtočajevs 332352d37f
[RTL] Add options to override underline color and default alpha. 2025-06-05 12:39:25 +03:00
Marwen Azouzi 5cba0b22e9
Fix LineEdit's caret desyncing issue when toggling secret mode 2025-06-05 10:01:11 +02:00
Thaddeus Crews 56b492d154
Merge pull request #107055 from roughbits01/line-edit-drag-selection
Fix LineEdit continues to force showing the caret after drag is aborted
2025-06-04 10:34:34 -05:00
Thaddeus Crews 6c16d3a61f
Merge pull request #106286 from BrotherShort/FileSystemTree-rename-offset
Fix FileSystemTree rename TextEdit is offset
2025-06-04 10:34:31 -05:00
Thaddeus Crews 2a74c5e521
Merge pull request #106729 from roughbits01/line-edit-vk-keep_editing_on_text_submit
Keep virtual keyboard visible when `keep_editing_on_text_submit` is enabled
2025-06-04 10:34:29 -05:00
Pāvels Nadtočajevs f4f26e6edc
Unify `get_[_visible]paragraph/line_count` behavior. 2025-06-04 09:39:01 +03:00
Marwen Azouzi 3e1e686d31
Fix LineEdit forcing caret to show after aborted selection drag 2025-06-04 00:24:45 +02:00
Thaddeus Crews 1b37dacc18
Merge pull request #106622 from beicause/rm-unnecessary-validate-property-call
Remove unnecessary calling `_validate_property()` in the core from all extended classes
2025-06-03 15:30:28 -05:00
Thaddeus Crews af32c5234b
Merge pull request #101219 from L2750558108/add-video-speed-virtual
Add speed scale feature for VideoStreamPlayer node
2025-06-03 15:30:26 -05:00
Thaddeus Crews 092dc74e3b
Merge pull request #107088 from ProgrammerOnCoffee/make-shortcut-timer-internal
Make `BaseButton`s' shortcut feedback timers internal
2025-06-03 15:30:25 -05:00
Thaddeus Crews 51b17759a2
Merge pull request #103719 from YeldhamDev/build_detection_improvements
Make build profile project detection also set build options
2025-06-03 15:30:14 -05:00
Pāvels Nadtočajevs 3652614837
[RTL] Fix outline offset. 2025-06-03 19:35:18 +03:00
Anish Mishra bccf36b27b Add option for a touch-friendly drag handle in `SplitContainer` 2025-06-03 19:49:56 +05:30
Michael Alexsander 454e4f817c
Make build profile project detection also set build options 2025-06-03 11:11:33 -03:00
LuoZhihao 713ed59a77 Remove unnecessary `_validate_property()` calling 2025-06-03 21:57:36 +08:00
ProgrammerOnCoffee 360ee10a6e Make `BaseButton`s' shortcut feedback timers internal 2025-06-03 09:52:28 -04:00
kobewi 706bfd810b Add thumbnail mode to FIleDialog 2025-06-03 02:06:14 +02:00
Thaddeus Crews e45cc68092
Merge pull request #106746 from HolonProduction/tab-container-material-fix
GUI: Use `TabContainer` material for internal `TabBar`
2025-06-02 18:51:58 -05:00
Thaddeus Crews fd600b32df
Merge pull request #105680 from KoBeWi/my_recent_favorites
Add favorites and recent directories to FileDialog
2025-06-02 18:51:47 -05:00
Thaddeus Crews 46800458c4
Merge pull request #106516 from lodetrick/tabbar-margins
Fix TabContainer not respecting `tabbar_background`'s margins
2025-06-02 18:51:25 -05:00
Thaddeus Crews 04924c6e71
Merge pull request #106899 from roughbits01/line-edit-extra-queue-draw
Remove redundant `queue_redraw()` & fix typo
2025-06-02 18:51:24 -05:00
Logan Detrick 944295ab04 Fix TabContainer respecting tabbar_background margins 2025-05-31 13:49:38 -07:00
Marwen Azouzi 873833b4a7
Remove redundant `queue_redraw()` & fix typo 2025-05-29 17:22:32 +02:00
kobewi f75c564d58 Add favorites and recent directories to FileDialog 2025-05-29 15:50:29 +02:00
kit ebf71cd4f3 Fix CodeEdit hover word lookup 2025-05-28 18:35:15 -04:00
kobewi df70765af0 Fix SCROLL_MODE_RESERVE with RTL layout 2025-05-28 23:24:27 +02:00
2750558108 c2eba05312 Add speed scale feature for VideoStreamPlayer node 2025-05-28 08:58:32 +08:00
kit 48624a0778 Allow TabBar drag and drop to be overridden
Add tab mouse tests
2025-05-27 11:56:37 -04:00
Marwen Azouzi f03943f37b
[Web] Keep virtual keyboard visible when `keep_editing_on_text_submit` is enabled 2025-05-27 17:16:51 +02:00
Thaddeus Crews b37869e36d
Merge pull request #106825 from berarma/video_timing
VideoStreamPlayer: Fix sync with the scene tree
2025-05-27 09:39:26 -05:00
Thaddeus Crews 482dacc300
Merge pull request #103583 from beicause/color-picker-add-intensity
ColorPicker: Add an intensity slider to all modes for HDR
2025-05-27 09:39:21 -05:00
Bernat Arlandis 1165021b0c VideoStreamPlayer: Fix sync with the scene tree 2025-05-26 20:04:14 +02:00
Thaddeus Crews 955744fdaf
Merge pull request #106733 from Ivorforce/ok-rainbows
Use OkHSV for `RichTextLabel` rainbows
2025-05-26 11:24:44 -05:00
Thaddeus Crews 04af103d0b
Merge pull request #106815 from timothyqiu/menu-bar-min-size
Fix MenuBar min size not updating after child rename
2025-05-26 11:24:36 -05:00
Thaddeus Crews 777f1c10fa
Merge pull request #105376 from KoBeWi/quequeque
Queue hover update when creating TreeItem
2025-05-26 11:24:32 -05:00
Thaddeus Crews 5df01a8c5a
Merge pull request #96925 from SaNeOr/fix-#96908
Fix spaces converted to tabs in triple quote strings
2025-05-26 11:24:30 -05:00
Thaddeus Crews 506417fe43
Merge pull request #105623 from lodetrick/section-feature-hide
Allow Inspector Section Checkboxes to hide features, Add "On" text to checkboxes
2025-05-26 11:24:25 -05:00
Haoyu Qiu b2d47352d0 Fix MenuBar min size not updating after child rename 2025-05-26 14:37:30 +08:00
Pāvels Nadtočajevs 1d33693e0d
Add missing `TRANSLATION_CHANGED` notifications. 2025-05-26 07:52:07 +03:00
chansoen cf7e88f6ac Fix `option_button.cpp` not updating selected when out of bounds 2025-05-23 13:00:31 -07:00
HolonProduction f6e26d01d5 GUI: Use `TabContainer` material for internal `TabBar` 2025-05-23 13:58:01 +02:00
LuoZhihao 8a9409257b ColorPicker: Add intensity slider
Add intensity slider to all color modes. Replace raw mode by linear mode, which uses linear color space.

When color is overbright, automatically switch hex text to script text. Allow executing expression in script text field to set color. Add the "script" icon to the default theme.
2025-05-23 12:45:29 +08:00
Lukas Tenbrink ea6fbd6687 Use OkHSV for rainbow labels. 2025-05-22 22:53:32 +02:00
BrotherShort 9222341575 Fix FileSystemTree rename TextEdit is offset 2025-05-23 01:02:06 +08:00
Bernat Arlandis b9bebf7081 Full Theora video support in VideoStreamPlayer
- Implement `set_stream_position` and `get_stream_length`.
- Don't show blank frame when stopping the video (smooth loops).
- Fix audio for videos with up to 8 channels.
- Improve internal audio handling.
2025-05-22 14:00:57 +02:00
kobewi 42249bb659 Add @export_file_path to export raw paths (no UID) 2025-05-22 13:25:17 +02:00
Logan Detrick 1a427d3dec Add feature hint string and "On" text for checkable groups 2025-05-21 14:56:55 -07:00
Thaddeus Crews 6414451ced
Merge pull request #106441 from jorgekorgut/fix-highlight-issues
Fix highlighting warning and error issues
2025-05-21 09:06:24 -05:00
Thaddeus Crews f1e18433d1
Merge pull request #106657 from Riteo/mfw-single-window-mode-broke
Wayland: Fix window fitting in single-window mode
2025-05-21 09:06:22 -05:00
Riteo 408de3c970 Wayland: Fix window fitting in single-window mode
We disabled window fitting in multi-window mode as it was broken due to
the limited data but it should still be enabled for embedded windows.
2025-05-21 00:58:41 +02:00
Thaddeus Crews 8bd428599c
Merge pull request #106621 from bruvzg/hexbox_bl
Adjust hex code box baseline calculation.
2025-05-20 11:37:23 -05:00
kobewi c632cf9ffa Deselect invisible TreeItems 2025-05-20 16:58:54 +02:00
Jorge Korgut Junior 77e6d92357 Fix highlighting warning and error issues related to Godot editor.
Fix Issue #104413 : Add a limit of 20 lines of warning highlight otherwise paint the background of the first line only.
Fix Issue #106278 : Extract the logic from clearing and setting background lines from _update_errors() and _update_warnings() to _update_background_text().
Fix Issue #83979 : Added signal for folding/unfolding lines (fold_lines_updated).
Feature: Highlight the folded line using signals connected to _update_background_text() to keep the editor visuals up to date. The background is set in the following priority order: Error, Warning, then Highlight background.
2025-05-20 10:03:39 +02:00
Pāvels Nadtočajevs 7fc4521dd8
Adjust hex code box baseline calculation. 2025-05-20 08:53:40 +03:00
Thaddeus Crews be3ecaeb3c
Merge pull request #106588 from timothyqiu/tree-new-bee
Lazy create menu and slider nodes in `Tree`
2025-05-19 16:22:30 -05:00
Haoyu Qiu 7aa9174bc4 Lazy create menu and slider nodes in `Tree` 2025-05-19 15:59:48 +08:00
Marwen Azouzi 296bee6bce
Fix LineEdit with secret checked reveals the secret when a selection is dragged 2025-05-19 08:52:45 +02:00
Thaddeus Crews 34f005d810
Merge pull request #106487 from bruvzg/rtl_fix
Revert #104357 and #106141 to fix Control RTL position
2025-05-16 10:29:03 -05:00
Thaddeus Crews 1e50e05235
Merge pull request #105723 from KoBeWi/sortatron
Add file sort to FileDialog
2025-05-16 07:43:13 -05:00
Pāvels Nadtočajevs 25ae5c8ab4
Revert "Fix #100536: Control set_position resizes offsets/anchors"
This reverts commit ca57fe1db4.
2025-05-16 14:21:18 +03:00
Pāvels Nadtočajevs 4976b38dec
Revert "Fix unexpected control position change when left/top offsets not match pos_cache"
This reverts commit 49c7966042.
2025-05-16 14:19:51 +03:00
Thaddeus Crews da9fb81e1f
Merge pull request #89556 from smntic/single-char
Fix words not being selected by endpoints
2025-05-15 14:53:24 -05:00
Thaddeus Crews f3e0005266
Merge pull request #105547 from KoBeWi/default_ok_ok
Improve default OK text in AcceptDialog
2025-05-15 10:22:23 -05:00
Thaddeus Crews be33a05a1e
Merge pull request #106430 from timothyqiu/tree-new-bee
Cleanup header includes in Tree
2025-05-15 10:22:19 -05:00
kobewi 33dcd7a6d9 Add file sort to FileDialog 2025-05-15 13:23:38 +02:00
Haoyu Qiu 88d922c55e Cleanup header includes in Tree 2025-05-15 14:28:00 +08:00
kobewi 076608c979 Improve default OK text in AcceptDialog 2025-05-14 23:08:22 +02:00
Danil Alexeev decf5bf865
GUI: Copy all text in `RichTextLabel` if nothing is selected 2025-05-14 19:31:57 +03:00
Thaddeus Crews 8b4dd7a34e
Merge pull request #105724 from dugramen/recovery/split-commit
Add inline color pickers to script editor
2025-05-14 09:44:16 -05:00
Thaddeus Crews 43010e8839
Merge pull request #106357 from YYF233333/remove_search_array
Move bisect functionality to `Span` and deduplicate code
2025-05-14 09:44:14 -05:00
Thaddeus Crews 926cadb093
Merge pull request #106257 from lodetrick/tab-control-fixes
Fix TabBar Hidden Tabs Handling
2025-05-14 09:44:13 -05:00
Thaddeus Crews 4a05246d29
Merge pull request #106342 from Ivorforce/fix-text-edit-search
Refactor `TextEdit::search` to be more robust to failure.
2025-05-14 09:44:07 -05:00
Yufeng Ying 3bf400ffae Move bisect to Span and deduplicate code.
Co-authored-by: Lukas Tenbrink <lukas.tenbrink@gmail.com>
2025-05-14 18:19:09 +08:00
Lukas Tenbrink 581e899785 Refactor `TextEdit::search` to be more robust to failure. 2025-05-14 10:16:42 +02:00
Logan Detrick 5fbc8a61fc Fix TabBar hidden tabs handling 2025-05-13 18:11:00 -07:00
dugramen b9f59ae6ca Add color pickers to script editor 2025-05-13 18:03:21 -04:00
Thaddeus Crews 22a0e81a69
Merge pull request #103922 from Jesusemora/Jesusemora-patch-1
Show `theme_type_variation`s in the inspector on `Control`s that inherit a theme
2025-05-13 16:22:29 -05:00
Thaddeus Crews 4e507792f2
Merge pull request #105918 from DarkMessiah/fix_tree_item_custom_bg_color
Fix background size calculation in TreeItem
2025-05-13 16:22:14 -05:00
Rémi Verschelde 7d363c2d5c
Merge pull request #105560 from BrotherShort/Make-controls-more-precise
Make the position and the size of FileSystem controls more precise
2025-05-13 01:04:43 +02:00
Jesusemora b22eba1285
Show `theme_type_variation`s in the inspector on `Control`s that inherit a theme
`theme_type_variation`s are now shown in the children and children of children
that inherit a theme from a parent `Control` node.
2025-05-13 00:56:06 +02:00
BrotherShort a52a7a4a48 Make the position and the size of FileSystem controls more precise 2025-05-11 00:31:49 +08:00
Thaddeus Crews 8fa1f36914
Merge pull request #106189 from roughbits01/fix-typo
Fix a typo in variable name in ProgressBar class
2025-05-09 11:29:20 -05:00
Thaddeus Crews a75286840b
Merge pull request #106141 from L2750558108/fix-control-position
Fix unexpected control position change when left/top offsets not match `pos_cache`
2025-05-09 11:29:13 -05:00
Marwen Azouzi 720712b21e
Fix a typo in a variable name 2025-05-09 00:09:26 +02:00
Thaddeus Crews 182be69a1e
Merge pull request #106151 from SaNeOr/fix-106123
Fix editor crash when middle mouse button is clicked on empty space in scene tabs
2025-05-08 07:19:32 -05:00
SaNeOr 0785c9ad81 fix Editor Crashes When Middle Mouse Button Is Clicked on Empty Space in scene_tabs 2025-05-08 12:04:53 +08:00
Thaddeus Crews affbfa5b4e
Merge pull request #89746 from KoBeWi/NOTification
Remove `NOTIFICATION_ENTER_TREE` when `NOTIFICATION_THEME_CHANGED` is used
2025-05-07 12:48:21 -05:00
Thaddeus Crews 42b50abf15
Merge pull request #106113 from lodetrick/add-dictionary-type-hints
Add missing dictionary and array type hints
2025-05-07 12:48:04 -05:00
2750558108 49c7966042 Fix unexpected control position change when left/top offsets not match pos_cache 2025-05-07 18:46:40 +08:00
Logan Detrick 247520b348 Add missing dictionary and array type hints 2025-05-06 12:35:19 -07:00
Thaddeus Crews a2c9e7920d
Merge pull request #105647 from KoBeWi/optional_options
Improve FileDialog options
2025-05-06 08:38:01 -05:00
Thaddeus Crews 5e1964d9b0
Merge pull request #106124 from KoBeWi/destructor_must_be_destroyed
Remove empty constructors and destructors from `scene/`
2025-05-06 08:37:58 -05:00
Thaddeus Crews cc5857728d
Merge pull request #106114 from m4gr3d/disable_auto_keyboard_popup
Add property to control showing the virtual keyboard on focus events
2025-05-06 08:37:40 -05:00
kobewi d32d2e9b51 Remove NOTIFICATION_ENTER_TREE when NOTIFICATION_THEME_CHANGED is used 2025-05-06 15:28:03 +02:00
kobewi 34b485d62b Remove empty constructors and destructors from scene/ 2025-05-06 14:46:54 +02:00
Fredia Huya-Kouadio f29feac7a5 Add a `LineEdit` / `TextEdit` property to control whether the virtual keyboard should show on focus 2025-05-05 22:01:34 -04:00
Thaddeus Crews 5aca298548
Merge pull request #106051 from dalexeev/move-alt-codes-from-char-range
Move `alt_code_oem437` and `alt_code_cp1252` to separate header file
2025-05-05 11:24:14 -05:00
Danil Alexeev 413cb795cd
Move `alt_code_oem437` and `alt_code_cp1252` to separate header file 2025-05-03 11:52:49 +03:00
kobewi 7fe61c7e84 Change FileDialog's Tree to ItemList 2025-05-03 01:34:35 +02:00
Thaddeus Crews 1cf573f44d
Merge pull request #105887 from Repiteo/core/modernize-headers
Core: Modernize C headers with C++ equivalents
2025-05-02 09:25:29 -05:00
Thaddeus Crews 01fc9aee6c
Core: Modernize C headers with C++ equivalents 2025-05-02 08:23:01 -05:00
kit e6cb7affdc Allow Control Rect tool to not snap to pixel 2025-05-01 19:47:17 -04:00
hamid 82e23da12e Add drag zoom feature with CTRL+MiddleMouseButton
This change introduces a DragType enum to scene/gui/view_panner.cpp of
dragging, which includes:

- DRAG_TYPE_NONE: Not dragging
- DRAG_TYPE_PAN: Panning (dragging using MMB)
- DRAG_TYPE_ZOOM: Zooming (dragging using CTRL+MMB)

The goal of this change is the third option, which was already available
in 3D viewport but not in 2D. This feature should work in other editors
as well such as Animation Track Editor and Visual Shader Editor and so
on.
2025-05-01 15:15:44 +03:30
Thaddeus Crews f4f1471b57
Merge pull request #105910 from lawnjelly/global_get_fast4
Add `GLOBAL_GET` cached macros.
2025-04-30 09:18:44 -05:00
lawnjelly f8f350a32a Add `GLOBAL_GET` cached macros.
GLOBAL_GET is an expensive operation which should not be used each frame / tick.
This PR adds macros which do a cheaper revision check, and only call the expensive GLOBAL_GET when project settings have changed.

Co-authored-by: Lukas Tenbrink <lukas.tenbrink@gmail.com>
2025-04-30 15:08:50 +01:00
Haoyu Qiu daaf4119de
Improve `ColorPicker` 2025-04-30 11:50:35 +02:00
Stanislav Labzyuk efd29f4caa Fix background size calculation in TreeItem 2025-04-29 19:58:29 +02:00
Thaddeus Crews b1b873add3
Merge pull request #104731 from Delsin-Yu/stackable-text-effect
[GUI] Implement Stackable Text Outline on `Label`
2025-04-29 11:24:13 -05:00
Thaddeus Crews bc21c322c6
Merge pull request #105880 from KoBeWi/deadline
Remove inline from constexpr variables
2025-04-29 11:24:13 -05:00
Thaddeus Crews 316af6aa36
Editor: Allow non-finite values in `Range`
Co-Authored-By: Aaron Franke <arnfranke@yahoo.com>
2025-04-29 11:08:46 -05:00
Thaddeus Crews 1d1805483f
Merge pull request #105815 from timothyqiu/anchors-presets
Fix item translation and icon in the Anchors Preset dropdown
2025-04-28 18:45:55 -05:00
Thaddeus Crews fc1ffeb5e0
Merge pull request #105870 from bruvzg/te_margin_round
[TextEdit] Fix margin rounding at sub 100% scale.
2025-04-28 14:10:52 -05:00
kobewi 5125a273dc Remove inline from constexpr variables 2025-04-28 21:09:43 +02:00
Thaddeus Crews 67c96c89cc
Merge pull request #105855 from bruvzg/color_ac_typo
Fix ColorPicker preset button format string typo.
2025-04-28 10:01:36 -05:00
Thaddeus Crews c0935eba0d
Merge pull request #105846 from KoBeWi/you_call_it_title_but_it's_just_a_text
Rename FoldableContainer's `text` to `title`
2025-04-28 10:01:36 -05:00
Thaddeus Crews 6065073a69
Merge pull request #105857 from bruvzg/te_rtl_ac
[TextEdit] Fix caret cut of in RTL layout, account for wrapped line indents in accessibility updates.
2025-04-28 10:01:29 -05:00
Pāvels Nadtočajevs 1794098b47
[TextEdit] Fix margin rounding at sub 100% scale. 2025-04-28 17:22:58 +03:00
Haoyu Qiu 3578aa6acc Fix item translation and icon in the Anchors Preset dropdown
- Some items were not translated.
- Item icons did not react to light/dark theme switch.
2025-04-28 19:50:24 +08:00
Pāvels Nadtočajevs fd1eeacf23
[ScrollContainer] Fix focus rect draw position in RTL layout. 2025-04-28 11:26:01 +03:00
Pāvels Nadtočajevs fb99c01381
[TextEdit] Fix caret cut of in RTL layout, account for wrapped line indents in accessibility updates. 2025-04-28 11:22:33 +03:00
Pāvels Nadtočajevs 4cc50e40ec
Fix ColorPicker preset button format string typo. 2025-04-28 08:03:52 +03:00
Pāvels Nadtočajevs 03048aa94a
Improve edited scene layout direction detection. 2025-04-28 07:57:26 +03:00
Thaddeus Crews 1b4ed4c038
Merge pull request #105595 from bruvzg/focus_fx
Fix `FOCUS_ACCESSIBILITY` grabbing focus when it is not supposed to, forward `GraphNode` key input to `GraphEdit`.
2025-04-27 19:21:34 -05:00
Thaddeus Crews 9c324a8524
Merge pull request #103414 from dugramen/itemlist-shift-key-select
ItemList multiselect with shift up & down arrow keys
2025-04-27 19:21:33 -05:00
Thaddeus Crews 9967dde20b
Merge pull request #105306 from KoBeWi/pwat
`Range`: Remove useless `p_what` argument
2025-04-27 19:21:29 -05:00
Thaddeus Crews bdd3cb3f31
Merge pull request #103382 from dugramen/tree-shift-select
Add tree multiselect with shift up & down arrow keys
2025-04-27 19:21:27 -05:00
Thaddeus Crews 1a2a1b07df
Merge pull request #105799 from Repiteo/scons/enum-conversion-warnings
SCons: Add enum conversion warning
2025-04-27 19:21:23 -05:00
Thaddeus Crews 3947cbe3b2
Merge pull request #104386 from Repiteo/core/cpp-math
Core: Replace C math headers with C++ equivalents
2025-04-27 19:21:22 -05:00
Thaddeus Crews 4dbfcbfbbd
Merge pull request #105504 from ExEago/master
`RichTextLabel`: Add methods to compute the height and width of a line
2025-04-27 19:21:15 -05:00
kobewi 6856926b77 Rename FoldableContainer's text to title 2025-04-28 00:12:32 +02:00
Pāvels Nadtočajevs db0c0a9182
Fix `FOCUS_ACCESSIBILITY` grabbing focus when it is not supposed to, forward `GraphNode` key input to `GraphEdit`. 2025-04-27 00:45:11 +03:00
Thaddeus Crews dc9c34f0c6
SCons: Add enum conversion warning 2025-04-26 12:06:20 -05:00
DE YU ac931c33c2 Implmement stackable text effects on label type through label settings
Co-authored-by: Micky <66727710+Mickeon@users.noreply.github.com>
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2025-04-26 20:50:20 +08:00
dugramen eb973015d6 Tree multiselect with shift up & down arrow keys 2025-04-25 21:47:16 -04:00
dugramen aebb85a064 ItemList multiselect with shift up & down arrow keys 2025-04-25 21:39:22 -04:00
kobewi 92f15d33ee Improve FileDialog options 2025-04-24 17:12:53 +02:00
Thaddeus Crews 013f7a6343
Merge pull request #105630 from KoBeWi/clearer_dialog
FileDialog code cleanup
2025-04-24 09:09:31 -05:00
Thaddeus Crews d9122205ec
Merge pull request #105656 from Koyper/fix_line_edit_text_edit_composite_character_backspace_delete
[LineEdit/TextEdit] Add composite character backspace delete and get composite character positions
2025-04-24 09:09:30 -05:00
Thaddeus Crews e8240fdd00
Merge pull request #105516 from tehKaiN/unify_scrollbar_scrollcontainer_scroll_delta
Unify ScrollBar/ScrollContainer scroll delta
2025-04-24 09:09:29 -05:00
Koyper b668f45fd0 Fix LineEdit and TextEdit composite character backspace delete. 2025-04-23 15:14:09 -05:00
Pāvels Nadtočajevs e6d3cf63fb
[ColorPicker, macOS] Add link to request required screen recording permission. 2025-04-23 22:25:10 +03:00
KaiN b6b3b0e0d6 Unify ScrollBar/ScrollContainer scroll delta 2025-04-23 21:15:44 +02:00
kobewi e565ee86ce FileDialog code cleanup 2025-04-23 19:28:14 +02:00
Pāvels Nadtočajevs 5b49fd4207
Selectively apply `FOCUS_ACCESSIBILITY` to the `Label`s instead of setting it by default. 2025-04-23 12:47:31 +03:00
Thaddeus Crews 4d48c8f69a
Merge pull request #102240 from KoBeWi/RAWR
Fix ColorPicker sliders in overbright RGB
2025-04-22 10:44:24 -05:00
Thaddeus Crews 8ff4ea8a4a
Merge pull request #97763 from Geometror/fix-gn-child-vis-conn-update
Fix `GraphEdit` connections not updating when a child of `GraphNode` goes invisible or changes size
2025-04-21 08:24:24 -05:00
Thaddeus Crews f807754c1b
Merge pull request #105237 from ibrahn/popup-drop-shadow-fix
Fix shadow offset larger than shadow size in PopupMenu and PopupPanel.
2025-04-21 08:24:16 -05:00
Thaddeus Crews 05f8b3e561
Merge pull request #105482 from maxpiepenbrink/fix-canvas-translate-regression
Fix regression causing jittery canvas transforms
2025-04-21 08:24:15 -05:00
Thaddeus Crews 8aaae4f4f3
Merge pull request #98560 from Koyper/tree_relationship_line_fix
[Tree] Fix relationship lines 1px width draw bug when MSAA anti aliasing is enabled
2025-04-21 08:24:06 -05:00
ExEago 4115b813fe Add two methods to compute the height and width of an individual line in a RichTextLabel 2025-04-21 10:25:47 +02:00
yahkr fc051c8b36 Add [br] to bbcode parsing for rich_Text_label 2025-04-18 09:59:47 -04:00
Max Piepenbrink cf8455c52d Fix regression causing jittery canvas transforms
This PR https://github.com/godotengine/godot/pull/104451 introduced
a tricky regression. Canvas item transforms could risk not being
updated for multiple frames due to the conditional on the line
in this commit. Before the "approx_pos|size_changed" fix, the
transform would get updated incidentally either way. But now there's
a gap where (pos_changed && !size_changed) may not be true for a few
frames and there's nothing else left to trigger a transform update.

The fix is quite simple, for updating the canvas item transform
we remain trigger happy around position changes, but respect the
approx_size_changed.
2025-04-16 23:59:05 -07:00
Thaddeus Crews ad40939b6f
Core: Replace C math headers with C++ equivalents
- Minor restructuring to ensure `math_funcs.h` is the central point for math functions
2025-04-16 15:49:02 -05:00
Thaddeus Crews 4d55d9865b
Merge pull request #105304 from KoBeWi/≥
Fix `exp_edit` description
2025-04-16 15:39:21 -05:00
Thaddeus Crews 3c0652699a
Merge pull request #103967 from HolonProduction/window-focus
GUI: Fix focus cycle through window
2025-04-16 10:45:17 -05:00
Thaddeus Crews 11cb8140b8
Merge pull request #105370 from yuantianle/fix-graphnodes-connected-to-headers-rather-than-ports
Fix GraphNode frag/vert port positions misaligned
2025-04-16 10:45:16 -05:00
Thaddeus Crews 7d4ba0759c
Merge pull request #105322 from bruvzg/remove_dbg_draw
Remove debug focus rect draws from MenuBar and GraphNode.
2025-04-16 10:45:12 -05:00
Thaddeus Crews 00bd421089
Merge pull request #105222 from kitbdev/fix-mouse-filter-recursive-and-rename
Fix and rename mouse filter recursive behavior and focus mode recursive behavior
2025-04-16 10:45:12 -05:00
yuantianle 6e1fb68f65 Fix GraphNode frag/vert port positions misaligned
Issue conclusion: GraphNode port connections appear misaligned when switching between vertex and fragment modes, only realigning after zoom or layout refresh.

Investigation: The root cause was due to port positions being calculated before child layouts had finalized, resulting in inaccurate Y positions for ports. The original implementation relied on Control::position.y, which was not yet updated during the initial layout pass.

Explaination: This fix computes vertical offset using titlebar and stylebox sizes instead, ensuring port alignment is correct immediately after layout, without relying on zoom-triggered re-layouts.

Resolves: #105232

Add layout mode check to distinguish GraphEditor and ShaderGraphEditor

Fix port position calculation by distinguishing between GraphEditor and ShaderGraphEditor layouts.

Due to differences in layout flow and update timing (CPU vs GPU), ShaderGraphEditor requires manual vertical offset calculation, while standard GraphEditor can directly get the actual child positions after layout in run time.

This change adds a layout mode check (`is_using_resort_layout) to determine the appropriate method for computing port positions.

Fixed nits using cached values and removed redundant condition variable definition.

Add comment for the condition checking.
2025-04-15 14:25:05 -07:00
HolonProduction 6b9641d364 Fix focus cycle through window 2025-04-15 20:24:32 +02:00
Thaddeus Crews 039d9ffd30
Merge pull request #104317 from pafuent/fixing_wrong_focus_style_clipping_on_scroll_container
Fix `ScrollContainer` focus border issue
2025-04-15 12:28:50 -05:00
Thaddeus Crews aba5841b34
Merge pull request #105323 from bruvzg/rtl_right_trim
[RTL] Fix VC_GLYPHS_RTL visible character trimming mode.
2025-04-15 12:28:48 -05:00
Thaddeus Crews 5f6c49af96
Merge pull request #104349 from jaydensipe/scroll-high-refresh-rate-fix
Fix smooth scrolling being tied to physics process
2025-04-15 12:28:38 -05:00
Hendrik Brucker 867fbd8be3 Fix GraphEdit connections not updating when a child of GraphNode goes invisible or changes size 2025-04-15 18:31:17 +02:00
Thaddeus Crews 4cc419f6e6
Merge pull request #105259 from bruvzg/rtl_track_custom_font_changes
[RTL] Track external changes in the custom fonts set by BBCode / `push_*`.
2025-04-14 19:39:45 -05:00
Koyper 4766e32419 Fix Tree relationship line 1px width draw bug. 2025-04-14 18:07:03 -05:00
Pablo Andres Fuente e1384dd159 Fix `ScrollContainer` focus border issue
Fixes #100176

Instead of using no clipping technique to draw the focus border because
it causes problems if a `ScrollContainer` is nested in another
`ScrollContainer`, now the focus border is drawn using an internal
`PanelContainer`.
2025-04-14 17:51:43 -03:00
kobewi ac2179c546 Queue hover update when creating TreeItem 2025-04-14 10:46:03 +02:00
Pāvels Nadtočajevs d782d827f7
[RTL] Fix VC_GLYPHS_RTL visible character trimming mode. 2025-04-12 21:13:19 +03:00
Pāvels Nadtočajevs 5688d30439
Remove debug focus rect draws from MenuBar and GraphNode. 2025-04-12 21:05:18 +03:00
kobewi 23a0b7d4d0 Fix exp_edit description 2025-04-12 11:49:26 +02:00
kobewi e4562fe727 Remove useless p_what argument 2025-04-12 10:42:13 +02:00
Jayden Sipe 292119dd68 Fix smooth scrolling tied to physics process 2025-04-11 17:14:25 -04:00
Thaddeus Crews 0d267e7b1e
Core: Add dedicated `BitField` template 2025-04-11 11:53:26 -05:00
Thaddeus Crews b546680e96
Merge pull request #105265 from bruvzg/gr_node_resize
Fix graph node resizing.
2025-04-11 09:51:10 -05:00
Thaddeus Crews 717df3ee88
Merge pull request #105249 from Repiteo/core/math-defs-namespace
Core: Use `Math` namespace for constants
2025-04-11 09:51:04 -05:00
Pāvels Nadtočajevs 13cf88073b
Fix graph node resizing. 2025-04-11 08:20:20 +03:00
Thaddeus Crews 297650a912
Merge pull request #93466 from bruvzg/alt_oem
[TextEdit / LineEdit] Add support for OEM Alt codes input.
2025-04-10 16:53:46 -05:00
Thaddeus Crews 4c66c21542
Merge pull request #103024 from cruglet/master
TabBar: Add boolean toggle for middle-click to fire `tab_close_pressed` signal.
2025-04-10 16:53:44 -05:00
Thaddeus Crews 94282d88f9
Core: Use `Math` namespace for constants 2025-04-10 16:29:30 -05:00
Pāvels Nadtočajevs 1ddd503213
[RTL] Track external changes in the custom fonts set by BBCode / `push_*`. 2025-04-11 00:10:45 +03:00
Thaddeus Crews cade15a163
Merge pull request #92475 from AThousandShips/string_replace_char
Add `String::replace_char(s)` methods for performance and convenience
2025-04-10 10:18:16 -05:00
Thaddeus Crews 3e9f624b0b
Merge pull request #103791 from BrotherShort/scenetree_item_text_display
Fix SceneTree Item text display bug in Right-to-Left
2025-04-10 10:18:15 -05:00
Thaddeus Crews 6fce829fce
Merge pull request #105007 from Aziroshin/dev/aziroshin/comment-after-region-not-folding-102382
[CodeEdit] Fix folding for comments mixed with code region tags.
2025-04-10 10:18:14 -05:00
Thaddeus Crews 504036466b
Merge pull request #102878 from Giganzo/tree-jiggle
Fix Tree buttons jiggle on horizontal scrolling
2025-04-10 10:18:11 -05:00
Ibrahn Sahir 147b8415b1 Fix shadow offset larger than shadow size in PopupMenu and PopupPanel.
Panel shadow offsets larger than shadow size should no longer place the
panel edges outside its window.
2025-04-10 12:31:06 +01:00
A Thousand Ships 889410dcda
Add `String::replace_char(s)` methods for performance and convenience 2025-04-10 13:08:45 +02:00
bruvzg aa0ade5b49
[TextEdit / LineEdit] Add support for OEM Alt codes input. 2025-04-10 08:52:19 +03:00
kit d16e8b7ca4 Fix and rename mouse filter recursive behavior
and focus mode recursive behavior.
2025-04-09 23:45:03 -04:00
Thaddeus Crews 45fb66f4b0
Merge pull request #104632 from ibrahn/popup-menu-mouseover-calc
Fix and simplify hit calculation in `PopupMenu::_get_mouse_over`.
2025-04-09 18:11:58 -05:00