summaryrefslogtreecommitdiffstats
path: root/scene/gui/tree.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix TreeItem's button being rendered under Selected highlightDawid Marzec2023-02-171-49/+56
| |
* | Add scrollbar offset theme constants to TreeHaoyu Qiu2023-04-061-38/+67
| |
* | Merge pull request #75340 from Barugon/tree_colunm_title_alignmentRémi Verschelde2023-04-031-1/+42
|\ \ | | | | | | | | | Implement column title alignment for `Tree`
| * | Implement column title alignment for `Tree`Barugon2023-03-271-1/+42
| | |
* | | Make icons of scripted and custom classes fit the editor UIYuri Sizov2023-03-311-26/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also: - Add an option to limit the icon size in PopupMenu. This is similar to how this works in Tree and TreeItem. - Add the same option to TabBar. - Add a theme constant for Tree, PopupMenu, Button, and TabBar to apply this limit on the control level. Co-authored-by: Daylily-Zeleen <daylily-zeleen@foxmail.com>
* | | Fix Tree::deselect_all not deselecting rootDawid Marzec2023-03-251-7/+13
|/ /
* / Fix for deselecting item when select_mode == SELECT_ROWAndrej Eškinja2023-03-151-0/+4
|/
* Fix unlimited text rendering in Tree if width <= 0Stanislav Labzyuk2023-02-041-4/+4
|
* Remove some unused signalsRémi Verschelde2023-01-311-1/+0
| | | | Part of #37604.
* Improve clarity of Tree's activated/double-clicked signalsAaron Franke2023-01-241-4/+4
| | | | Co-authored-by: Yuri Sizov <yuris@humnom.net>
* Implement BiDi override mode for GDScript source.bruvzg2023-01-181-1/+1
|
* Merge pull request #70433 from Sauermann/fix-treeitem-idRémi Verschelde2023-01-161-49/+49
|\ | | | | | | Fix confusion about TreeItem.add_button ambiguity between id and index
| * Fix confusion about TreeItem.add_button ambiguity between id and indexMarkus Sauermann2022-12-291-49/+49
| | | | | | | | | | | | | | A TreeItem button has an id and an index, which can be distinct. This leads to confusion. This PR documents the distinction between id and index.
* | Merge pull request #71042 from ↵Rémi Verschelde2023-01-111-1/+5
|\ \ | | | | | | | | | | | | marzecdawid/only-cursor-multiselect-tree-text-search Fix text search in Tree with multiselect
| * | Fix text search in Tree with multiselectDawid Marzec2023-01-071-1/+5
| | |
* | | Expose Tree::deselect_all to GDScriptDawid Marzec2023-01-081-0/+1
|/ /
* | One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* | Fix Tree overflow without scrolling being enabledHaoyu Qiu2023-01-031-25/+22
| |
* | Use the vertical scrollbar when calculating the width that can be used for ↵Marius Hanl2022-12-311-6/+6
|/ | | | | | | drawing The horizontal scrollbar was used before, which is not correct as it has no influence to the drawing width Also fixed the other wrong locations
* Fix misaligned edit box when clicking on `Tree` items with different sizesMichael Alexsander2022-12-201-6/+5
|
* Merge pull request #68546 from marzecdawid/fix-deselect-all-in_treeRémi Verschelde2022-12-121-1/+3
|\ | | | | | | Fix errors while deselecting all tree items; issue #65185
| * Fix errors while deselecting all tree items; issue #65185Dawid Marzec2022-11-151-1/+3
| |
* | Merge pull request #68728 from Rindbee/fix-wrong-editRémi Verschelde2022-12-101-0/+2
|\ \ | | | | | | Make sure the popup editor is hidden when selected
| * | Make sure the popup editor is hidden when selectedRindbee2022-11-161-0/+2
| | |
* | | Fix Determining Window for TouchscreenMarkus Sauermann2022-12-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | DisplayServer::screen_is_touchscreen will likely never utilize its parameter p_screen. This PR replaces this function by DisplayServer::is_touchscreen_available() with the same functionality. This solves the problem, that a SubViewport was used for determining the screen, which resulted in error messages.
* | | Fix TreeItem::set_as_cursor checkNinni Pipping2022-12-041-1/+1
| | |
* | | Rename theme cache separation namesIceflower2022-11-301-32/+32
|/ /
* | Fix a gap with scrolling down in Tree with arrow keys (#57636)Dawid Marzec2022-11-141-16/+26
| |
* | [Font] Add an import option to pre-render all glyphs required for the ↵bruvzg2022-11-101-0/+7
|/ | | | translation.
* Remove duplicate project settings definitionskobewi2022-11-081-1/+1
|
* Merge pull request #66337 from EricEzaM/sprite-framesRémi Verschelde2022-10-131-8/+8
|\ | | | | | | Ensure control built-in shortcuts are matched exactly & add shortcuts for SpriteFrames editor
| * Ensure all checks of `is_action` in the editor which are for 'shortcut' use, ↵Eric M2022-09-241-8/+8
| | | | | | | | check the action exactly.
* | Expose TreeItem::set_button_colorJummit2022-10-091-0/+1
| |
* | Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-22/+22
| | | | | | | | change warnings=all to use /W4.
* | Fix wrong condition used in `set_custom_color`Rindbee2022-10-061-1/+1
|/
* Tree recursive foldingNinni Pipping2022-09-211-2/+76
|
* Fix key mapping changes when moving from macOS to other platformbruvzg2022-09-071-4/+4
| | | | | Removes separate `Command` key (use `Meta` instead). Adds an event flag to automatically remap `Command` <-> `Control` (cannot be set alongside `Control` or `Meta`).
* Improve naming of theme properties throughout GUI codeYuri Sizov2022-09-061-32/+34
| | | | | | | | | | | | | | Rename ItemList's bg -> panel Rename ItemList's bg_focus -> focus Rename ProgressBar's bg -> background Rename ProgressBar's fg -> fill Rename Tree's bg -> panel Rename Tree's bg_focus -> focus Rename ScrollContainer's bg -> panel Rename FileDialog's *_icon_modulate -> *_icon_color Rename FileDialog's files_disabled -> file_disabled_color Rename CheckButton's on/off -> checked/unchecked Rename check_v_adjust -> check_v_offset
* Add a lifecycle method for manual theme item caching to ControlYuri Sizov2022-09-011-262/+250
|
* Merge pull request #64377 from Mickeon/rename-canvas-redrawRémi Verschelde2022-08-301-48/+48
|\ | | | | Rename `CanvasItem.update()` to `queue_redraw()`
| * Rename `CanvasItem.update()` to `queue_redraw()`Micky2022-08-291-48/+48
| | | | | | | | | | | | | | | | | | | | Affects a lot of classes. Very thoroughly checked signal connections and deferred calls to this method, add_do_method/add_undo_method calls, and so on. Also renames the internal `_update_callback()` to `_redraw_callback()` for consistency. Just a few comments have also been changed to say "redraw". In CPUParticles2D, there was a private variable with the same name. It has been renamed to `do_redraw`.
* | Rename TreeItem's `set_tooltip` to `set_tooltip_text`Micky2022-08-301-9/+9
|/ | | | | | | | | `set_tooltip` -> `set_tooltip_text` `get_tooltip` -> `get_tooltip_text` For consistency: `get_button_tooltip` -> `get_button_tooltip_text` And the `tooltip` parameter in `add_button` was renamed to `tooltip_text`
* Merge pull request #64536 from Mickeon/editor-tree-icon-sizeRémi Verschelde2022-08-251-1/+6
|\ | | | | Account for TreeItem's Cell icon and center the text Popup vertically
| * Account for TreeItem's Cell icon and center the text Popup verticallyMicky2022-08-191-1/+6
| |
* | Merge pull request #64082 from KoBeWi/array3kRémi Verschelde2022-08-241-2/+2
|\ \
| * | Replace Array return types with TypedArray 3kobewi2022-08-241-2/+2
| | |
* | | Merge pull request #59226 from Rindbee/better-setters-in-gui-controlsYuri Sizov2022-08-241-4/+143
|\ \ \ | | | | | | | | Improve the setters in gui, return directly if the value does not change.
| * | | Add some codes, returnes directly if the value is not changed.风青山2022-08-231-4/+143
| |/ / | | | | | | | | | Avoid executing the following value-changed logics if the value does not really change.
* / / implemented right click on Tree control headerderammo2022-08-241-16/+16
|/ /
* / fixed Tree UI control bug corrupting child cachederammo2022-08-041-2/+32
|/