From 8bc4882dd33a4b162b96abc4f2fda72e78ba0119 Mon Sep 17 00:00:00 2001
From: Chris Bradfield
Date: Sat, 12 May 2018 17:58:45 -0700
Subject: [DOCS] Vector2/Vector3/TileMap wording fixes
---
doc/classes/TileMap.xml | 47 ++++++++++++++++++++++++++---------------------
1 file changed, 26 insertions(+), 21 deletions(-)
(limited to 'doc/classes/TileMap.xml')
diff --git a/doc/classes/TileMap.xml b/doc/classes/TileMap.xml
index ec67370c7..775fef4fb 100644
--- a/doc/classes/TileMap.xml
+++ b/doc/classes/TileMap.xml
@@ -16,14 +16,14 @@
- Clear all cells.
+ Clears all cells.
- Clear cells that does not exist in the tileset.
+ Clears cells that do not exist in the tileset.
@@ -34,7 +34,7 @@
- Return the tile index of the referenced cell.
+ Returns the tile index of the given cell.
@@ -43,7 +43,7 @@
- Return the tile index of the cell referenced by a Vector2.
+ Returns the tile index of the cell given by a Vector2.
@@ -52,6 +52,7 @@
+ Returns [code]true[/code] if the given collision layer bit is set.
@@ -60,13 +61,14 @@
+ Returns [code]true[/code] if the given collision mask bit is set.
- Return an array of all cells containing a tile from the tileset (i.e. a tile index different from -1).
+ Returns an array of all cells containing a tile from the tileset (i.e. a tile index different from [code]-1[/code]).
@@ -75,12 +77,14 @@
+ Returns an array of all cells with the given tile id.
+ Returns a rectangle enclosing the used (non-empty) tiles of the map.
@@ -91,7 +95,7 @@
- Return whether the referenced cell is transposed, i.e. the X and Y axes are swapped (mirroring with regard to the (1,1) vector).
+ Returns [code]true[/code] if the given cell is transposed, i.e. the x and y axes are swapped.
@@ -102,7 +106,7 @@
- Return whether the referenced cell is flipped over the X axis.
+ Returns [code]true[/code] if the given cell is flipped in the x axis.
@@ -113,7 +117,7 @@
- Return whether the referenced cell is flipped over the Y axis.
+ Returns [code]true[/code] if the given cell is flipped in the y axis.
@@ -124,8 +128,8 @@
- Return the absolute world position corresponding to the tilemap (grid-based) coordinates given as an argument.
- Optionally, the tilemap's potential half offset can be ignored.
+ Returns the global position corresponding to the given tilemap (grid-based) coordinates.
+ Optionally, the tilemap's half offset can be ignored.
@@ -146,9 +150,9 @@
- Set the tile index for the cell referenced by its grid-based X and Y coordinates.
- A tile index of -1 clears the cell.
- Optionally, the tile can also be flipped over the X and Y coordinates, transposed, or be given autotile coordinates.
+ Sets the tile index for the cell given by a Vector2.
+ An index of [code]-1[/code] clears the cell.
+ Optionally, the tile can also be flipped, transposed, or given autotile coordinates.
@@ -165,9 +169,9 @@
- Set the tile index for the cell referenced by a Vector2 of grid-based coordinates.
- A tile index of -1 clears the cell.
- Optionally, the tile can also be flipped over the X and Y axes or transposed.
+ Sets the tile index for the given cell.
+ An index of [code]-1[/code] clears the cell.
+ Optionally, the tile can also be flipped or transposed.
@@ -178,7 +182,7 @@
- Set any collision layer to be [code]true[/code] or [code]false[/code].
+ Sets the given collision layer bit.
@@ -189,6 +193,7 @@
+ Sets the given collision mask bit.
@@ -197,7 +202,7 @@
- Applies autotiling rules to the cell (and its adjacent cells) referenced by its grid-based X and Y coordinates.
+ Applies autotiling rules to the cell (and its adjacent cells) referenced by its grid-based x and y coordinates.
@@ -208,8 +213,8 @@
- Applies autotiling rules to the cells in the given region (specified by grid-based X and Y coordinates).
- Calling with invalid (or missing) parameters applies autotiling rules for the entire TileMap.
+ Applies autotiling rules to the cells in the given region (specified by grid-based x and y coordinates).
+ Calling with invalid (or missing) parameters applies autotiling rules for the entire tilemap.
@@ -218,7 +223,7 @@
- Return the tilemap (grid-based) coordinates corresponding to the absolute world position given as an argument.
+ Returns the tilemap (grid-based) coordinatescorresponding to the given global position.
--
cgit v1.2.3-70-g09d2