Commit Graph

241 Commits

Author SHA1 Message Date
Thaddeus Crews 673c2869eb Merge pull request #119507 from syntaxerror247/fix-tree-drag-drop
Fix mouse dragging in `Tree` node on touchscreen devices
2026-05-25 11:19:01 -05:00
Anish Kumar 54bfec8470 Fix mouse dragging in Tree on touchscreen devices 2026-05-25 10:27:33 +05:30
Michael Alexsander e2278afdd3 Fix and improve selection behavior in the Filesystem dock 2026-05-14 11:08:24 -03:00
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
jinyangcruise 251af31089 fix hover/pressed style overwride custom drawed content 2026-04-16 22:56:54 +08: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
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
Pāvels Nadtočajevs 1306221592 Move accessibility methods/enums from DisplayServer to the AccessibilityServer dedicated singleton. 2026-03-02 13:48:29 +02: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
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 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
BrotherShort 2f0ff3aeb7 Fix Treeitem icon overflows column boundary 2026-01-12 16:46:37 +08:00
passivestar 6f0bd2efb9 Improve spacing in trees showing table data in modern theme 2026-01-12 00:01:49 +04: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
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
Michael Alexsander 639e396d98 Add scroll hints to ScrollContainer and Tree 2025-11-26 11:04:49 -03:00
kobewi a981863be4 Remove meta usage in Tree 2025-11-10 16:17:43 +01:00
DeeJayLSP b30b11b012 Add custom StyleBox to TreeItem 2025-11-04 22:51:37 -03:00
Michael Alexsander e32b9274a3 Fix UI focus being shown when it shouldn't 2025-11-03 17:00:05 -03:00
Mike Precup 357caceca6 Optimize tree size computation and the scene tree dock filter 2025-10-22 22:54:12 -07:00
Mike Precup 1ad3b9986e Speed up deletion in large trees via the Scene Tree Dock 2025-10-22 22:46:24 -07:00
Thaddeus Crews ed4f4d275e Merge pull request #110904 from YeldhamDev/tree_drag_unfolding
Unfold tree items on hover while drag-n-dropping
2025-10-21 15:11:01 -05:00
chocola-mint 19c47c5d99 Remove #include "scene/main/timer.h" from control.h 2025-10-05 14:41:06 +09:00
Thaddeus Crews f6aa5ba23c Merge pull request #97210 from AleksLitynski/object-snapshot-debugger
Add an ObjectDB Profiling Tool
2025-10-03 12:01:11 -05:00
Thaddeus Crews 6b9acd7e9e Merge pull request #110055 from dagarsar/tree-rtl
Add helper methods to convert right-to-left `Rect2i` and `Point2i` in `Tree`'s `draw_item`
2025-10-01 13:12:34 -05:00
Aaron Franke 1a7be001d2 Use const Array ref in set_structured_text_bidi_override_options 2025-09-26 14:31:38 -07:00
Michael Alexsander 26745b4b87 Unfold tree items on hover while drag-n-dropping
Co-authored-by: suddjian
2025-09-26 14:38:45 -03:00
danielgsilva bc9c14da7a Add helper methods and simplify logic 2025-09-25 13:41:15 +01:00
Thaddeus Crews 6f57447710 Merge pull request #109943 from kevinlam508/proper-tree-size-without-scrollbars
Fix tree to update size with scrollbars disabled
2025-09-24 09:59:13 -05:00
danielgsilva 1a77567029 Add method to check if any cell is selected and fix relationship line conditional 2025-09-24 13:44:57 +01:00
danielgsilva 611fc62fe4 Reinstate const parameter in draw_item_rect 2025-08-27 10:27:15 +01:00
Kevin Lam 4c9bd858c7 Fix tree to update size with scrollbars disabled
When scrollbars are disabled, tree size is dependant on item sizes, so this adds missing checks for when to resize. The side effect of the bug was that scrollbars could incorrectly appear when items change at runtime.
2025-08-24 20:00:48 -05:00
Aleksander Litynski 78f1543e35 Add an ObjectDB Profiling Tool
A new tab is added to the debugger that can help profile a game's memory usage.

Specifically, this lets you save a snapshot of all the objects in a running
game's ObjectDB to disk. It then lets you view the snapshot and diff two
snapshots against each other. This is meant to work similarly to Chrome's
heap snapshot tool or Unity's memory profiler.
2025-07-08 16:39:24 +02:00
Micky 76a7c31a5d Rename TreeItem's alt_text to description for consistency
...with Accessibility API
2025-06-14 19:56:30 +02: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
Haoyu Qiu 7aa9174bc4 Lazy create menu and slider nodes in Tree 2025-05-19 15:59:48 +08:00
Haoyu Qiu 88d922c55e Cleanup header includes in Tree 2025-05-15 14:28:00 +08:00
dugramen eb973015d6 Tree multiselect with shift up & down arrow keys 2025-04-25 21:47:16 -04:00
Koyper 4766e32419 Fix Tree relationship line 1px width draw bug. 2025-04-14 18:07:03 -05:00
kobewi ac2179c546 Queue hover update when creating TreeItem 2025-04-14 10:46:03 +02:00
Pāvels Nadtočajevs b106dfd4f9 Base accessibility API. 2025-04-08 20:14:28 +03:00
Alexander Hartmann b96e8d5886 Tree: apply comment style guidelines and remove unused variables.
Co-Authored-By: Tomasz Chabora <2223172+KoBeWi@users.noreply.github.com>
Co-Authored-By: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2025-03-28 18:03:39 +01:00
Thaddeus Crews d190cc6d6f Merge pull request #100412 from havi05/tree-hover-on-selected
`Tree` highlight selected items on hover
2025-03-13 08:57:18 -05:00