summaryrefslogtreecommitdiff
path: root/scene/main/node.cpp
AgeCommit message (Collapse)Author
2023-01-10Add Node::get_window() method.bruvzg
2023-01-07Merge pull request #36301 from KoBeWi/daddy_nodeRémi Verschelde
Add reparent methods to Node
2023-01-06Merge pull request #68429 from KoBeWi/PropertySettingsRémi Verschelde
Add PropertyInfo overload for GLOBAL_DEF
2023-01-05One Copyright Update to rule them allRémi Verschelde
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".
2022-12-11Add PropertyInfo overload for GLOBAL_DEFkobewi
2022-11-28Merge pull request #68874 from TokageItLab/fix-unique-path-keyingRémi Verschelde
Added option to `get_path_to()` to get the shortest path considering unique name
2022-11-24Merge pull request #68566 from Mickeon/node-print-orphans-staticRémi Verschelde
Make `Node.print_orphan_nodes()` static
2022-11-23Merge pull request #68568 from Mickeon/node-parent-busy-errorRémi Verschelde
Update "Parent node is busy" errors to use `Callable.call_deferred()`
2022-11-23Update "Parent node is busy" errors to use `Callable.call_deferred()`Micky
Also fixes outdated method names in the messages.
2022-11-19Add option to get_path_to() to get the shortest path with unique nameSilc Renew
2022-11-16Merge pull request #68709 from MewPurPur/instance-begone-part3Rémi Verschelde
Remove more instances of 'instance' being used as a verb
2022-11-16Remove more instances of 'instance' being used as a verbVolTer
2022-11-15Fix crash of queue_free() when main loop is not SceneTreeHaoyu Qiu
2022-11-14Merge pull request #68564 from Mickeon/node-no-remove-group-errorRémi Verschelde
Strip ERR_FAIL from `Node.remove_from_group()`
2022-11-14Remove redundant Variant-types initializationsMarkus Sauermann
2022-11-13Strip ERR_FAIL from `Node.remove_from_group()`Micky
Also simplifies group check removing unnecessary `!data.grouped.has`
2022-11-12Make `Node.print_orphan_nodes()` staticMicky
2022-10-31Merge pull request #67578 from KoBeWi/GEDITORRémi Verschelde
Unify usage of GLOBAL/EDITOR_GET
2022-10-31Merge pull request #67445 from Zylann/rename_queue_deleteRémi Verschelde
Rename queue_delete => queue_free
2022-10-24Rename queue_delete => queue_freeMarc Gilleron
# Conflicts: # editor/plugins/tiles/tiles_editor_plugin.cpp
2022-10-18Unify usage of GLOBAL/EDITOR_GETkobewi
2022-10-16Fix get_path() error when calling get_node()Haoyu Qiu
2022-10-14Rename pos -> index on NodeMiguel Gonzalez Sanchez
2022-10-10Fix node name casing issueskobewi
Co-authored-by: ryburnj <jordanryburn@gmail.com>
2022-10-07Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg
change warnings=all to use /W4.
2022-10-03Unix: Remove now unnecessary I/O defines, cleanupRémi Verschelde
- `LIBC_FILEIO_ENABLED` wasn't defined anywhere, even in _other platforms_. - `NO_NETWORK` is also never defined. It probably isn't enough anyway to disable network APIs in the current codebase. - `UNIX_SOCKET_UNAVAILABLE` is never defined in this code but used by some other platforms, clarify that. - `NO_STATVFS` can be removed as Android supports it since API level 19, which is our current min SDK level. It's also only used for `DirAccessUnix::get_space_left()` which is anyway overridden by `DirAccessJAndroid::get_space_left()` so it shouldn't make a difference. * Fixed documentation for `DirAccess.get_space_left()`. - `NO_FCNTL` is likely also a remnant of early Android days, in current NDK r23 it seems to be available. Also cleaned up unused `fcntl.h` includes. - `NO_ALLOCA` is never defined, and we use alloca in many places now.
2022-09-19Change return type of `get_configuration_warnings` to `PackedStringArray`Marc Gilleron
2022-09-10Merge pull request #65595 from KoBeWi/minus_childrenRémi Verschelde
Allow negative indices in `move_child()`
2022-09-10Allow negative indices in move_child()kobewi
2022-09-09Remove Remove and SkipVolTer
2022-09-08Merge pull request #60108 from KoBeWi/arise_to_topRémi Verschelde
Rename raise() to move_to_front()
2022-09-07Rename `legible_unique_name` param to `force_readable_name`Micky
With the introduction of Scene Unique Nodes, `is_unique_in_owner`, "Unique Name in Scene" and other descriptions related to the feature, the second parameter of add_child() and add_simbling() could be misunderstood to be related, at first glance.
2022-09-06Rename raise() to move_to_front()kobewi
2022-08-30Merge pull request #63902 from dalexeev/string-casesRémi Verschelde
2022-08-30Merge pull request #64410 from MewPurPur/rename-notification-instancedRémi Verschelde
2022-08-30Add `String.to_{camel,pascal,snake}_case` methodsDanil Alexeev
2022-08-26Merge pull request #64570 from KoBeWi/node🧳ingRémi Verschelde
Unify node casing adjustment
2022-08-23Replace Array return types with TypedArray 2kobewi
2022-08-18Unify node casing adjustmentkobewi
2022-08-16Add methods for node reparentingTomasz Chabora
2022-08-16Rename NOTIFICATION_INSTANCED to NOTIFICATION_SCENE_INSTANTIATEDVolTer
2022-08-02move rpc and rpc_id implementations back to headerNathan Franke
StackOverflow on why this is needed: https://stackoverflow.com/questions/495021/why-can-templates-only-be-implemented-in-the-header-file Minor mistake in commit ca7d572908c58c587214b8f65bdd4078d0185ab2
2022-07-29Remove Signal connect bindsJuan Linietsky
Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
2022-07-26[Net] Modularize multiplayer, expose MultiplayerAPI to extensions.Fabio Alessandrelli
- RPC configurations are now dictionaries. - Script.get_rpc_methods renamed to Script.get_rpc_config. - Node.rpc[_id] and Callable.rpc now return an Error. - Refactor MultiplayerAPI to allow extension. - New MultiplayerAPI.rpc method with Array argument (for scripts). - Move the default MultiplayerAPI implementation to a module.
2022-07-01Add an underscore to internal group names as per engine policyHugo Locurcio
This also adds `SNAME()` macros where relevant to improve performance.
2022-06-27Merge pull request #61577 from YuriSizov/core-fix-events-for-moved-nodesRémi Verschelde
2022-06-23Fix editor-only visibility for lightsreduz
* Update visibility again for editor-only lights if owner changes. Fixes #26399, supersedes #52327
2022-06-20Node: Rename `child_exited_tree` to `child_exiting_tree`Rémi Verschelde
The name was confusing as this signal is emitted around the same time as `tree_exiting` and `NOTIFICATION_EXIT_TREE`, i.e. while the child node is still in tree. Fixes #59210.
2022-05-31Mark node groups as dirty for every children if parent is movedYuri Sizov
2022-05-20Add a new HashSet templatereduz
* Intended to replace RBSet in most cases. * Optimized for iteration speed