Skip to content

Commit 8fdc51b

Browse files
committed
Fix fix to deprecated TileMaps inside related files
1 parent 31fa74b commit 8fdc51b

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

classes/class_tiledata.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Settings for a single tile in a :ref:`TileSet<class_TileSet>`.
1919
Description
2020
-----------
2121

22-
**TileData** object represents a single tile in a :ref:`TileSet<class_TileSet>`. It is usually edited using the tileset editor, but it can be modified at runtime using :ref:`TileMap._tile_data_runtime_update<class_TileMap_private_method__tile_data_runtime_update>`.
22+
**TileData** object represents a single tile in a :ref:`TileSet<class_TileSet>`. It is usually edited using the tileset editor, but it can be modified at runtime using :ref:`TileMapLayer._tile_data_runtime_update<class_TileMap_private_method__tile_data_runtime_update>`.
2323

2424
.. rst-class:: classref-reftable-group
2525

@@ -334,7 +334,7 @@ Vertical point of the tile used for determining y-sorted order.
334334
- |void| **set_z_index**\ (\ value\: :ref:`int<class_int>`\ )
335335
- :ref:`int<class_int>` **get_z_index**\ (\ )
336336

337-
Ordering index of this tile, relative to :ref:`TileMap<class_TileMap>`.
337+
Ordering index of this tile, relative to :ref:`TileMapLayer<class_TileMapLayer>`.
338338

339339
.. rst-class:: classref-section-separator
340340

classes/class_tileset.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ TileSet
1212

1313
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
1414

15-
Tile library for tilemaps.
15+
Tile library for tilemap layers.
1616

1717
.. rst-class:: classref-introduction-group
1818

@@ -269,7 +269,7 @@ Rectangular tile shape.
269269

270270
Diamond tile shape (for isometric look).
271271

272-
\ **Note:** Isometric **TileSet** works best if :ref:`TileMap<class_TileMap>` and all its layers have Y-sort enabled.
272+
\ **Note:** Isometric **TileSet** works best if all the :ref:`TileMapLayers<class_TileMapLayer>` have Y-sort enabled.
273273

274274
.. _class_TileSet_constant_TILE_SHAPE_HALF_OFFSET_SQUARE:
275275

@@ -563,7 +563,7 @@ Property Descriptions
563563
- |void| **set_tile_layout**\ (\ value\: :ref:`TileLayout<enum_TileSet_TileLayout>`\ )
564564
- :ref:`TileLayout<enum_TileSet_TileLayout>` **get_tile_layout**\ (\ )
565565

566-
For all half-offset shapes (Isometric, Hexagonal and Half-Offset square), changes the way tiles are indexed in the TileMap grid.
566+
For all half-offset shapes (Isometric, Hexagonal and Half-Offset square), changes the way tiles are indexed in the TileMapLayer grid.
567567

568568
.. rst-class:: classref-item-separator
569569

@@ -1416,9 +1416,9 @@ Removes the terrain set at index ``terrain_set``. Also updates the atlas tiles a
14161416

14171417
Create an alternative-level proxy for the given identifiers. A proxy will map set of tile identifiers to another set of identifiers.
14181418

1419-
This can be used to replace a tile in all TileMaps using this TileSet, as TileMap nodes will find and use the proxy's target tile when one is available.
1419+
This can be used to replace a tile in all TileMaps using this TileSet, as TileMapLayer nodes will find and use the proxy's target tile when one is available.
14201420

1421-
Proxied tiles can be automatically replaced in TileMap nodes using the editor.
1421+
Proxied tiles can be automatically replaced in TileMapLayer nodes using the editor.
14221422

14231423
.. rst-class:: classref-item-separator
14241424

@@ -1432,9 +1432,9 @@ Proxied tiles can be automatically replaced in TileMap nodes using the editor.
14321432

14331433
Creates a coordinates-level proxy for the given identifiers. A proxy will map set of tile identifiers to another set of identifiers. The alternative tile ID is kept the same when using coordinates-level proxies.
14341434

1435-
This can be used to replace a tile in all TileMaps using this TileSet, as TileMap nodes will find and use the proxy's target tile when one is available.
1435+
This can be used to replace a tile in all TileMaps using this TileSet, as TileMapLayer nodes will find and use the proxy's target tile when one is available.
14361436

1437-
Proxied tiles can be automatically replaced in TileMap nodes using the editor.
1437+
Proxied tiles can be automatically replaced in TileMapLayer nodes using the editor.
14381438

14391439
.. rst-class:: classref-item-separator
14401440

@@ -1580,9 +1580,9 @@ Changes a source's ID.
15801580

15811581
Creates a source-level proxy for the given source ID. A proxy will map set of tile identifiers to another set of identifiers. Both the atlas coordinates ID and the alternative tile ID are kept the same when using source-level proxies.
15821582

1583-
This can be used to replace a source in all TileMaps using this TileSet, as TileMap nodes will find and use the proxy's target source when one is available.
1583+
This can be used to replace a source in all TileMaps using this TileSet, as TileMapLayer nodes will find and use the proxy's target source when one is available.
15841584

1585-
Proxied tiles can be automatically replaced in TileMap nodes using the editor.
1585+
Proxied tiles can be automatically replaced in TileMapLayer nodes using the editor.
15861586

15871587
.. rst-class:: classref-item-separator
15881588

classes/class_tilesetatlassource.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,14 +175,14 @@ Constants
175175

176176
**TRANSFORM_FLIP_H** = ``4096`` :ref:`🔗<class_TileSetAtlasSource_constant_TRANSFORM_FLIP_H>`
177177

178-
Represents cell's horizontal flip flag. Should be used directly with :ref:`TileMap<class_TileMap>` to flip placed tiles by altering their alternative IDs.
178+
Represents cell's horizontal flip flag. Should be used directly with :ref:`TileMapLayer<class_TileMap>` to flip placed tiles by altering their alternative IDs.
179179

180180
::
181181

182-
var alternate_id = $TileMap.get_cell_alternative_tile(0, Vector2i(2, 2))
182+
var alternate_id = $TileMapLayer.get_cell_alternative_tile(Vector2i(2, 2))
183183
if not alternate_id & TileSetAtlasSource.TRANSFORM_FLIP_H:
184184
# If tile is not already flipped, flip it.
185-
$TileMap.set_cell(0, Vector2i(2, 2), source_id, atlas_coords, alternate_id | TileSetAtlasSource.TRANSFORM_FLIP_H)
185+
$TileMapLayer.set_cell(0, Vector2i(2, 2), source_id, atlas_coords, alternate_id | TileSetAtlasSource.TRANSFORM_FLIP_H)
186186

187187
\ **Note:** These transformations can be combined to do the equivalent of 0, 90, 180, and 270 degree rotations, as shown below:
188188

0 commit comments

Comments
 (0)