Skip to content

Commit

Permalink
Add AnimationTrackFilter and its Editor plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daylily-Zeleen committed Oct 17, 2023
1 parent 30f2a6d commit bc51e2b
Show file tree
Hide file tree
Showing 16 changed files with 1,076 additions and 290 deletions.
10 changes: 5 additions & 5 deletions doc/classes/AnimationNode.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@
<return type="Variant" />
<param index="0" name="name" type="StringName" />
<description>
Gets the value of a parameter. Parameters are custom local memory used for your animation nodes, given a resource can be reused in multiple trees.
Gets the value of a parameter. Parameters are custom local memory used for your nodes, given a resource can be reused in multiple trees.
</description>
</method>
<method name="is_path_filtered" qualifiers="const">
<method name="is_path_filtered" qualifiers="const" is_deprecated="true">
<return type="bool" />
<param index="0" name="path" type="NodePath" />
<description>
Expand All @@ -159,7 +159,7 @@
Removes an input, call this only when inactive.
</description>
</method>
<method name="set_filter_path">
<method name="set_filter_path" is_deprecated="true">
<return type="void" />
<param index="0" name="path" type="NodePath" />
<param index="1" name="enable" type="bool" />
Expand All @@ -185,8 +185,8 @@
</method>
</methods>
<members>
<member name="filter_enabled" type="bool" setter="set_filter_enabled" getter="is_filter_enabled">
If [code]true[/code], filtering is enabled.
<member name="filter_enabled" type="bool" setter="set_filter_enabled" getter="is_filter_enabled" is_deprecated="true">
Deprecated, sets this property will do noting, gets will return [code]false[/code].
</member>
</members>
<signals>
Expand Down
51 changes: 51 additions & 0 deletions doc/classes/AnimationTrackFilter.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="AnimationTrackFilter" inherits="Resource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
<brief_description>
A filter to describe [AnimationNode]'s filters.
</brief_description>
<description>
A filter to describe [AnimationNode]'s filters.
</description>
<tutorials>
</tutorials>
<methods>
<method name="clear_tracks">
<return type="void" />
<description>
Clear all tracks.
</description>
</method>
<method name="get_track_amount" qualifiers="const">
<return type="float" />
<param index="0" name="track_path" type="NodePath" />
<description>
</description>
</method>
<method name="has_trck" qualifiers="const">
<return type="bool" />
<param index="0" name="track_path" type="NodePath" />
<description>
Return [code]true[/code] if has [param track_path].
</description>
</method>
<method name="remove_track">
<return type="void" />
<param index="0" name="track_path" type="NodePath" />
<description>
Remove track, will do noting if this filter have not [param track_path].
</description>
</method>
<method name="set_track">
<return type="void" />
<param index="0" name="track_path" type="NodePath" />
<param index="1" name="amount" type="float" default="1.0" />
<description>
</description>
</method>
</methods>
<members>
<member name="tracks" type="Dictionary" setter="set_tracks" getter="get_tracks" default="{}">
A array of animation tracks' Nodepath which should be filtered.
</member>
</members>
</class>
Loading

0 comments on commit bc51e2b

Please sign in to comment.