From 5bc4b49f0b4b9434477e10ecd21a4ef5c5ae8b2b Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Fri, 2 Aug 2024 16:23:20 +0200 Subject: [PATCH] Document converting a TileMap node to TileMapLayer using the editor --- doc/classes/TileMap.xml | 2 +- scene/2d/tile_map.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/classes/TileMap.xml b/doc/classes/TileMap.xml index 3f70810a7f6..d3197efc6b1 100644 --- a/doc/classes/TileMap.xml +++ b/doc/classes/TileMap.xml @@ -1,5 +1,5 @@ - + Node for 2D tile-based maps. diff --git a/scene/2d/tile_map.cpp b/scene/2d/tile_map.cpp index 48ade1e5cc5..c12b95314eb 100644 --- a/scene/2d/tile_map.cpp +++ b/scene/2d/tile_map.cpp @@ -817,6 +817,8 @@ TypedArray TileMap::get_surrounding_cells(const Vector2i &p_coords) { PackedStringArray TileMap::get_configuration_warnings() const { PackedStringArray warnings = Node::get_configuration_warnings(); + warnings.push_back(RTR("The TileMap node is deprecated as it is superseded by the use of multiple TileMapLayer nodes.\nTo convert a TileMap to a set of TileMapLayer nodes, open the TileMap bottom panel with this node selected, click the toolbox icon in the top-right corner and choose \"Extract TileMap layers as individual TileMapLayer nodes\".")); + // Retrieve the set of Z index values with a Y-sorted layer. RBSet y_sorted_z_index; for (const TileMapLayer *layer : layers) {