summaryrefslogtreecommitdiffstats
path: root/scene/gui/tree.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix Tree and FileSystemList edit popup double events and ESC behavior.bruvzg2024-05-171-1/+25
|
* Use Core/Scene stringnames consistentlykobewi2024-05-131-1/+1
|
* Fold TreeItems when clicking to the left of fold iconkobewi2024-05-081-1/+1
|
* Make handling of rename line-edit popups more robustPedro J. Estébanez2024-05-071-3/+1
|
* [Core] Add scalar versions of `Vector*` `min/max/clamp/snap(ped)`A Thousand Ships2024-05-021-1/+1
| | | | Convenience for a number of cases operating on single values
* Fix Tree minimum size calculationHaoyu Qiu2024-04-251-36/+47
| | | | | | | | | - Take scroll bar space and column title buttons into account - Fix first column min size sometimes missing one level of indent - Fix cell min size ignoring text overrun behavior and item inner margin - Update min size when `hide_root` or `column_title_visible` changes Wrong description of `item_inner_margin_*` constants is also fixed
* Fix wrong Tree column title positionHaoyu Qiu2024-04-231-2/+3
|
* Fix TreeItem button handlingHaoyu Qiu2024-04-181-79/+102
| | | | | | - Fix incorrect tooltip and `get_button_id_at_position()` when column title is visible and when RTL layout is used - Take `button_margin`, `h_separation`, and `item_margin` into account
* Merge pull request #90842 from timothyqiu/revert-79792Rémi Verschelde2024-04-181-3/+10
|\ | | | | | | Revert "Correctly display tooltips for buttons in Tree when they overlap cell content
| * Revert "Correctly display tooltips for buttons in Tree when they overlap ↵Haoyu Qiu2024-04-181-3/+10
| | | | | | | | | | | | cell content" This reverts commit 8278a5f274eda7484b4f31a5acb4af34b9d4fc39.
* | Fix non-embedded Windows resizing to match Viewport content scale factorKoyper2024-04-171-3/+11
|/
* Merge pull request #89977 from aqfranco/masterRémi Verschelde2024-04-041-5/+18
|\ | | | | | | Fix TreeItem shows cell edit in the wrong column when `select_mode=Row` and TreeItem has multiple columns
| * Fix #88892: TreeItem shows cell edit in the wrong column when SelectMode=Row ↵Andre Franco2024-03-281-5/+18
| | | | | | | | | | | | | | | | | | | | and TreeItem has multiple columns Editor would not be brought up when clicking on all but the last column on a TreeItem with SelectMode=Row with multiple columns and when the editor was being brought up when clicking on the last column, it was editing the first column Fixed draw_item, gui_input and edit_selected functions by setting set_meta parameter for each column Fixed select_single_item function by changing selected_col depending on input
* | Rename some arguments called "position"kobewi2024-03-271-2/+2
|/
* Fix empty_clicked signal when hide_rootvoylin2024-03-221-0/+1
| | | | fix
* Merge pull request #88300 from FaycalElOuariachi/add-TreeItem-is_visible_in_treeRémi Verschelde2024-03-051-11/+34
|\ | | | | | | Add `is_visible_in_tree` in `TreeItem`
| * Add is_visible_in_tree in TreeItemFaycal ElOuariachi2024-03-051-11/+34
| |
* | Add auto translation to `Tree`Michael Alexsander2024-03-011-6/+25
| |
* | Add option to add built-in strings in the POT generationMichael Alexsander2024-02-281-1/+1
| |
* | Fix crash when selecting re-added `Tree` itemMikael Hermansson2024-02-271-0/+4
|/
* Fix recursive Tree expand/collapse shortcuts not workingHugo Locurcio2024-02-131-22/+12
| | | | | | | | | | 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.
* Only recurse depth wise in `Tree::_count_selected_items`ACB2024-02-041-6/+2
|
* Merge pull request #87688 from AThousandShips/what_is_thisRémi Verschelde2024-01-291-5/+5
|\ | | | | | | Remove unnecessary `this->` expressions
| * Remove unnecessary `this->` expressionsA Thousand Ships2024-01-291-5/+5
| |
* | Add `get_button_color(column, id)`radzo732024-01-281-0/+7
|/ | | | Docs should point to Color constuctor instead of just the class, but I unfortunately cannot.
* Use callable for `TreeItem` custom drawA Thousand Ships2024-01-231-5/+30
| | | | Deprecating old functionality
* Redraw `TreeItem` on more changesA Thousand Ships2024-01-221-0/+20
| | | | | | * Custom font changes * Custom draw changes * Custom as button
* Update deferred calls to use Callableskobewi2024-01-091-2/+2
|
* Merge pull request #86218 from TheSofox/arrow-key-scene-tree-navYuri Sizov2023-12-201-4/+3
|\ | | | | | | Fix `Node` selection when navigating `Tree` with Arrow keys
| * Fixes Node selection when navigating SceneTree with Arrow keysSofox2023-12-161-4/+3
| |
* | Merge pull request #84845 from DarkMessiah/tree-disabled-checkboxYuri Sizov2023-12-191-10/+25
|\ \ | |/ |/| | | Implement disabled state for Checkbox in Tree
| * Implement disabled state for Checkbox in TreeStanislav Labzyuk2023-11-151-10/+25
| |
* | Prevent crash when call set_text() on a removed treeItemjsjtxietian2023-12-121-4/+12
| |
* | Make Tree's set_selected check if treeitem belongs to the treejsjtxietian2023-11-141-0/+2
|/
* Fix TreeItem truncating node names too much when using a custom iconAdam Chyb2023-10-271-1/+1
| | | | Fixes #83801.
* Allow clicking buttons of non-selectable TreeItemskobewi2023-10-091-13/+13
|
* Merge pull request #81174 from BlueCube3310/tree-range-fixRémi Verschelde2023-10-021-1/+1
|\ | | | | | | Fix TreeItem range slider not working properly
| * Fix TreeItem range slider not workingBlueCube33102023-08-301-1/+1
| |
* | Fix expected argument count for `Callable` call errorsDanil Alexeev2023-09-291-1/+1
| |
* | Replace Ctrl in editor shortcuts with Cmd or Ctrl depending on platformajreckof2023-09-191-1/+1
| |
* | Register theme properties with ThemeDBYuri Sizov2023-09-111-70/+71
| |
* | Correctly display tooltips for buttons in Tree when they overlap cell contentMiguel Pereira2023-08-271-10/+3
|/
* GUI: Fix text overlapping icon in `Tree`Danil Alexeev2023-08-241-2/+27
|
* Enabled missing Tree title button font and font size theme settings.Koyper2023-08-161-3/+2
|
* GUI: Fix `Tree` performance regression by using cacheDanil Alexeev2023-08-041-39/+53
|
* Fixed Tree Selection BugYogendra Manawat2023-07-291-9/+10
|
* Merge pull request #78393 from AThousandShips/tree_tooltipYuri Sizov2023-07-121-0/+7
|\ | | | | | | Add ability to set the tooltip text of a `TreeItem` button
| * Add ability to set the tooltip text of a `TreeItem` buttonNinni Pipping2023-06-181-0/+7
| |
* | Merge pull request #75460 from ↵Yuri Sizov2023-07-121-4/+7
|\ \ | | | | | | | | | | | | | | | joao-pedro-braz/add_new_item_stylebox_to_the_tree_control Add a new "inner_item_margin" Theme constant to the Tree control
| * | Add the "inner_item_margin" Theme constant to the Tree controlJoão Pedro Braz2023-06-021-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.