voylin
d339c71edc
Fix empty_clicked signal when hide_root
...
fix
2024-03-22 09:19:56 +09:00
Rémi Verschelde
c84d3385f7
Merge pull request #88300 from FaycalElOuariachi/add-TreeItem-is_visible_in_tree
...
Add `is_visible_in_tree` in `TreeItem`
2024-03-05 23:44:29 +01:00
Faycal ElOuariachi
50cf7e1778
Add is_visible_in_tree in TreeItem
2024-03-05 03:38:33 +01:00
Michael Alexsander
612eed164c
Add auto translation to Tree
2024-03-01 12:21:45 -03:00
Michael Alexsander
d70c45b5c8
Add option to add built-in strings in the POT generation
2024-02-28 11:34:26 -03:00
Mikael Hermansson
f7c1c83daa
Fix crash when selecting re-added Tree
item
2024-02-27 16:34:15 +01:00
Hugo Locurcio
6de0eca6c1
Fix recursive Tree expand/collapse shortcuts not working
...
This also moves them to use Shift instead of Alt, as was already
done for mouse interactions.
Shortcuts in Tree were also made non-exact matches so they still
work if modifiers are held. This is important for up/down
shortcuts, especially once support for selecting with
Shift + up/down is implemented.
2024-02-13 02:30:48 +01:00
ACB
43038bbfcb
Only recurse depth wise in Tree::_count_selected_items
2024-02-04 14:21:03 +01:00
Rémi Verschelde
fa48a51183
Merge pull request #87688 from AThousandShips/what_is_this
...
Remove unnecessary `this->` expressions
2024-01-29 13:18:09 +01:00
A Thousand Ships
15369fdb1d
Remove unnecessary this->
expressions
2024-01-29 09:59:18 +01:00
radzo73
de5b0d7103
Add get_button_color(column, id)
...
Docs should point to Color constuctor instead of just the class, but I unfortunately cannot.
2024-01-28 19:09:20 -05:00
A Thousand Ships
257d03681c
Use callable for TreeItem
custom draw
...
Deprecating old functionality
2024-01-23 12:07:43 +01:00
A Thousand Ships
552594ffdc
Redraw TreeItem
on more changes
...
* Custom font changes
* Custom draw changes
* Custom as button
2024-01-22 13:51:20 +01:00
kobewi
0e8f90f4c8
Update deferred calls to use Callables
2024-01-09 16:11:47 +01:00
Yuri Sizov
b8635157eb
Merge pull request #86218 from TheSofox/arrow-key-scene-tree-nav
...
Fix `Node` selection when navigating `Tree` with Arrow keys
2023-12-20 15:07:59 +01:00
Yuri Sizov
7aae85edfd
Merge pull request #84845 from DarkMessiah/tree-disabled-checkbox
...
Implement disabled state for Checkbox in Tree
2023-12-19 13:01:25 +01:00
Sofox
f894eb1768
Fixes Node selection when navigating SceneTree with Arrow keys
2023-12-16 19:53:04 +00:00
jsjtxietian
7a2831db57
Prevent crash when call set_text() on a removed treeItem
2023-12-12 12:58:14 +08:00
Stanislav Labzyuk
ff8797e980
Implement disabled state for Checkbox in Tree
2023-11-15 17:13:34 +01:00
jsjtxietian
b79cac6d2d
Make Tree's set_selected check if treeitem belongs to the tree
2023-11-14 11:34:00 +08:00
Adam Chyb
1785978872
Fix TreeItem truncating node names too much when using a custom icon
...
Fixes #83801 .
2023-10-27 00:30:48 +11:00
kobewi
7fb0cf2bd9
Allow clicking buttons of non-selectable TreeItems
2023-10-09 22:41:36 +02:00
Rémi Verschelde
0c7ac25b47
Merge pull request #81174 from BlueCube3310/tree-range-fix
...
Fix TreeItem range slider not working properly
2023-10-02 13:16:03 +02:00
Danil Alexeev
aff767ef07
Fix expected argument count for Callable
call errors
2023-09-29 20:00:10 +03:00
ajreckof
6afadbaa9f
Replace Ctrl in editor shortcuts with Cmd or Ctrl depending on platform
2023-09-19 10:29:07 +02:00
Yuri Sizov
2924bfd4d3
Register theme properties with ThemeDB
2023-09-11 13:45:23 +02:00
BlueCube3310
c759ac0e4f
Fix TreeItem range slider not working
2023-08-30 19:17:13 +02:00
Miguel Pereira
8278a5f274
Correctly display tooltips for buttons in Tree when they overlap cell content
2023-08-27 18:21:12 +02:00
Danil Alexeev
07d23489f4
GUI: Fix text overlapping icon in Tree
2023-08-24 22:09:02 +03:00
Koyper
e84588987a
Enabled missing Tree title button font and font size theme settings.
2023-08-16 08:10:31 -05:00
Danil Alexeev
5fb975e4a5
GUI: Fix Tree
performance regression by using cache
2023-08-04 16:11:26 +03:00
Yogendra Manawat
f0362cd37b
Fixed Tree Selection Bug
2023-07-29 00:30:39 +05:30
Yuri Sizov
b54d6cf466
Merge pull request #78393 from AThousandShips/tree_tooltip
...
Add ability to set the tooltip text of a `TreeItem` button
2023-07-12 15:09:09 +02:00
Yuri Sizov
b4a11294e6
Merge pull request #75460 from joao-pedro-braz/add_new_item_stylebox_to_the_tree_control
...
Add a new "inner_item_margin" Theme constant to the Tree control
2023-07-12 15:08:36 +02:00
Dawid Marzec
9abbdea95e
Fix cursor behaviour in Tree while holding CTRL
2023-06-21 20:44:29 +02:00
Ninni Pipping
75b355ee99
Add ability to set the tooltip text of a TreeItem
button
2023-06-18 11:14:32 +02:00
Ninni Pipping
dcd2b883eb
Use NULL instead of COND checks when appropriate
...
Restricted to scene
2023-06-10 08:56:30 +02:00
Danil Alexeev
010829f962
Tree: Add ability to configure text autowrap mode for individual cells
2023-06-03 15:17:35 +03:00
João Pedro Braz
670b7bec9a
Add the "inner_item_margin" Theme constant to the Tree control
...
This PR adds the "inner_item_margin" Theme constant to the Tree Control.
It behaves like a horizontal padding (in CSS), but only in the active
writing direction (So on LTR it'll apply a left padding and on RTL right
padding).
The Editor Theme has been updated to make use of this and a result items
in Trees and ItemLists no longer "hugs" their border, expressing a proper
spacing instead.
2023-06-02 11:32:40 +02:00
Yuri Sizov
3ed7bdc26f
Implement TreeItem.add_child
2023-05-31 11:36:23 +02:00
Dawid Marzec
9fe1d6aa27
Remove up/down input for text search in Tree
2023-05-23 21:41:10 +02:00
Rémi Verschelde
4020cc8acb
Merge pull request #76794 from Wiwip/inline-edit
...
Inline editor for the file system dock
2023-05-11 11:46:45 +02:00
Hendrik Brucker
dc46163b12
Improve editor state persistence
2023-05-11 04:17:03 +02:00
Wiwip
b08a6084af
Modifies the file system dock to use the inline editor instead of a dialog.
...
*Bugsquad edit:* Closes https://github.com/godotengine/godot-proposals/issues/4933
2023-05-10 18:49:35 -04:00
Danil Alexeev
865d6f5ed0
Fix multiline items drawing in Tree
2023-04-28 12:02:26 +03:00
Danil Alexeev
005937b576
Add support for multiline strings to Tree
2023-04-25 18:43:26 +03:00
needleful
9a968088db
Add allow_search property to ItemList and Tree
2023-04-18 09:21:18 -07:00
Haoyu Qiu
a083c85521
Tree: Fix offset calculation when there are hidden items
2023-04-12 17:49:52 +08:00
Yuri Sizov
5e6c382a84
Merge pull request #71433 from marzecdawid/fix-TreeItem-button-rendered-under-selected
...
Fix TreeItem's button being rendered under "Selected" highlights
2023-04-11 13:15:09 +02:00
Haoyu Qiu
498d538578
Add scrollbar offset theme constants to Tree
2023-04-06 15:04:28 +08:00