began working on skin system.

This commit is contained in:
2018-12-11 01:12:34 -06:00
parent f3bfba0045
commit dd768ac751
5 changed files with 125 additions and 1 deletions

View File

@@ -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);
}
}
}

View 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; }
}
}

View 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);
}
}
}