From 081f84cd474eca03d22e4dbb25fcd2b14f3b1e03 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Tue, 11 Dec 2018 01:15:10 -0600 Subject: [PATCH] properly implemented ISkinDefinition to the skins (forgot to update definitions after modifying the interface). --- .../UI/Skin/Definitions/ButtonSkinDefinition.cs | 8 ++------ .../UI/Skin/Definitions/TextSkinDefinition.cs | 6 +----- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/RecrownedAthenaeum/UI/Skin/Definitions/ButtonSkinDefinition.cs b/RecrownedAthenaeum/UI/Skin/Definitions/ButtonSkinDefinition.cs index 7e3b080..97865f8 100644 --- a/RecrownedAthenaeum/UI/Skin/Definitions/ButtonSkinDefinition.cs +++ b/RecrownedAthenaeum/UI/Skin/Definitions/ButtonSkinDefinition.cs @@ -12,16 +12,12 @@ namespace RecrownedAthenaeum.UI.Skin.Definitions public string downRegion; public string upRegion; public string disabledRegion; - + public Type UIModuleType { get { return typeof(Button); } } + public ButtonSkinDefinition(string downRegion, string upRegion) { this.downRegion = downRegion; this.upRegion = upRegion; } - - public Type UIModuleType() - { - return typeof(Button); - } } } diff --git a/RecrownedAthenaeum/UI/Skin/Definitions/TextSkinDefinition.cs b/RecrownedAthenaeum/UI/Skin/Definitions/TextSkinDefinition.cs index 5a2c429..ff3e253 100644 --- a/RecrownedAthenaeum/UI/Skin/Definitions/TextSkinDefinition.cs +++ b/RecrownedAthenaeum/UI/Skin/Definitions/TextSkinDefinition.cs @@ -11,16 +11,12 @@ namespace RecrownedAthenaeum.UI.Skin.Definitions { public string font; public string color; + public Type UIModuleType { get { return typeof(Text); } } public TextSkinDefinition(string font, string color) { this.font = font; this.color = color; } - - public Type UIModuleType() - { - return typeof(Text); - } } }