From 17011f5d123879eb9fcd4ea25b92365f7d2061f7 Mon Sep 17 00:00:00 2001 From: Unknown Date: Mon, 2 Oct 2017 00:12:14 +0200 Subject: [PATCH] Added documenation for Line2D [ci skip] --- doc/classes/Line2D.xml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/doc/classes/Line2D.xml b/doc/classes/Line2D.xml index e6e615ccf15..3cca256a5dd 100644 --- a/doc/classes/Line2D.xml +++ b/doc/classes/Line2D.xml @@ -17,7 +17,7 @@ - Add a point at the x/y position in the supplied [Vector2] + Add a point at the [code]position[/code]. Appends the point at the end of the line. @@ -54,6 +54,7 @@ + Returns the Line2D's amount of points. @@ -62,6 +63,7 @@ + Returns point [code]i[code]'s position. @@ -106,7 +108,7 @@ - Remove the point at index 'i' from the line. + Remove the point at index [code]i[/code] from the line. @@ -157,6 +159,7 @@ + Overwites the position in point [code]i[/code] with the supplied [code]position[/code]. @@ -210,44 +213,63 @@ + Controls the style of the line's first point. Use [code]LINE_CAP_*[/code] constants. Default value: [code]LINE_CAP_NONE[/code]. + The line's color. Will not be used if a gradient is set. + Controls the style of the line's last point. Use [code]LINE_CAP_*[/code] constants. Default value: [code]LINE_CAP_NONE[/code]. + The gradient is drawn through the whole line from start to finish. The default color will not be used if a gradient is set. + The style for the points inbetween the start and the end. + The points that form the lines. The line is drawn between every point set in this array. + The smoothness of the rounded joints and caps. This is only used if a cap or joint is set as round. + The direction difference in radians between vector points. This value is only used if [code]joint mode[/code] is set to [code]LINE_JOINT_SHARP[/code]. + The texture used for the line's texture. Uses [code]texture_mode[/code] for drawing style. + The style to render the [code]texture[/code] on the line. Use [code]LINE_TEXTURE_*[/code] constants. Default value: [code]LINE_TEXTURE_NONE[/code]. + The line's width. + The line's joints will be pointy. If [code]sharp_limit[/code] is greater than the rotation of a joint, it becomes a bevel joint instead. + The line's joints will be bevelled/chamfered. + The line's joints will be rounded. + Don't have a line cap. + Draws the line cap as a box. + Draws the line cap as a circle. + Takes the left pixels of the texture and renders it over the whole line. + Tiles the texture over the line. The texture need to be imported with Repeat Enabled for it to work properly.