began working on skin system.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using RecrownedAthenaeum.UI.Modular.Modules.Interactive;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace RecrownedAthenaeum.UI.Skin.Definitions
|
||||
{
|
||||
public class ButtonSkinDefinition : ISkinDefinition
|
||||
{
|
||||
public string downRegion;
|
||||
public string upRegion;
|
||||
public string disabledRegion;
|
||||
|
||||
public ButtonSkinDefinition(string downRegion, string upRegion)
|
||||
{
|
||||
this.downRegion = downRegion;
|
||||
this.upRegion = upRegion;
|
||||
}
|
||||
|
||||
public Type UIModuleType()
|
||||
{
|
||||
return typeof(Button);
|
||||
}
|
||||
}
|
||||
}
|
13
RecrownedAthenaeum/UI/Skin/Definitions/ISkinDefinition.cs
Normal file
13
RecrownedAthenaeum/UI/Skin/Definitions/ISkinDefinition.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace RecrownedAthenaeum.UI.Skin.Definitions
|
||||
{
|
||||
public interface ISkinDefinition
|
||||
{
|
||||
Type UIModuleType { get; }
|
||||
}
|
||||
}
|
26
RecrownedAthenaeum/UI/Skin/Definitions/TextSkinDefinition.cs
Normal file
26
RecrownedAthenaeum/UI/Skin/Definitions/TextSkinDefinition.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using static System.Net.Mime.MediaTypeNames;
|
||||
|
||||
namespace RecrownedAthenaeum.UI.Skin.Definitions
|
||||
{
|
||||
class TextSkinDefinition : ISkinDefinition
|
||||
{
|
||||
public string font;
|
||||
public string color;
|
||||
|
||||
public TextSkinDefinition(string font, string color)
|
||||
{
|
||||
this.font = font;
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
public Type UIModuleType()
|
||||
{
|
||||
return typeof(Text);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user