Documented YSort (#4515)

Documented YSort
(cherry picked from commit 957c265f11)
This commit is contained in:
CowThing 2016-05-01 17:55:24 -04:00 committed by Rémi Verschelde
parent 40681d90e5
commit 78dc8e79c4
1 changed files with 4 additions and 0 deletions

View File

@ -42472,20 +42472,24 @@ This method controls whether the position between two cached points is interpola
</class> </class>
<class name="YSort" inherits="Node2D" category="Core"> <class name="YSort" inherits="Node2D" category="Core">
<brief_description> <brief_description>
Sort all child nodes based on their Y positions.
</brief_description> </brief_description>
<description> <description>
Sort all child nodes based on their Y positions. The child node must inherit from [CanvasItem] for it to be sorted. Nodes that have a higher Y position will be drawn later, so they will appear on top of nodes that have a lower Y position.
</description> </description>
<methods> <methods>
<method name="set_sort_enabled"> <method name="set_sort_enabled">
<argument index="0" name="enabled" type="bool"> <argument index="0" name="enabled" type="bool">
</argument> </argument>
<description> <description>
Set whether the children nodes are sorted or not. (default true)
</description> </description>
</method> </method>
<method name="is_sort_enabled" qualifiers="const"> <method name="is_sort_enabled" qualifiers="const">
<return type="bool"> <return type="bool">
</return> </return>
<description> <description>
Returns true if the children nodes are being sorted.
</description> </description>
</method> </method>
</methods> </methods>