diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-08-11 10:29:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-11 10:29:41 +0200 |
commit | 8e6768c963b0ed825e4a4dbf3aeee5907168d697 (patch) | |
tree | da7f2efe5fceb097bc1ebb7ce6789e9bf3a3a1d8 /modules/nativescript | |
parent | 81dde2687f2f80f5f365a02d68913322d35e9be1 (diff) | |
parent | 78619a5866f44b057bc539e46a936f7580360800 (diff) |
Merge pull request #10202 from neikeq/how-do-you-turn-this-on
Improves method bind's detecting of signarute types
Diffstat (limited to 'modules/nativescript')
-rw-r--r-- | modules/nativescript/nativescript.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/nativescript/nativescript.cpp b/modules/nativescript/nativescript.cpp index e2717b8448..101928a668 100644 --- a/modules/nativescript/nativescript.cpp +++ b/modules/nativescript/nativescript.cpp @@ -55,11 +55,11 @@ ////// Script stuff void NativeScript::_bind_methods() { - ClassDB::bind_method(D_METHOD("set_class_name", "class_name:String"), &NativeScript::set_class_name); - ClassDB::bind_method(D_METHOD("get_class_name:String"), &NativeScript::get_class_name); + ClassDB::bind_method(D_METHOD("set_class_name", "class_name"), &NativeScript::set_class_name); + ClassDB::bind_method(D_METHOD("get_class_name"), &NativeScript::get_class_name); - ClassDB::bind_method(D_METHOD("set_library", "library:GDNativeLibrary"), &NativeScript::set_library); - ClassDB::bind_method(D_METHOD("get_library:GDNativeLibrary"), &NativeScript::get_library); + ClassDB::bind_method(D_METHOD("set_library", "library"), &NativeScript::set_library); + ClassDB::bind_method(D_METHOD("get_library"), &NativeScript::get_library); ADD_PROPERTYNZ(PropertyInfo(Variant::STRING, "class_name"), "set_class_name", "get_class_name"); ADD_PROPERTYNZ(PropertyInfo(Variant::OBJECT, "library", PROPERTY_HINT_RESOURCE_TYPE, "GDNativeLibrary"), "set_library", "get_library"); |