summaryrefslogtreecommitdiffstats
path: root/editor/gui/scene_tree_editor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Set auto translate mode for drag previewsHaoyu Qiu2024-09-191-0/+1
| | | | | | | | | | | | | - Controls - `LineEdit`, `TextEdit`: Always disabled since it's dragging user input. - `TabBar`: Use the same auto translate mode as the node. - `RichTextLabel`: Always disable since auto translation is done differently from other controls (selection text you get programmatically is always after auto translation). - Editor - Disable drag preview auto translation if the text is user input, filename, or class name. - Also disabled unexpected auto translation for audio bus effect names.
* Merge pull request #96400 from ↵Rémi Verschelde2024-09-161-0/+15
|\ | | | | | | | | | | Maran23/inputmap-usage-for-filter-and-corresponding-refactor Use InputMap actions consistently across all LineEdit's that filter an underlying Tree or ItemList.
| * Use InputMap actions consistently across all LineEdit's that filter an ↵Marius Hanl2024-08-311-0/+15
| | | | | | | | | | | | | | | | | | underlying Tree or ItemList. - Instead of checking for Key::UP, Key::DOWN, Key::PAGEUP, Key::PAGEDOWN etc., we rather check for the action like 'ui_up' or 'ui_down'. - Also use AcceptDialog's 'register_text_enter' functionality to consistently close a dialog when ENTER is pressed while the LineEdit has focus (instead of redirecting ENTER keys to e.g. the underlying Tree). - Unify the LineEdit filter behavior for the SceneTreeDialog and corresponding usages - Improve OK Button disablement (something should be selected)
* | Merge pull request #96569 from AThousandShips/fix_tree_buttonRémi Verschelde2024-09-051-2/+6
|\ \ | | | | | | | | | [Editor] Prevent duplicate `Open in Editor` buttons in scene tree dock
| * | [Editor] Prevent duplicate `Open in Editor` buttons in scene tree dockA Thousand Ships2024-09-041-2/+6
| |/ | | | | | | Duplicate buttons were added when editor description changed
* | Merge pull request #95343 from Giganzo/unique-name-dialogRémi Verschelde2024-09-041-6/+43
|\ \ | |/ |/| | | Add ConfirmationDialog when clicking on % button in SceneTree
| * Add ConfirmationDialog when clicking on % button in SceneTreeGiganzo2024-09-041-6/+43
| |
* | [Scene] Add SceneStringName::toggledYuri Rubinsky2024-08-281-1/+1
| |
* | Disable text trimming in SceneTreeEditorkobewi2024-08-211-0/+1
| |
* | Merge pull request #94773 from ↵Rémi Verschelde2024-08-191-1/+18
|\ \ | | | | | | | | | | | | | | | Hilderin/fix-add-child-node-problem-no-auto-expand Fix scene node selection problem when no auto expand
| * | Fix scene node selection problem when no auto expandHilderin2024-08-171-1/+18
| |/
* / Fix order of Lock and Group icons in SceneTreeGiganzo2024-08-091-7/+7
|/
* Fix reselecting scene tree node after inspecting a resourceAnni Ryynänen2024-06-241-1/+0
| | | | | | This broke when the `node_selected` connection was removed in #91435. Here it's returned, but the emit is removed from `_node_removed`. That preserves the earlier fix while allowing nodes to be reselected.
* [Scene] Add `SceneStringNames::text/value_changed`A Thousand Ships2024-06-191-1/+1
|
* [Scene] Add `SceneStringNames::confirmed`A Thousand Ships2024-06-191-2/+2
|
* Consistently display script icons for nodes in connect dialog's scene tree ↵Stephen Berry2024-06-101-10/+14
| | | | editor
* Fix some incorrect uses of `String` over `StringName`A Thousand Ships2024-06-031-1/+1
| | | | These were accepting `SNAME` assignments
* Fix scene hash not updated when scene is emptykobewi2024-05-221-1/+1
|
* Create AudioStreamPlayer when dropping AudioStreamHaoyu Qiu2024-05-191-4/+17
| | | | | | - Create AudioStreamPlayer if dropped in between nodes in the Scene dock - Create AudioStreamPlayer2D if dropped into 2D editor - Create AudioStreamPlayer3D if dropped into 3D editor
* Use Core/Scene stringnames consistentlykobewi2024-05-131-12/+12
|
* Reduce and prevent unnecessary random-access to `List`A Thousand Ships2024-05-041-3/+3
| | | | | | | | | Random-access access to `List` when iterating is `O(n^2)` (`O(n)` when accessing a single element) * Removed subscript operator, in favor of a more explicit `get` * Added conversion from `Iterator` to `ConstIterator` * Remade existing operations into other solutions when applicable
* Merge pull request #86605 from KoBeWi/update_all_of_the_tree_notRémi Verschelde2024-04-261-1/+0
|\ | | | | | | Don't update tree on deselect
| * Don't update tree on deselectkobewi2023-12-291-1/+0
| |
* | SceneTreeEditor: Fix crash when TreeItem is removed before callbackRémi Verschelde2024-04-051-1/+10
| | | | | | | | | | | | Fixes #90235. Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
* | Improve SceneTreeEditor usabilityRedMser2024-03-311-1/+24
| | | | | | | | | | | | - Mark contextually relevant node - Remember/Clear selection as appropriate - Scroll to marked/selected node
* | Fix unexpected auto-translation of more editor componentsHaoyu Qiu2024-03-281-1/+1
| |
* | Merge pull request #88003 from kitbdev/dock-manager-fixesRémi Verschelde2024-03-241-5/+3
|\ \ | | | | | | | | | Refactor and fix issues in Editor Dock Manager
| * | Refactor and fix issues in Editor Dock Managerkit2024-03-161-5/+3
| | | | | | | | | | | | Extract Dock Context Menu.
* | | Allow node visibility to work with custom user-provided node typesAaron Franke2024-03-071-61/+26
|/ /
* | Allow to easily rename multiple nodeskobewi2024-03-031-14/+38
| | | | | | | | Co-authored-by: ajreckof <tbonhoure@ymail.Com>
* | Add const lvalue ref to editor/* container parametersMuller-Castro2024-02-261-1/+1
| |
* | Remove word duplicates in comments and strings, and fix casing and punctuationRobert Yevdokimov2024-02-231-1/+1
| |
* | Revert "Allow configuration warnings to refer to a property"Rémi Verschelde2024-02-171-7/+43
| | | | | | | | This reverts commit bf37a9bac6ebfb09c0a374260c35ede8373ce427.
* | Make auto translation inheritableMichael Alexsander2024-02-151-1/+1
| |
* | Allow configuration warnings to refer to a propertyRedMser2024-02-081-43/+7
| | | | | | | | | | This is used by the inspector so it can show a warning icon on a specific property.
* | Merge pull request #87535 from Mickeon/scene-tree-configuration-warnings-cleanupRémi Verschelde2024-01-291-17/+28
|\ \ | | | | | | | | | Improve appearance of Node configuration warnings
| * | Improve appearance of Node configuration warningsMicky2024-01-271-17/+28
| | |
* | | Fix renaming a node to the name of its siblings breaking NodePathajreckof2024-01-161-3/+2
|/ / | | | | | | | | | | Also fix cases where node name was not visually updated because name was not changed Co-Authored-By: Nông Văn Tình <53887662+nongvantinh@users.noreply.github.com>
* | Split theme generation logic into several subroutinesYuri Sizov2024-01-161-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change introduces a new theme configuration struct to be passed to the aforementioned routines to better control reuse of styles and definitions in the generator. Everything not passed and not explicitly shared is scoped so it is not automatically accessible throughout the routine. This should ensure that the decision to share styles is a conscious one. In the future we will try to reduce the number of unique definitions and share most of it. This PR is a stepping stone on this path. This also puts the effort into separating redefinitions of default theme items vs custom types introduced only by the editor. In a few cases where editor-specific definitions need to reference default definitions we simply fetch them from the theme. It's not ideal and hides the dependency a bit, but hopefully these cases will be abstracted properly in due time.
* | Reorganize code related to editor themingYuri Sizov2024-01-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This change introduces a new EditorThemeManager class to abstract theme generatio and its subroutines. Logic related to EditorTheme, EditorColorMap, and editor icons has been extracted into their respective files with includes cleaned up. All related files have been moved to a separate folder to better scope them in the project. This includes relevant generated files as well.
* | Update deferred calls to use Callableskobewi2024-01-091-8/+6
| |
* | Merge pull request #84445 from Rubonnek/add-const-references-clang-tidyRémi Verschelde2024-01-041-1/+1
|\ \ | | | | | | | | | Add const references detected by clang-tidy
| * | Add const references detected by clang-tidyWilson E. Alvarez2023-12-161-1/+1
| | |
* | | Merge pull request #82916 from ↵Rémi Verschelde2024-01-031-26/+50
|\ \ \ | |_|/ |/| | | | | | | | | | | jsjtxietian/update-scene-tree-tooltip-after-editor-description-chnage Support updating tooltip immediately after editor description change
| * | support updating tooltip after editor description changejsjtxietian2023-11-151-26/+50
| | |
* | | Improve action name for ungroup button in Scene dockHaoyu Qiu2023-12-221-1/+1
| |/ |/|
* | Remove unnecessary assignmentsWilson E. Alvarez2023-12-131-2/+1
| | | | | | | | Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
* | Merge pull request #82528 from SaracenOne/path_typesYuri Sizov2023-12-081-3/+40
|\ \ | | | | | | | | | Add support for exporting script classes without a name
| * | Script path type support in editor:Saracen2023-11-081-3/+40
| |/ | | | | | | | | Allow script path type hints to be used in drag and drop and scene tree popup.
* / Allow dragging editable childrenHaoyu Qiu2023-11-011-7/+18
|/ | | | But not allow dropping inside the scene tree editor.