Changed use of Skin to ISkin.

This commit is contained in:
2019-01-27 18:14:10 -06:00
parent 44e574ddce
commit 501da58cb7
3 changed files with 6 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ using Microsoft.Xna.Framework.Input;
using RecrownedAthenaeum.SpecialTypes;
using RecrownedAthenaeum.Input;
using RecrownedAthenaeum.UI.SkinSystem.Definitions;
using RecrownedAthenaeum.UI.SkinSystem;
namespace RecrownedAthenaeum.UI.Modular.Modules.Interactive
{
@@ -54,7 +55,7 @@ namespace RecrownedAthenaeum.UI.Modular.Modules.Interactive
/// </summary>
/// <param name="skin">The skin containing the information of the textures and design to follow.</param>
/// <param name="definitionName">The name of the definition in the skin. Can be null to select the default.</param>
public Button(SkinSystem.Skin skin, string definitionName = null)
public Button(ISkin skin, string definitionName = null)
{
skinDefinition = skin.ObtainDefinition<ButtonSkinDefinition>(definitionName, GetType());
downTexture = skin.GetTextureAtlasRegion(skinDefinition.downRegion);