2017-09-12 22:42:36 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2017-11-15 18:37:54 +01:00
|
|
|
<class name="Curve" inherits="Resource" category="Core" version="3.0-alpha">
|
2017-09-12 22:42:36 +02:00
|
|
|
<brief_description>
|
|
|
|
</brief_description>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<demos>
|
|
|
|
</demos>
|
|
|
|
<methods>
|
|
|
|
<method name="add_point">
|
|
|
|
<return type="int">
|
|
|
|
</return>
|
2017-09-10 15:37:49 +02:00
|
|
|
<argument index="0" name="position" type="Vector2">
|
2017-09-12 22:42:36 +02:00
|
|
|
</argument>
|
|
|
|
<argument index="1" name="left_tangent" type="float" default="0">
|
|
|
|
</argument>
|
|
|
|
<argument index="2" name="right_tangent" type="float" default="0">
|
|
|
|
</argument>
|
|
|
|
<argument index="3" name="left_mode" type="int" enum="Curve.TangentMode" default="0">
|
|
|
|
</argument>
|
|
|
|
<argument index="4" name="right_mode" type="int" enum="Curve.TangentMode" default="0">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="bake">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="clean_dupes">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="clear_points">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_bake_resolution" qualifiers="const">
|
|
|
|
<return type="int">
|
|
|
|
</return>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_max_value" qualifiers="const">
|
|
|
|
<return type="float">
|
|
|
|
</return>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_min_value" qualifiers="const">
|
|
|
|
<return type="float">
|
|
|
|
</return>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_point_left_mode" qualifiers="const">
|
|
|
|
<return type="int" enum="Curve.TangentMode">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="index" type="int">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_point_left_tangent" qualifiers="const">
|
|
|
|
<return type="float">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="index" type="int">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
2017-09-10 15:37:49 +02:00
|
|
|
<method name="get_point_position" qualifiers="const">
|
2017-09-12 22:42:36 +02:00
|
|
|
<return type="Vector2">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="index" type="int">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_point_right_mode" qualifiers="const">
|
|
|
|
<return type="int" enum="Curve.TangentMode">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="index" type="int">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_point_right_tangent" qualifiers="const">
|
|
|
|
<return type="float">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="index" type="int">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="interpolate" qualifiers="const">
|
|
|
|
<return type="float">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="offset" type="float">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="interpolate_baked">
|
|
|
|
<return type="float">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="offset" type="float">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="remove_point">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="index" type="int">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_bake_resolution">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="resolution" type="int">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_max_value">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="max" type="float">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_min_value">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="min" type="float">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_point_left_mode">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="index" type="int">
|
|
|
|
</argument>
|
|
|
|
<argument index="1" name="mode" type="int" enum="Curve.TangentMode">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_point_left_tangent">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="index" type="int">
|
|
|
|
</argument>
|
|
|
|
<argument index="1" name="tangent" type="float">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_point_offset">
|
2017-10-11 23:54:43 +02:00
|
|
|
<return type="int">
|
2017-09-12 22:42:36 +02:00
|
|
|
</return>
|
|
|
|
<argument index="0" name="index" type="int">
|
|
|
|
</argument>
|
|
|
|
<argument index="1" name="offset" type="float">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_point_right_mode">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="index" type="int">
|
|
|
|
</argument>
|
|
|
|
<argument index="1" name="mode" type="int" enum="Curve.TangentMode">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_point_right_tangent">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="index" type="int">
|
|
|
|
</argument>
|
|
|
|
<argument index="1" name="tangent" type="float">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_point_value">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="index" type="int">
|
|
|
|
</argument>
|
|
|
|
<argument index="1" name="y" type="float">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
|
|
|
<members>
|
2017-09-13 08:49:40 +02:00
|
|
|
<member name="_data" type="Array" setter="_set_data" getter="_get_data">
|
2017-09-12 22:42:36 +02:00
|
|
|
</member>
|
2017-09-13 08:49:40 +02:00
|
|
|
<member name="bake_resolution" type="int" setter="set_bake_resolution" getter="get_bake_resolution">
|
2017-09-12 22:42:36 +02:00
|
|
|
</member>
|
2017-09-13 08:49:40 +02:00
|
|
|
<member name="max_value" type="float" setter="set_max_value" getter="get_max_value">
|
2017-09-12 22:42:36 +02:00
|
|
|
</member>
|
2017-09-13 08:49:40 +02:00
|
|
|
<member name="min_value" type="float" setter="set_min_value" getter="get_min_value">
|
2017-09-12 22:42:36 +02:00
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
<signals>
|
|
|
|
<signal name="range_changed">
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</signal>
|
|
|
|
</signals>
|
|
|
|
<constants>
|
2017-09-16 01:46:14 +02:00
|
|
|
<constant name="TANGENT_FREE" value="0">
|
|
|
|
</constant>
|
|
|
|
<constant name="TANGENT_LINEAR" value="1">
|
|
|
|
</constant>
|
|
|
|
<constant name="TANGENT_MODE_COUNT" value="2">
|
|
|
|
</constant>
|
2017-09-12 22:42:36 +02:00
|
|
|
</constants>
|
|
|
|
</class>
|