From d86ad2dc103eb10d6d47ae5bf4e5d091fbaee870 Mon Sep 17 00:00:00 2001 From: Daniel Cronqvist Date: Sat, 26 Apr 2025 21:34:24 +0200 Subject: [PATCH] Add missing TextObject to test map --- .../map-with-many-layers.cs | 21 +++++++++++++++- .../map-with-many-layers.tmj | 25 ++++++++++++++++++- .../map-with-many-layers.tmx | 5 +++- 3 files changed, 48 insertions(+), 3 deletions(-) diff --git a/src/DotTiled.Tests/TestData/Maps/map-with-many-layers/map-with-many-layers.cs b/src/DotTiled.Tests/TestData/Maps/map-with-many-layers/map-with-many-layers.cs index 593eec7..cc815a5 100644 --- a/src/DotTiled.Tests/TestData/Maps/map-with-many-layers/map-with-many-layers.cs +++ b/src/DotTiled.Tests/TestData/Maps/map-with-many-layers/map-with-many-layers.cs @@ -21,7 +21,7 @@ public partial class TestData Version = "1.10", TiledVersion = "1.11.2", NextLayerID = 8, - NextObjectID = 7, + NextObjectID = 8, Tilesets = [ new Tileset { @@ -104,6 +104,25 @@ public partial class TestData Y = 110.333f, Width = 64, Height = 146 + }, + new TextObject + { + ID = 7, + Name = "Text1", + Rotation = 0, + Text = "Hello World!", + Visible = true, + Width = 116.869f, + Height = 19f, + X = 52.5197f, + Y = 4.0107f, + PixelSize = 18, + Wrap = true, + Bold = true, + Italic = true, + Underline = true, + Strikeout = true, + Kerning = false } ] }, diff --git a/src/DotTiled.Tests/TestData/Maps/map-with-many-layers/map-with-many-layers.tmj b/src/DotTiled.Tests/TestData/Maps/map-with-many-layers/map-with-many-layers.tmj index 427f404..acfe765 100644 --- a/src/DotTiled.Tests/TestData/Maps/map-with-many-layers/map-with-many-layers.tmj +++ b/src/DotTiled.Tests/TestData/Maps/map-with-many-layers/map-with-many-layers.tmj @@ -62,6 +62,29 @@ "width":64, "x":-35, "y":110.333 + }, + + { + "height":19, + "id":7, + "name":"Text1", + "rotation":0, + "text": + { + "bold":true, + "italic":true, + "kerning":false, + "pixelsize":18, + "strikeout":true, + "text":"Hello World!", + "underline":true, + "wrap":true + }, + "type":"", + "visible":true, + "width":116.869277732794, + "x":52.5197, + "y":4.0107 }], "opacity":1, "type":"objectgroup", @@ -148,7 +171,7 @@ "y":0 }], "nextlayerid":8, - "nextobjectid":7, + "nextobjectid":8, "orientation":"orthogonal", "renderorder":"right-down", "tiledversion":"1.11.2", diff --git a/src/DotTiled.Tests/TestData/Maps/map-with-many-layers/map-with-many-layers.tmx b/src/DotTiled.Tests/TestData/Maps/map-with-many-layers/map-with-many-layers.tmx index 512a7a4..576a7f7 100644 --- a/src/DotTiled.Tests/TestData/Maps/map-with-many-layers/map-with-many-layers.tmx +++ b/src/DotTiled.Tests/TestData/Maps/map-with-many-layers/map-with-many-layers.tmx @@ -1,5 +1,5 @@ - + @@ -12,6 +12,9 @@ + + Hello World! +