changed skin merge system to completely using try and catch, as well as minor documentation change.
This commit is contained in:
parent
067defc8c6
commit
69d8e59e8b
@ -23,8 +23,13 @@ namespace RecrownedAthenaeum.UI.Skin
|
||||
{
|
||||
get
|
||||
{
|
||||
if (mainSkin.CursorTexture != null) return mainSkin.CursorTexture;
|
||||
return alternateSkin.CursorTexture;
|
||||
try
|
||||
{
|
||||
return mainSkin.CursorTexture;
|
||||
} catch (NullReferenceException)
|
||||
{
|
||||
return alternateSkin.CursorTexture;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -76,7 +76,7 @@ namespace RecrownedAthenaeum.UI.Skin
|
||||
public ISkin loadedSkin { get { return mergedSkin.mainSkin; } private set { mergedSkin.mainSkin = value; } }
|
||||
|
||||
/// <summary>
|
||||
/// The fallback skin in case the selected skin doesn't cover a specific definition or color.
|
||||
/// The default skin in case the selected skin doesn't cover a specific definition or color.
|
||||
/// </summary>
|
||||
public ISkin BaseSkin { get { return mergedSkin.alternateSkin; } set { mergedSkin.alternateSkin = value; } }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user