Merge pull request #61961 from jtnicholl/anim_lib_type_hints
Fix type hints for AnimationLibrary's signals' arguments
This commit is contained in:
commit
803d25a20a
|
@ -51,18 +51,18 @@
|
||||||
</members>
|
</members>
|
||||||
<signals>
|
<signals>
|
||||||
<signal name="animation_added">
|
<signal name="animation_added">
|
||||||
<argument index="0" name="name" type="Animation" />
|
<argument index="0" name="name" type="StringName" />
|
||||||
<description>
|
<description>
|
||||||
</description>
|
</description>
|
||||||
</signal>
|
</signal>
|
||||||
<signal name="animation_removed">
|
<signal name="animation_removed">
|
||||||
<argument index="0" name="name" type="Animation" />
|
<argument index="0" name="name" type="StringName" />
|
||||||
<description>
|
<description>
|
||||||
</description>
|
</description>
|
||||||
</signal>
|
</signal>
|
||||||
<signal name="animation_renamed">
|
<signal name="animation_renamed">
|
||||||
<argument index="0" name="name" type="Animation" />
|
<argument index="0" name="name" type="StringName" />
|
||||||
<argument index="1" name="to_name" type="Animation" />
|
<argument index="1" name="to_name" type="StringName" />
|
||||||
<description>
|
<description>
|
||||||
</description>
|
</description>
|
||||||
</signal>
|
</signal>
|
||||||
|
|
|
@ -143,9 +143,9 @@ void AnimationLibrary::_bind_methods() {
|
||||||
ClassDB::bind_method(D_METHOD("_get_data"), &AnimationLibrary::_get_data);
|
ClassDB::bind_method(D_METHOD("_get_data"), &AnimationLibrary::_get_data);
|
||||||
|
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::DICTIONARY, "_data", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NO_EDITOR), "_set_data", "_get_data");
|
ADD_PROPERTY(PropertyInfo(Variant::DICTIONARY, "_data", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NO_EDITOR), "_set_data", "_get_data");
|
||||||
ADD_SIGNAL(MethodInfo("animation_added", PropertyInfo(Variant::OBJECT, "name", PROPERTY_HINT_RESOURCE_TYPE, "Animation")));
|
ADD_SIGNAL(MethodInfo("animation_added", PropertyInfo(Variant::STRING_NAME, "name")));
|
||||||
ADD_SIGNAL(MethodInfo("animation_removed", PropertyInfo(Variant::OBJECT, "name", PROPERTY_HINT_RESOURCE_TYPE, "Animation")));
|
ADD_SIGNAL(MethodInfo("animation_removed", PropertyInfo(Variant::STRING_NAME, "name")));
|
||||||
ADD_SIGNAL(MethodInfo("animation_renamed", PropertyInfo(Variant::OBJECT, "name", PROPERTY_HINT_RESOURCE_TYPE, "Animation"), PropertyInfo(Variant::OBJECT, "to_name", PROPERTY_HINT_RESOURCE_TYPE, "Animation")));
|
ADD_SIGNAL(MethodInfo("animation_renamed", PropertyInfo(Variant::STRING_NAME, "name"), PropertyInfo(Variant::STRING_NAME, "to_name")));
|
||||||
}
|
}
|
||||||
AnimationLibrary::AnimationLibrary() {
|
AnimationLibrary::AnimationLibrary() {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue