Commit Graph

656 Commits (cb1569345a6f17da08241e645ab03cb2e1b78d2f)

Author SHA1 Message Date
Thaddeus Crews dedbc8b26a
Merge pull request #112625 from BrotherShort/fix-tree-vertical-line
Fix tree vertical line width bug
2025-11-11 10:37:36 +07:00
Thaddeus Crews d30214a612
Merge pull request #109938 from KoBeWi/fokoos_rekto
Remove meta usage in Tree
2025-11-10 17:47:04 +07:00
Thaddeus Crews 77cfbe9371
Merge pull request #111780 from aaronfranke/tree-double-click-not-editable
Allow double-clicking icons of non-editable Tree items
2025-11-10 17:46:58 +07:00
BrotherShort 4f5f36c361 fix tree vertical line width bug 2025-11-11 06:51:07 +07:00
kobewi a981863be4 Remove meta usage in Tree 2025-11-10 16:17:43 +07:00
DeeJayLSP b30b11b012 Add custom `StyleBox` to `TreeItem` 2025-11-04 22:51:37 +07:00
Michael Alexsander e32b9274a3
Fix UI focus being shown when it shouldn't 2025-11-03 17:00:05 +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 +07:00
Aaron Franke 70ea991c69
Allow double-clicking icons of non-editable Tree items 2025-10-19 00:58:05 +07:00
Thaddeus Crews 9e96c7d9b8
Merge pull request #110378 from timothyqiu/rtl-preview
Make text-related nodes translation domain aware
2025-10-16 12:48:05 +07:00
Thaddeus Crews e8535bc27e
Merge pull request #111292 from WhalesState/tree-tooltip-crash
Fix Tree column title tooltip crash.
2025-10-06 09:06:34 +07:00
Mounir Tohami 5a8c3bb0de Fix column title tooltip crash. 2025-10-05 17:48:21 +07:00
chocola-mint 19c47c5d99 Remove `#include "scene/main/timer.h"` from `control.h` 2025-10-05 14:41:06 +07:00
Thaddeus Crews f6aa5ba23c
Merge pull request #97210 from AleksLitynski/object-snapshot-debugger
Add an ObjectDB Profiling Tool
2025-10-03 12:01:11 +07: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 +07: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 +07:00
danielgsilva bc9c14da7a Add helper methods and simplify logic 2025-09-25 13:41:15 +07: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 +07:00
danielgsilva 1a77567029 Add method to check if any cell is selected and fix relationship line conditional 2025-09-24 13:44:57 +07:00
Thaddeus Crews be421bcdd4
Merge pull request #110250 from YeldhamDev/i_just_cant_keep_focused
Hide `Control` focus when given via mouse input
2025-09-22 13:28:44 +07:00
Haoyu Qiu 172c80df67 Make text-related nodes translation domain aware
- Makes `is_layout_rtl()` translation domain aware
- Makes various text-drawing controls translation domain aware
- Makes translation preview use the project's fallback locale when disabled
2025-09-22 09:39:14 +07:00
Thaddeus Crews 72785c54ed
Merge pull request #110012 from dagarsar/tree-const-arg
Reinstate `const` parameter in `Tree`'s `draw_item_rect`
2025-09-19 20:54:31 +07:00
Thaddeus Crews 647546bcac
Merge pull request #110089 from dagarsar/tree-margin-1
Fix `Tree` relationship lines do not apply `h_separation` and `item_margin` correctly
2025-09-19 20:54:27 +07:00
Michael Alexsander aeb3a45c97
Hide `Control` focus when given via mouse input 2025-09-19 13:43:29 +07:00
Mike Precup 67723a9572 Speed up very large Trees 2025-08-31 13:38:43 +07:00
danielgsilva bf7422e2c7 Take into account parent and child folding status when drawing relatioship lines 2025-08-29 14:03:39 +07:00
danielgsilva 611fc62fe4 Reinstate const parameter in draw_item_rect 2025-08-27 10:27:15 +07: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 +07:00
Pāvels Nadtočajevs 3f757c41fc
Update access-kit to 0.17.0 2025-07-29 08:37:01 +07:00
passivestar fed6b0dfe5 Fix Tree cell text vertical alignment 2025-07-26 16:32:01 +07:00
kobewi 1f4044c0f1 Fix inconsistent column in Tree click detection 2025-07-17 14:29:44 +07:00
Mikael Hermansson 3528e83ff3 Various fixes and style nitpicks 2025-07-09 14:27:48 +07: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 +07:00
danielgsilva 3b17450261 Draw guide lines over selection and focus styleboxes 2025-07-08 11:30:40 +07:00
BrotherShort 842b534bee Fix rename autoloads 2025-06-22 12:59:48 +07:00
Micky 76a7c31a5d Rename TreeItem's `alt_text` to `description` for consistency
...with Accessibility API
2025-06-14 19:56:30 +07: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 +07:00
Michael Alexsander 454e4f817c
Make build profile project detection also set build options 2025-06-03 11:11:33 +07:00
Thaddeus Crews 777f1c10fa
Merge pull request #105376 from KoBeWi/quequeque
Queue hover update when creating TreeItem
2025-05-26 11:24:32 +07:00
BrotherShort 9222341575 Fix FileSystemTree rename TextEdit is offset 2025-05-23 01:02:06 +07:00
kobewi c632cf9ffa Deselect invisible TreeItems 2025-05-20 16:58:54 +07:00
Haoyu Qiu 7aa9174bc4 Lazy create menu and slider nodes in `Tree` 2025-05-19 15:59:48 +07:00
Haoyu Qiu 88d922c55e Cleanup header includes in Tree 2025-05-15 14:28:00 +07: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 +07:00
Thaddeus Crews 01fc9aee6c
Core: Modernize C headers with C++ equivalents 2025-05-02 08:23:01 +07: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 +07:00
Stanislav Labzyuk efd29f4caa Fix background size calculation in TreeItem 2025-04-29 19:58:29 +07:00
dugramen eb973015d6 Tree multiselect with shift up & down arrow keys 2025-04-25 21:47:16 +07:00