summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-04-30 11:02:47 +0200
committerGitHub <noreply@github.com>2019-04-30 11:02:47 +0200
commit6e1b8b07b93e30ac09175cfcc7001d3aba5685cf (patch)
treec475c128cfd32488cd2c64560fe8bb03b9d59ef1 /doc/classes
parentac0369e9ff15c575a5ba242203e51b5ee4e7254f (diff)
parent714953b3ac697f0925c740581880cb71e2f94777 (diff)
Merge pull request #27805 from Kanabenki/line2d-add-point-idx
Add optional position argument for add_point in Line2D
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/Line2D.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/classes/Line2D.xml b/doc/classes/Line2D.xml
index 623b23807f..c55760767a 100644
--- a/doc/classes/Line2D.xml
+++ b/doc/classes/Line2D.xml
@@ -14,8 +14,11 @@
</return>
<argument index="0" name="position" type="Vector2">
</argument>
+ <argument index="1" name="at_position" type="int" default="-1">
+ </argument>
<description>
Add a point at the [code]position[/code]. Appends the point at the end of the line.
+ If [code]at_position[/code] is given, the point is inserted before the point number [code]at_position[/code], moving that point (and every point after) after the inserted point. If [code]at_position[/code] is not given, or is an illegal value ([code]at_position &lt; 0[/code] or [code]at_position &gt;= [method get_point_count][/code]), the point will be appended at the end of the point list.
</description>
</method>
<method name="clear_points">