Fixup to typo and indentation in 81c86e8
This commit is contained in:
parent
e8e3a780be
commit
f30745bd85
|
@ -1,10 +1,10 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<class name="AnimationNode" inherits="Resource" category="Core" version="3.1">
|
<class name="AnimationNode" inherits="Resource" category="Core" version="3.1">
|
||||||
<brief_description>
|
<brief_description>
|
||||||
Base resource for [AnimationTree] nodes.
|
Base resource for [AnimationTree] nodes.
|
||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
Base resource for [AnimationTree] nodes. In general it's not used directly but you can create custom ones with custom blending formulas.
|
Base resource for [AnimationTree] nodes. In general it's not used directly but you can create custom ones with custom blending formulas.
|
||||||
Inherit this when creating nodes mainly for use in [AnimationNodeBlendTree], otherwise [AnimationRootNode] should be used instead.
|
Inherit this when creating nodes mainly for use in [AnimationNodeBlendTree], otherwise [AnimationRootNode] should be used instead.
|
||||||
</description>
|
</description>
|
||||||
<tutorials>
|
<tutorials>
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
<argument index="0" name="name" type="String">
|
<argument index="0" name="name" type="String">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Add an input to the node. This is only useful for nodes created for use in an [AnimationNodeBlendTree]
|
Add an input to the node. This is only useful for nodes created for use in an [AnimationNodeBlendTree]
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="blend_animation">
|
<method name="blend_animation">
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
<argument index="4" name="blend" type="float">
|
<argument index="4" name="blend" type="float">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Blend an animation by "blend" amount (name must be valid in the linked [AnimationPlayer]). A time and delta mas be passed, as well as whether seek happened.
|
Blend an animation by "blend" amount (name must be valid in the linked [AnimationPlayer]). A time and delta mas be passed, as well as whether seek happened.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="blend_input">
|
<method name="blend_input">
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
<argument index="5" name="optimize" type="bool" default="true">
|
<argument index="5" name="optimize" type="bool" default="true">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Blend an input. This is only useful for nodes created for an AnimationBlendTree. Time is a delta, unless "seek" is true, in which case it is absolute. A filter mode may be optionally passed.
|
Blend an input. This is only useful for nodes created for an AnimationBlendTree. Time is a delta, unless "seek" is true, in which case it is absolute. A filter mode may be optionally passed.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="blend_node">
|
<method name="blend_node">
|
||||||
|
@ -75,14 +75,14 @@
|
||||||
<argument index="6" name="optimize" type="bool" default="true">
|
<argument index="6" name="optimize" type="bool" default="true">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Blend another animaiton node (in case this node contains children animation nodes). This function is only useful if you inherit from [AnimationRootNode] instead, else editors will not display your node for addition.
|
Blend another animaiton node (in case this node contains children animation nodes). This function is only useful if you inherit from [AnimationRootNode] instead, else editors will not display your node for addition.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_caption" qualifiers="virtual">
|
<method name="get_caption" qualifiers="virtual">
|
||||||
<return type="String">
|
<return type="String">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Get the text caption for this node (used by some editors)
|
Get the text caption for this node (used by some editors)
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_child_by_name" qualifiers="virtual">
|
<method name="get_child_by_name" qualifiers="virtual">
|
||||||
|
@ -91,21 +91,21 @@
|
||||||
<argument index="0" name="name" type="String">
|
<argument index="0" name="name" type="String">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Get the a child node by index (used by editors inheriting from [AnimationRootNode]).
|
Get the a child node by index (used by editors inheriting from [AnimationRootNode]).
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_child_nodes" qualifiers="virtual">
|
<method name="get_child_nodes" qualifiers="virtual">
|
||||||
<return type="Dictionary">
|
<return type="Dictionary">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Get all children nodes, in order as a name:node dictionary. Only useful when inheriting [AnimationRootNode].
|
Get all children nodes, in order as a name:node dictionary. Only useful when inheriting [AnimationRootNode].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_input_count" qualifiers="const">
|
<method name="get_input_count" qualifiers="const">
|
||||||
<return type="int">
|
<return type="int">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Amount of inputs in this node, only useful for nodes that go into [AnimationBlendTree].
|
Amount of inputs in this node, only useful for nodes that go into [AnimationBlendTree].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_input_name">
|
<method name="get_input_name">
|
||||||
|
@ -114,7 +114,7 @@
|
||||||
<argument index="0" name="input" type="int">
|
<argument index="0" name="input" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Get the name of an input by index.
|
Get the name of an input by index.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_parameter" qualifiers="const">
|
<method name="get_parameter" qualifiers="const">
|
||||||
|
@ -123,7 +123,7 @@
|
||||||
<argument index="0" name="name" type="String">
|
<argument index="0" name="name" type="String">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Get the value of a parameter. Parameters are custom local memory used for your nodes, given a resource can be reused in multiple trees.
|
Get the value of a parameter. Parameters are custom local memory used for your nodes, given a resource can be reused in multiple trees.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_parameter_default_value" qualifiers="virtual">
|
<method name="get_parameter_default_value" qualifiers="virtual">
|
||||||
|
@ -132,14 +132,14 @@
|
||||||
<argument index="0" name="name" type="String">
|
<argument index="0" name="name" type="String">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Get the default value of a parameter. Parameters are custom local memory used for your nodes, given a resource can be reused in multiple trees.
|
Get the default value of a parameter. Parameters are custom local memory used for your nodes, given a resource can be reused in multiple trees.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_parameter_list" qualifiers="virtual">
|
<method name="get_parameter_list" qualifiers="virtual">
|
||||||
<return type="Array">
|
<return type="Array">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Get the property information for parameter. Parameters are custom local memory used for your nodes, given a resource can be reused in multiple trees.
|
Get the property information for parameter. Parameters are custom local memory used for your nodes, given a resource can be reused in multiple trees.
|
||||||
Format is similar to [Object.get_property_list]
|
Format is similar to [Object.get_property_list]
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
@ -147,7 +147,7 @@
|
||||||
<return type="String">
|
<return type="String">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Return true whether you want the blend tree editor to display filter editing on this node.
|
Return true whether you want the blend tree editor to display filter editing on this node.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="is_path_filtered" qualifiers="const">
|
<method name="is_path_filtered" qualifiers="const">
|
||||||
|
@ -156,7 +156,7 @@
|
||||||
<argument index="0" name="path" type="NodePath">
|
<argument index="0" name="path" type="NodePath">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Return true wether a given path is filtered.
|
Return true wether a given path is filtered.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="process" qualifiers="virtual">
|
<method name="process" qualifiers="virtual">
|
||||||
|
@ -167,7 +167,7 @@
|
||||||
<argument index="1" name="seek" type="bool">
|
<argument index="1" name="seek" type="bool">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Called when a custom node is processed. The argument "time" is relative, unless "seek" is true (in which case it is absolute).
|
Called when a custom node is processed. The argument "time" is relative, unless "seek" is true (in which case it is absolute).
|
||||||
Here, call the [method blend_input], [method blend_node] or [method blend_animation] functions.
|
Here, call the [method blend_input], [method blend_node] or [method blend_animation] functions.
|
||||||
You can also use [method get_parameter] and [method set_parameter] to modify local memory.
|
You can also use [method get_parameter] and [method set_parameter] to modify local memory.
|
||||||
This function returns the time left for the current animation to finish (if unsure, just pass the value from the main blend being called).
|
This function returns the time left for the current animation to finish (if unsure, just pass the value from the main blend being called).
|
||||||
|
@ -179,7 +179,7 @@
|
||||||
<argument index="0" name="index" type="int">
|
<argument index="0" name="index" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Remove an input, call this only when inactive.
|
Remove an input, call this only when inactive.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_filter_path">
|
<method name="set_filter_path">
|
||||||
|
@ -190,7 +190,7 @@
|
||||||
<argument index="1" name="enable" type="bool">
|
<argument index="1" name="enable" type="bool">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Add/Remove a path for the filter.
|
Add/Remove a path for the filter.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_parameter">
|
<method name="set_parameter">
|
||||||
|
@ -201,19 +201,19 @@
|
||||||
<argument index="1" name="value" type="Variant">
|
<argument index="1" name="value" type="Variant">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Set a custom parameter. These are used as local storage, because resources can be reused across the tree or scenes.
|
Set a custom parameter. These are used as local storage, because resources can be reused across the tree or scenes.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
</methods>
|
</methods>
|
||||||
<members>
|
<members>
|
||||||
<member name="filter_enabled" type="bool" setter="set_filter_enabled" getter="is_filter_enabled">
|
<member name="filter_enabled" type="bool" setter="set_filter_enabled" getter="is_filter_enabled">
|
||||||
Return whether filtering is enabled.
|
Return whether filtering is enabled.
|
||||||
</member>
|
</member>
|
||||||
</members>
|
</members>
|
||||||
<signals>
|
<signals>
|
||||||
<signal name="removed_from_graph">
|
<signal name="removed_from_graph">
|
||||||
<description>
|
<description>
|
||||||
Called when the node was removed from the graph.
|
Called when the node was removed from the graph.
|
||||||
</description>
|
</description>
|
||||||
</signal>
|
</signal>
|
||||||
<signal name="tree_changed">
|
<signal name="tree_changed">
|
||||||
|
@ -223,16 +223,16 @@
|
||||||
</signals>
|
</signals>
|
||||||
<constants>
|
<constants>
|
||||||
<constant name="FILTER_IGNORE" value="0" enum="FilterAction">
|
<constant name="FILTER_IGNORE" value="0" enum="FilterAction">
|
||||||
Do not use filtering.
|
Do not use filtering.
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="FILTER_PASS" value="1" enum="FilterAction">
|
<constant name="FILTER_PASS" value="1" enum="FilterAction">
|
||||||
Paths matching the filter will be allowed to pass.
|
Paths matching the filter will be allowed to pass.
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="FILTER_STOP" value="2" enum="FilterAction">
|
<constant name="FILTER_STOP" value="2" enum="FilterAction">
|
||||||
Paths matching the filter will be discarded.
|
Paths matching the filter will be discarded.
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="FILTER_BLEND" value="3" enum="FilterAction">
|
<constant name="FILTER_BLEND" value="3" enum="FilterAction">
|
||||||
Paths matching the filter will be blended (by the blend value).
|
Paths matching the filter will be blended (by the blend value).
|
||||||
</constant>
|
</constant>
|
||||||
</constants>
|
</constants>
|
||||||
</class>
|
</class>
|
||||||
|
|
|
@ -397,7 +397,7 @@ void AnimationNode::_validate_property(PropertyInfo &property) const {
|
||||||
|
|
||||||
Ref<AnimationNode> AnimationNode::get_child_by_name(const StringName &p_name) {
|
Ref<AnimationNode> AnimationNode::get_child_by_name(const StringName &p_name) {
|
||||||
if (get_script_instance()) {
|
if (get_script_instance()) {
|
||||||
return get_script_instance()->call("get_child_by_nane");
|
return get_script_instance()->call("get_child_by_name");
|
||||||
}
|
}
|
||||||
return Ref<AnimationNode>();
|
return Ref<AnimationNode>();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue