Commit Graph

718 Commits

Author SHA1 Message Date
Thaddeus Crews 3bccdd2e4b Merge pull request #118733 from jinyangcruise/fix_custom_canvas_item_covers_
Fix custom canvas item covers text
2026-04-21 08:48:13 -05:00
Thaddeus Crews 3bf2d1e3d5 Merge pull request #118246 from Goldenlion5648/fix-scene-tree-shortcuts
Make shortcuts that use letters or alt work in the scene tree
2026-04-20 09:15:46 -05:00
jinyangcruise 92ecfbae83 fix custom canvas item covers text 2026-04-19 23:28:11 +08:00
Simon Döhl 0bca265a81 Free Tree custom_ci RID in destructor 2026-04-18 21:08:11 +02:00
Thaddeus Crews 29cec720e4 Merge pull request #115797 from jinyangcruise/fix_find_in_files_hover_style
Fix highlighted word style being overwritten by hover/pressed styles in find in files
2026-04-18 07:28:29 -05:00
jinyangcruise 251af31089 fix hover/pressed style overwride custom drawed content 2026-04-16 22:56:54 +08:00
kobewi 64c8952975 Rework export template dialog to allow individual templates 2026-04-16 12:31:58 +02:00
Thaddeus Crews 8a91ee8fcb Merge pull request #117939 from vaner-org/tree-better-drag-edge-cases
Handle Tree's root and foreign item drops better
2026-04-13 11:45:54 -05:00
vaner-org 53be22e910 Handle Tree's root and foreign item drop better 2026-04-12 06:00:11 +05:30
Goldenlion5648 db0cec3448 make shortcuts that use letters or alt work in the scene tree
Co-authored-by: Victor Kostin <victor.kostin.s@gmail.com>
2026-04-09 19:59:03 -04:00
StarryWorm bdca8b66e7 Add custom_maximum_size to Control
This property mirrors `custom_minimum_size` and enables the user to set a size the `Control`. Enabling `propagate_maximum_size` forces all children to respect this node's maximum_size.
Not all `Control` types handle this gracefully, which may result in content clipping.
2026-04-07 14:34:12 -04:00
Rémi Verschelde 4d1c5b9122 Merge pull request #112993 from vaner-org/tree-better-drag
Improve drag and drop in `Tree`
2026-03-26 16:00:52 +01:00
vaner-org 8c42aeb39f Improve Tree drag & drop 2026-03-24 04:41:36 +05:30
kobewi 0d220b35a5 Add _get_tooltip_auto_translate_mode_at() to Control 2026-03-22 17:56:46 +01:00
Marco Antonio c85ada054b GUI: Set accessibility name on Tree inline editor when editing cells 2026-03-16 11:23:14 -05:00
Thaddeus Crews 8551f7b319 Merge pull request #113178 from AR-DEV-1/tree-create-item-doc-fix
Update the documentation for `Tree.create_item(), Tree.set_columns() & Tree.clear()` & add error messages.
2026-03-06 12:40:04 -06:00
Rémi Verschelde 2dd1f4ef60 Decouple node.h from scene_tree.h, minimize its other includes 2026-03-05 13:54:46 +01:00
Rémi Verschelde eabb9a63d4 Rename callable_method_pointer.h to callable_mp.h and include it explicitly
This allows removing it from `class_db.h`, significantly reducing the amount of files
that include it transitively.

Also includes some include cleanup in `control.h` and `rich_text_label.h` done while
ensure they don't depend on `callable_mp`.
2026-03-04 16:23:23 +01:00
Rémi Verschelde 8c0f175c94 Decouple RenderingServer from as much of the codebase as possible
Notably decouples it from:
- AccessibilityServer
- DisplayServer
- Viewport
- Window
2026-03-03 12:48:07 +01:00
Pāvels Nadtočajevs 1306221592 Move accessibility methods/enums from DisplayServer to the AccessibilityServer dedicated singleton. 2026-03-02 13:48:29 +02:00
Thaddeus Crews e380a41752 Style: Add class_db.h includes explicitly 2026-02-26 15:50:28 -06:00
Rémi Verschelde f5a290ac46 Move RenderingServer enums to a dedicated RenderingServerEnums (RSE) namespace
A number of headers in the codebase included `rendering_server.h` just for
some enum definitions. This means that any change to `rendering_server.h` or
one of its dependencies would trigger a massive incremental rebuild.

With this change, we decouple a number of classes from `rendering_server.h`,
greatly speeding up incremental rebuilds for that area.

