function for obtaining color will now work with nulls by setting the key to "default".

This commit is contained in:
2019-01-29 16:54:24 -06:00
parent ec53e887ee
commit 8387cbc604
2 changed files with 10 additions and 8 deletions

View File

@@ -29,10 +29,11 @@ namespace RecrownedAthenaeum.UI.SkinSystem
/// <summary>
/// Returns a <see cref="Color"/> with given name of defined color;
/// Should use value "default" if <paramref name="name"/> is null.
/// </summary>
/// <param name="name">Name of defined color.</param>
/// <returns>The defined color based on the name given.</returns>
Color GetColor(string name);
Color GetColor(string name = null);
/// <summary>
/// Returns a <see cref="TextureAtlas.Region"/> with given name of region.