previous commit didn't contain actual update file, so its apart of this commit.
This commit is contained in:
parent
60d02f1f81
commit
2e984db135
@ -44,13 +44,13 @@ namespace RecrownedAthenaeum.UI.SkinSystem
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns a <see cref="TextureAtlas.Region"/> with given name of region.
|
/// Returns a <see cref="TextureAtlas.Region"/> with given name of region. Null values acceptable. Will return null if parameter is null.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="name">Name of region.</param>
|
/// <param name="name">Name of region.</param>
|
||||||
/// <returns>The region corresponding to the name or null if the requested region doesn't exist.</returns>
|
/// <returns>The region corresponding to the name or null if the requested region doesn't exist.</returns>
|
||||||
public virtual TextureAtlas.Region GetTextureAtlasRegion(string name)
|
public virtual TextureAtlas.Region GetTextureAtlasRegion(string name)
|
||||||
{
|
{
|
||||||
if (!textureAtlas.ContainsRegion(name)) return null;
|
if (name != null || !textureAtlas.ContainsRegion(name)) return null;
|
||||||
return textureAtlas[name];
|
return textureAtlas[name];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user