On my machine, this reduces incremental compilation time after an edit of
`rendering_server.h` by 60s (from 2m57s).
2026-02-25 19:43:03 +01:00
AR-DEV-1 26b8af6bf0 Clarify that Tree.create_item(), Tree.set_columns & Tree.clear can fail & when.
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2026-02-20 06:36:55 +05:00
BrotherShort a8ae40d590 fix inaccurate tree relationship lines
Co-Authored-By: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2026-02-09 20:14:55 +08:00
BrotherShort 004f606d4e Give tree's hovered_pos a negative default value. 2026-02-03 21:05:10 +08:00
Rémi Verschelde 63c78e684b Merge pull request #114165 from KoBeWi/static
Use actual class names in resource type hints
2026-02-02 10:10:24 +01:00
Rémi Verschelde 0dec4ab393 Merge pull request #114519 from mxtherfxcker/fix/CamFocusTriggeredByDoubleClickingTreeButtons
Fix camera focus triggered by double-clicking Tree buttons
2026-01-31 22:50:39 +01:00
TheArchCoder cb78af7bc7 Hide TreeItem edit popup on scroll. 2026-01-31 22:34:33 +01:00
kobewi f7b9703cbd Use actual class names in resource type hints 2026-01-29 21:07:56 +01:00
Thaddeus Crews 0620af8db3 Merge pull request #110759 from precup/scene-tree-dock-optimizations
Optimize tree size computation and the scene tree dock filter
2026-01-28 12:27:06 -06:00
Thaddeus Crews 0b60e188c3 Merge pull request #115360 from Nintorch/optimize-input-header-includes
Optimize `core/input/input.h` header `#include`ing
2026-01-28 12:27:02 -06:00
Thaddeus Crews c5ab7727fa Merge pull request #114323 from snowfrogdev/monospace-font-in-debugger-errors-tab
Tree: Add per-cell `autowrap_trim_flags` to TreeItem
2026-01-28 12:26:56 -06:00
Nintorch eb019511ed Optimize files that #include input.h header 2026-01-28 14:21:00 +05:00
Thaddeus Crews 43fbc539dd Merge pull request #115295 from Akosmo/hover-treeitem-fix
Reset drag unfold timer when mouse exits Tree
2026-01-26 15:01:54 -06:00
Thaddeus Crews bf28684b2a Merge pull request #112745 from BrotherShort/fix-LineEdit-offset
Fix Tree focus item LineEdit is offset
2026-01-26 13:14:32 -06:00
Akosmo bf858ab659 Reset drag unfold timer when mouse exits Tree 2026-01-23 07:39:01 -03:00
BrotherShort d4a7654493 Fix Tree focus item LineEdit is offset
Apply suggestion from @KoBeWi

Co-Authored-By: Tomasz Chabora <kobewi4e@gmail.com>
2026-01-18 21:51:53 +08:00
kobewi b962c91a6a Remove clip ignore from Tree background 2026-01-17 19:32:45 +01:00
BrotherShort 2f0ff3aeb7 Fix Treeitem icon overflows column boundary 2026-01-12 16:46:37 +08:00
Rémi Verschelde 5543be106e Merge pull request #114862 from passivestar/table-spacing
Improve spacing in trees showing table data in modern theme
2026-01-12 09:23:17 +01:00
passivestar 6f0bd2efb9 Improve spacing in trees showing table data in modern theme 2026-01-12 00:01:49 +04:00
Michael Alexsander 3e942c7135 Fix problems with popup menus for Tree's range items 2026-01-10 20:00:08 -03:00
Rémi Verschelde 836df3aad7 Merge pull request #114572 from boozee/PR-114123--bug-with-tree-item-culling
Use dedicated canvas item to properly cull tree items
2026-01-10 23:48:03 +01:00
Rémi Verschelde d814d43d76 Merge pull request #112791 from BrotherShort/fix-relationship-lines-are-squeezed-together
Fix tree relationship lines are squeezed together
2026-01-10 23:47:59 +01:00
Boozee bd54c553f4 Use dedicated canvas item to properly cull tree items 2026-01-10 17:50:52 +01:00
Michael Alexsander 8e305bb701 Add color theme for scroll hints 2026-01-08 14:10:55 -03:00
Michael Alexsander 62d0392131 Fix Tree items ignoring inner margins 2026-01-07 18:04:13 -03:00
mxtherfxcker 275b26a6c2 Fix camera focus triggered by double-clicking Tree buttons 2026-01-02 15:34:07 +03:00
Rémi Verschelde cde4f41e9a Merge pull request #112475 from BrotherShort/fix-icon-max-width-editable
Fix tree item editable area missing icon max width bug
2026-01-01 16:45:47 +01:00
Philippe Vaillancourt e046830c50 Tree: Add per-cell autowrap_trim_flags to TreeItem
The Debugger Errors tab previously displayed ASCII art diagnostic output
(like Rust/Elm-style error messages) incorrectly because the Tree widget
hardcoded space trimming flags, causing leading spaces on wrapped lines
to be trimmed and breaking alignment.

This adds a per-cell `autowrap_trim_flags` property to TreeItem, following
the pattern used by Label and RichTextLabel. The debugger errors tab now
disables trim flags and uses the same monospace font as the Output panel,
ensuring proper alignment of structured error messages.
2025-12-24 15:28:15 -05:00