2019-12-28 21:41:06 +00:00
|
|
|
|
using RecrownedAthenaeum.Graphics.UI.Modular.Modules.Interactive;
|
2018-12-14 06:43:38 +00:00
|
|
|
|
|
2019-12-28 21:41:06 +00:00
|
|
|
|
namespace RecrownedAthenaeum.Graphics.UI.SkinSystem.Definitions
|
2018-12-14 06:43:38 +00:00
|
|
|
|
{
|
2019-01-15 02:00:11 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Definition for a text button for a skin theme.
|
|
|
|
|
/// </summary>
|
2018-12-14 06:43:38 +00:00
|
|
|
|
public class TextButtonSkinDefinition : ButtonSkinDefinition
|
|
|
|
|
{
|
2019-01-15 02:00:11 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Name of color from the skin to use for the font.
|
|
|
|
|
/// </summary>
|
2018-12-14 06:43:38 +00:00
|
|
|
|
public string fontColor;
|
|
|
|
|
|
2019-01-15 02:00:11 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creates this definition with the most minimal requirements.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="downRegion">Texture region from skin that represents when the button is pressed down.</param>
|
|
|
|
|
/// <param name="upRegion">The texture region that represents when the button is not pressed.</param>
|
2018-12-14 06:43:38 +00:00
|
|
|
|
public TextButtonSkinDefinition(string downRegion, string upRegion) : base(downRegion, upRegion)
|
|
|
|
|
{
|
2019-01-29 22:22:14 +00:00
|
|
|
|
UIModuleType = typeof(TextButton);
|
2018-12-14 06:43:38 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|