Commit graph

6285 commits

Author SHA1 Message Date
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_variations in the inspector on Controls 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