From 9ba854818a7ef3e596312247a136ceee0da80524 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Mon, 21 Jan 2019 23:38:50 -0600 Subject: [PATCH] improved debug. --- RecrownedAthenaeum/RecrownedAthenaeum.csproj | 6 ++---- RecrownedAthenaeum/SpecialTypes/NinePatch.cs | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/RecrownedAthenaeum/RecrownedAthenaeum.csproj b/RecrownedAthenaeum/RecrownedAthenaeum.csproj index 46c16e0..e74cd03 100644 --- a/RecrownedAthenaeum/RecrownedAthenaeum.csproj +++ b/RecrownedAthenaeum/RecrownedAthenaeum.csproj @@ -54,11 +54,9 @@ - - - - + + diff --git a/RecrownedAthenaeum/SpecialTypes/NinePatch.cs b/RecrownedAthenaeum/SpecialTypes/NinePatch.cs index 48ad052..23793de 100644 --- a/RecrownedAthenaeum/SpecialTypes/NinePatch.cs +++ b/RecrownedAthenaeum/SpecialTypes/NinePatch.cs @@ -33,8 +33,8 @@ namespace RecrownedAthenaeum.SpecialTypes { this.texture = texture; if (textureBounds.HasValue) textureRegion = textureBounds.Value; else textureRegion = texture.Bounds; - if (left + right >= textureRegion.Width) throw new ArgumentOutOfRangeException("a and b cannot be greater than or equal to the width of region."); - if (bottom + top >= textureRegion.Height) throw new ArgumentOutOfRangeException("c and d cannot be greater or equal to the height of the texture."); + if (left + right >= textureRegion.Width) throw new ArgumentOutOfRangeException("left and right values cannot be greater than or equal to the width of region. Left value is " + left + " and right value is " + right + ". Bounds of texture are: " + textureRegion); + if (bottom + top >= textureRegion.Height) throw new ArgumentOutOfRangeException("Bottom and top values cannot be greater than or equal to the width of region. Bottom value is " + bottom + " and top value is " + top + "."); this.left = left; this.right = right; this.bottom = bottom;