2018-12-11 07:12:34 +00:00
|
|
|
|
using RecrownedAthenaeum.UI.Modular.Modules.Interactive;
|
|
|
|
|
using System;
|
|
|
|
|
|
2019-01-27 23:39:18 +00:00
|
|
|
|
namespace RecrownedAthenaeum.UI.SkinSystem.Definitions
|
2018-12-11 07:12:34 +00:00
|
|
|
|
{
|
2019-01-14 06:34:35 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Definition for a button.
|
|
|
|
|
/// </summary>
|
2019-01-15 23:03:17 +00:00
|
|
|
|
public class ButtonSkinDefinition : ISkinDefinitionData
|
2018-12-11 07:12:34 +00:00
|
|
|
|
{
|
2019-01-14 06:34:35 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Names for the regions in the texture atlas respectively.
|
|
|
|
|
/// </summary>
|
2018-12-14 06:43:38 +00:00
|
|
|
|
public string upRegion, downRegion, disabledRegion, selectedRegion;
|
2019-01-14 06:34:35 +00:00
|
|
|
|
|
|
|
|
|
///<inheritDoc/>
|
2018-12-11 07:15:10 +00:00
|
|
|
|
public Type UIModuleType { get { return typeof(Button); } }
|
|
|
|
|
|
2019-01-14 06:34:35 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Constructs the definition with minimum requirements.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="downRegion">Name of region specifying the texture shown for when the button is pressed down.</param>
|
|
|
|
|
/// <param name="upRegion">Name of region specifying the texture shown for when the button is not pressed.</param>
|
2018-12-11 07:12:34 +00:00
|
|
|
|
public ButtonSkinDefinition(string downRegion, string upRegion)
|
|
|
|
|
{
|
|
|
|
|
this.downRegion = downRegion;
|
|
|
|
|
this.upRegion = upRegion;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|