From 8e34f82bd807f8753bf6dae78312b1fcd1d5417d Mon Sep 17 00:00:00 2001 From: nobledemon Date: Tue, 2 Apr 2024 22:35:16 +0100 Subject: [PATCH 1/3] Rectangles in FNA don't support initialization with two vectors. TextureAtlas.cs changed to use the Rectangle constructor with four parameters. --- source/MonoGame.Aseprite/TextureAtlas.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/MonoGame.Aseprite/TextureAtlas.cs b/source/MonoGame.Aseprite/TextureAtlas.cs index 7e2ac7b..055aff8 100644 --- a/source/MonoGame.Aseprite/TextureAtlas.cs +++ b/source/MonoGame.Aseprite/TextureAtlas.cs @@ -128,7 +128,7 @@ public TextureRegion CreateRegion(string name, int x, int y, int width, int heig /// /// The created by this method. public TextureRegion CreateRegion(string name, Point location, Point size) => - CreateRegion(name, new Rectangle(location, size)); + CreateRegion(name, new Rectangle(location.X, location.Y, size.X, size.Y)); /// /// Creates a new and adds it to this . From abbb817bff46635d269725add272e921e5ccf095 Mon Sep 17 00:00:00 2001 From: nobledemon Date: Wed, 3 Apr 2024 18:15:10 +0100 Subject: [PATCH 2/3] added MonoGame.Aseprite.FNA.csproj, which presumably would be the least surprising way of adding Monogame.Aseprite to a FNA project --- .../MonoGame.Aseprite.FNA.csproj | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 source/MonoGame.Aseprite/MonoGame.Aseprite.FNA.csproj diff --git a/source/MonoGame.Aseprite/MonoGame.Aseprite.FNA.csproj b/source/MonoGame.Aseprite/MonoGame.Aseprite.FNA.csproj new file mode 100644 index 0000000..df7c10e --- /dev/null +++ b/source/MonoGame.Aseprite/MonoGame.Aseprite.FNA.csproj @@ -0,0 +1,31 @@ + + + + + net8.0 + true + + + + + MonoGame.Aseprite.FNA + + MonoGame.Aseprite is a cross-platform C# library that adds support to MonoGame projects for + Aseprite (.asepirte/.ase) files. + + + + + + + + + + + + + + + + + \ No newline at end of file From 18c4f66a240d7998fdb149f0f1b8c3ec8820411a Mon Sep 17 00:00:00 2001 From: nobledemon Date: Wed, 3 Apr 2024 20:21:32 +0100 Subject: [PATCH 3/3] removed from FNA project file item groups and property groups related to NuGet package stuff --- .../MonoGame.Aseprite.FNA.csproj | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/source/MonoGame.Aseprite/MonoGame.Aseprite.FNA.csproj b/source/MonoGame.Aseprite/MonoGame.Aseprite.FNA.csproj index df7c10e..2b12e49 100644 --- a/source/MonoGame.Aseprite/MonoGame.Aseprite.FNA.csproj +++ b/source/MonoGame.Aseprite/MonoGame.Aseprite.FNA.csproj @@ -6,22 +6,6 @@ true - - - MonoGame.Aseprite.FNA - - MonoGame.Aseprite is a cross-platform C# library that adds support to MonoGame projects for - Aseprite (.asepirte/.ase) files. - - - - - - - - - -