From 5f4e87065648162dadd21a0d22968c141e934f30 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Sun, 20 Jan 2019 21:10:52 -0600 Subject: [PATCH] refactor and documentation --- RecrownedAthenaeum/UI/Skin/SkinManager.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/RecrownedAthenaeum/UI/Skin/SkinManager.cs b/RecrownedAthenaeum/UI/Skin/SkinManager.cs index 05c04a1..36bf6f1 100644 --- a/RecrownedAthenaeum/UI/Skin/SkinManager.cs +++ b/RecrownedAthenaeum/UI/Skin/SkinManager.cs @@ -30,7 +30,10 @@ namespace RecrownedAthenaeum.UI.Skin private string selectedSkinPath; private SkinData skinDataToUse; - public bool ReadyForUse { get { return (SelectedSkin != null && BaseSkin != null); } } + /// + /// Whether or not the skin manager is set up with a and . + /// + public bool ReadyForUse { get { return (loadedSkin != null && BaseSkin != null); } } /// /// The list of paths for all found skins by . May be null. @@ -63,9 +66,9 @@ namespace RecrownedAthenaeum.UI.Skin public ISkin Skin { get { return mergedSkin; } } /// - /// The user selected skin. Set by the skin loaded by calling . + /// The user loaded skin. Set by the skin loaded by calling . /// - public ISkin SelectedSkin { get { return mergedSkin.mainSkin; } private set { mergedSkin.mainSkin = value; } } + public ISkin loadedSkin { get { return mergedSkin.mainSkin; } private set { mergedSkin.mainSkin = value; } } /// /// The fallback skin in case the selected skin doesn't cover a specific definition or color. @@ -131,7 +134,7 @@ namespace RecrownedAthenaeum.UI.Skin OnAsyncComplete(action); break; case Action.LOAD: - SelectedSkin = LoadSkinFromData(skinDataToUse, selectedSkinPath, graphicsDevice); + loadedSkin = LoadSkinFromData(skinDataToUse, selectedSkinPath, graphicsDevice); OnAsyncComplete(action); break; }