godot/core/object
Quentin Quaadgras 6bc16660cc Fix _unnamed_arg so that arguments defined by GDExtension show up in docs.
The Godot API (gdnative_interface.h) allows methods to be registered on
extension classes with

`classdb_register_extension_class_method`

a `GDNativeExtensionClassMethodInfo` can be provided to this function
along with a `get_argument_info_func` which according to the comment
indicates that argument names should be definable here.

Unfortunately, setting the name field in the `GDNativePropertyInfo`
struct has no effect on the editor documentation, which continues to
display "_unnamed_arg" for each argument.

I discovered that `get_argument_info` is responsible for this as it
always overrides the `info.name`. I've added an if condition that will
only override the name when it is empty. I've tested this with my
GDExtension module and I can confirm that with this commit, the argument
name shows up in the builtin docs. eg. in Lookup Symbol.
2022-10-12 21:23:34 +13:00
..
callable_method_pointer.cpp Clean up Hash Functions 2022-06-20 12:54:19 +02:00
callable_method_pointer.h Add callable_mp_static 2022-05-22 15:36:34 +02:00
class_db.cpp free NativeExtensionMethodBinds on unregister 2022-10-05 11:46:00 -05:00
class_db.h Clean-up array editing 2022-08-02 23:36:02 +02:00
make_virtuals.py Rename script_instance to _script_instance in the GDVIRTUAL* wrappers to avoid shadowing Object member. 2022-09-28 15:57:59 +03:00
message_queue.cpp Remove Signal connect binds 2022-07-29 16:26:13 +02:00
message_queue.h Zero initialize all pointer class and struct members 2022-04-04 19:49:50 +02:00
method_bind.cpp Fix _unnamed_arg so that arguments defined by GDExtension show up in docs. 2022-10-12 21:23:34 +13:00
method_bind.h SCons: Cleanup GCC warnings configuration 2022-10-10 16:12:26 +02:00
object_id.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
object.cpp Rename CONNECT_ONESHOT TO CONNECT_ONE_SHOT 2022-09-06 19:00:33 +02:00
object.h Merge pull request #66839 from aaronfranke/editor-prop-hide-slider 2022-10-05 08:47:06 +02:00
ref_counted.cpp Rename and expose RefCounted::get_reference_count() 2022-09-21 21:18:54 +01:00
ref_counted.h Rename and expose RefCounted::get_reference_count() 2022-09-21 21:18:54 +01:00
script_language_extension.cpp added missing virtual to ScriptExtension 2022-08-20 06:29:39 -04:00
script_language_extension.h Implement ScriptExtension::get_documentation 2022-10-11 08:22:25 +02:00
script_language.cpp Validate input in ScriptServer::register_language 2022-10-08 14:12:25 +08:00
script_language.h Replace Array return types with TypedArray 2 2022-08-23 23:21:32 +02:00
SCsub Implement native extension system 2021-06-25 17:32:45 -03:00
undo_redo.cpp Change UndoRedo to use Callables 2022-09-18 23:52:50 +02:00
undo_redo.h Change UndoRedo to use Callables 2022-09-18 23:52:50 +02:00
worker_thread_pool.cpp Fix typos with codespell 2022-09-30 14:23:36 +02:00
worker_thread_pool.h Remove ThreadWorkPool, replace by WorkerThreadPool 2022-07-25 15:39:50 +02:00