Added setup system. Changed reader and writer for texture atlas and nine patch to have image and serialized data be in same file. Some refactors occurred as well.

This commit is contained in:
2019-01-21 19:56:51 -06:00
parent fbf6c5d1aa
commit ea6b3cf9e3
18 changed files with 145 additions and 111 deletions

View File

@@ -39,7 +39,7 @@ namespace RecrownedAthenaeum.Data
/// <summary>
/// The location of the patch is designated by this rectangle.
/// </summary>
public Rectangle location;
public Rectangle bounds;
/// <summary>
/// The ninepatch information.
/// </summary>
@@ -52,8 +52,8 @@ namespace RecrownedAthenaeum.Data
/// <param name="y">Y coordinate of the position in the patch.</param>
public void SetPosition(int x, int y)
{
location.X = x;
location.Y = y;
bounds.X = x;
bounds.Y = y;
}
/// <summary>
@@ -63,8 +63,8 @@ namespace RecrownedAthenaeum.Data
/// <param name="height">Height of the region.</param>
public void SetSize(int width, int height)
{
location.Width = width;
location.Height = height;
bounds.Width = width;
bounds.Height = height;
}
/// <summary>