Просмотр исходного кода

Fix descriptions of set_cell and set_cellv in TileMap.xml

Swap the first lines of the descriptions for set_cell and set_cellv to correctly describe which accepts x and y as separate arguments and which accepts a Vector2.

Fix not relevant to master branch due to changes to TileMap.
snailrhymer 3 лет назад
Родитель
Сommit
73f4531c97
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      doc/classes/TileMap.xml

+ 2 - 2
doc/classes/TileMap.xml

@@ -133,7 +133,7 @@
 			<argument index="5" name="transpose" type="bool" default="false" />
 			<argument index="5" name="transpose" type="bool" default="false" />
 			<argument index="6" name="autotile_coord" type="Vector2" default="Vector2( 0, 0 )" />
 			<argument index="6" name="autotile_coord" type="Vector2" default="Vector2( 0, 0 )" />
 			<description>
 			<description>
-				Sets the tile index for the cell given by a Vector2.
+				Sets the tile index for the given cell.
 				An index of [code]-1[/code] clears the cell.
 				An index of [code]-1[/code] clears the cell.
 				Optionally, the tile can also be flipped, transposed, or given autotile coordinates. The autotile coordinate refers to the column and row of the subtile.
 				Optionally, the tile can also be flipped, transposed, or given autotile coordinates. The autotile coordinate refers to the column and row of the subtile.
 				[b]Note:[/b] Data such as navigation polygons and collision shapes are not immediately updated for performance reasons.
 				[b]Note:[/b] Data such as navigation polygons and collision shapes are not immediately updated for performance reasons.
@@ -155,7 +155,7 @@
 			<argument index="3" name="flip_y" type="bool" default="false" />
 			<argument index="3" name="flip_y" type="bool" default="false" />
 			<argument index="4" name="transpose" type="bool" default="false" />
 			<argument index="4" name="transpose" type="bool" default="false" />
 			<description>
 			<description>
-				Sets the tile index for the given cell.
+				Sets the tile index for the cell given by a Vector2.
 				An index of [code]-1[/code] clears the cell.
 				An index of [code]-1[/code] clears the cell.
 				Optionally, the tile can also be flipped or transposed.
 				Optionally, the tile can also be flipped or transposed.
 				[b]Note:[/b] Data such as navigation polygons and collision shapes are not immediately updated for performance reasons.
 				[b]Note:[/b] Data such as navigation polygons and collision shapes are not immediately updated for performance reasons.