Rename pos -> index on Node

This commit is contained in:
Miguel Gonzalez Sanchez
2022-10-14 19:21:41 +01:00
parent 39534a7aec
commit a97a00bf02
3 changed files with 47 additions and 47 deletions

View File

@@ -529,9 +529,9 @@
<method name="move_child">
<return type="void" />
<param index="0" name="child_node" type="Node" />
<param index="1" name="to_position" type="int" />
<param index="1" name="to_index" type="int" />
<description>
Moves a child node to a different position (order) among the other children. Since calls, signals, etc are performed by tree order, changing the order of children nodes may be useful. If [param to_position] is negative, the index will be counted from the end.
Moves a child node to a different index (order) among the other children. Since calls, signals, etc. are performed by tree order, changing the order of children nodes may be useful. If [param to_index] is negative, the index will be counted from the end.
[b]Note:[/b] Internal children can only be moved within their expected "internal range" (see [code]internal[/code] parameter in [method add_child]).
</description>
</method>