summaryrefslogtreecommitdiffstats
path: root/editor/scene_tree_dock.h
Commit message (Collapse)AuthorAgeFilesLines
* 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".
* Use forward-declarations in big editor classestrollodel2022-11-291-13/+7
|
* Use forward-declarations in EditorPlugin where possibletrollodel2022-11-111-0/+2
|
* Expose and warn about Node Filters in Scene Tree DockMicky2022-10-061-0/+10
| | | | | | | | | | Adds "Filter by Type" and "Filter by Group" in the Scene Tree Dock's MenuButton. Hovering on them displays an useful tooltip. When selecting these items, the matching parameter is appended to the terms, and the caret is automatically brought to the end. When typing a filter that cannot be identified, a warning icon is displayed. The reason is explained as a tooltip. The same options are also quickly available by right-clicking or middle-clicking in the text field.
* Merge pull request #65933 from Mickeon/remove-scene-tree-dock-unusedRémi Verschelde2022-09-211-3/+0
|\ | | | | | | Remove unused `import_subscene()` in Scene Tree Dock
| * Remove unused `import_subscene()` in Scene Tree DockMicky2022-09-161-3/+0
| |
* | Tree recursive foldingNinni Pipping2022-09-211-4/+0
|/
* Remove pathed get_node() use from scene tree dockkobewi2022-09-031-0/+4
|
* Code quality: Fix header guards consistencyRémi Verschelde2022-07-251-1/+1
| | | | | Adds `header_guards.sh` bash script, used in CI to validate future changes. Can be run locally to fix invalid header guards.
* Don't handle pending clicks outside scene treekobewi2022-06-101-0/+1
|
* Merge pull request #61162 from KoBeWi/drag_nodes_like_a_bossRémi Verschelde2022-05-231-1/+2
|\
| * Only switch to node when not dragging itkobewi2022-05-181-1/+2
| |
* | Add a new HashSet templatereduz2022-05-201-1/+1
|/ | | | | * Intended to replace RBSet in most cases. * Optimized for iteration speed
* Replace most uses of Map by HashMapreduz2022-05-161-9/+11
| | | | | | | | | | | | * Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
* Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio2022-05-031-4/+4
| | | | | | These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
* Style: Partially apply clang-tidy's `cppcoreguidelines-pro-type-member-init`Rémi Verschelde2022-05-021-1/+1
| | | | | | | | | | | Didn't commit all the changes where it wants to initialize a struct with `{}`. Should be reviewed in a separate PR. Option `IgnoreArrays` enabled for now to be conservative, can be disabled to see if it proposes more useful changes. Also fixed manually a handful of other missing initializations / moved some from constructors.
* Merge pull request #59979 from bruvzg/cpp_check2Rémi Verschelde2022-04-271-1/+1
|\
| * Fix more issues found by cppcheck.bruvzg2022-04-201-1/+1
| |
* | Implement Scene Unique Nodesreduz2022-04-251-1/+1
|/ | | | | | | | Implements https://github.com/godotengine/godot-proposals/issues/4096 * Nodes can be marked unique to the scene in the editor (or via code). * Unique nodes can be accessed via the **%** prefix at any point in the path. From that point in the path (depending on whether the scene of the path is), the unique node will be fetched. * Implementation is very optimal, as these nodes are cached.
* [Input] Add extra `shortcut_input` input processing step to process Unicode ↵bruvzg2022-04-051-1/+1
| | | | character input with Alt / Ctrl modifiers, after processing of shortcuts.
* Zero initialize all pointer class and struct membersRémi Verschelde2022-04-041-36/+36
| | | | | This prevents the pitfall of UB when checking if they have been assigned something valid by comparing to nullptr.
* Initialize bools in the headers in editorAaron Franke2022-03-121-4/+4
|
* Editor: Cleanup some includes dependenciesRémi Verschelde2022-02-151-2/+3
| | | | | | | | | | | Removes some unnecessary includes from `editor_node.h`, and instead add those where they're used. Removes unnecessary `editor_node.h` includes in various editor classes. Renames `dynamicfont` to `dynamic_font` in a couple files. Misc cleanup while jumping through that rabbit hole.
* Remove most EditorNode constructor parameters and fieldstrollodel2022-02-141-2/+1
|
* Improve 2D editor's right-click menukobewi2022-01-271-0/+1
|
* Store panels and docks singletons in their own classestrollodel2022-01-201-1/+6
|
* Make Scene dock menu button an actual `MenuButton`Michael Alexsander2022-01-201-2/+2
|
* Improve node pastingkobewi2022-01-181-0/+3
|
* Merge pull request #53313 from KoBeWi/debinded_konnektRémi Verschelde2022-01-041-1/+0
|\
| * Add support for unbinding in connection dialogkobewi2021-10-041-1/+0
| |
* | Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | | | | | Happy new year to the wonderful Godot community!
* | Add drag and drop for NodePathskobewi2021-12-091-0/+1
| |
* | Modules: Make sure to include modules_enabled.gen.h where neededRémi Verschelde2021-11-121-0/+2
| |
* | Infer shader type based on edited nodekobewi2021-11-031-2/+2
| |
* | Remove unimplemented methodsMarcel Admiraal2021-10-211-2/+0
|/
* Merge pull request #51413 from KoBeWi/🚗Rémi Verschelde2021-10-041-0/+3
|\
| * Move the option to new menukobewi2021-08-121-0/+2
| |
| * Add option to not expand tree on node selectkobewi2021-08-121-0/+1
| |
* | Allow disabling the RegEx module in the editorAaron Franke2021-09-151-0/+4
| |
* | Save branch as scene by dropping to filesystemkobewi2021-09-091-0/+1
| |
* | Entirely removes BIND_VMETHOD in favor of GDVIRTUALreduz2021-08-231-2/+2
|/ | | | | | | | * `_gui_input`, `_input`, `_unhandled_input` and `_unhandled_key_input` are now regular C++ virutal functions. * Everything else converted to GDVIRTUAL * BIND_VMETHOD is gone, always use the new syntax from now on. Creating `_gui_input` method and using the binder to register events will no longer work, simply override the virtual function now.
* Added editor dialog for easily creating shaders.Yuri Roubinsky2021-08-071-0/+9
|
* Merge pull request #50319 from nekomatata/optimize-node-path-checkRémi Verschelde2021-07-221-5/+5
|\ | | | | Optimize NodePath update when renaming or deleting nodes in the editor
| * Optimize NodePath update when renaming or deleting nodes in the editorPouleyKetchoupp2021-07-091-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Now the process uses a Map to lookup node pointers instead of iterating over all modified node paths in a list and comparing them for each property to check. The process also avoids checking properties with empty node paths and does an early exit on deleted nodes to avoid checking the node and its descendants. Also made a minor change in NodePath::rel_path_to() to avoid resizing a Vector many times for long paths (with copy-on-write each time). Now it's down to 2 resize calls in any case.
* | Assign value to property by dropping to scene treekobewi2021-07-191-0/+6
|/
* Add a root Node3D automatically if absent when adding preview sun and skyHugo Locurcio2021-07-071-0/+1
| | | | | This makes for a smoother prototyping process compared to displaying an error message.
* Coding style fix in editor NodePath updatePouleyKetchoupp2021-06-301-2/+2
| | | | Added r_ prefix for reference arguments that can be modified.
* Merge pull request #49812 from nekomatata/node-path-editor-updateRémi Verschelde2021-06-291-0/+3
|\ | | | | NodePath properly updated in the editor in more cases when nodes are moved or renamed
| * NodePath properly updated in the editor in more casesPouleyKetchoupp2021-06-281-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix more cases of node path needing an update when nodes are renamed or moved in the editor. Built-in node properties: Before, node paths were checked only for script export variables. Now all properties are checked from the node, which includes built-in node properties. Allows proper node path updates for nodes like remote transform, physics joints, etc. Arrays and dictionaries: Node paths nested in array and dictionary properties are now also updated in the editor. Also update the documentation to be clear about node path update in the editor and at runtime. Co-authored-by: latorril <latorril@gmail.com>
* | Rename `instance()`->`instantiate()` when it's a verbLightning_A2021-06-191-4/+4
|/