2019-12-28 21:41:06 +00:00
|
|
|
|
using RecrownedAthenaeum.Graphics.UI.Modular.Modules.Interactive;
|
2018-12-11 07:12:34 +00:00
|
|
|
|
|
2019-12-28 21:41:06 +00:00
|
|
|
|
namespace RecrownedAthenaeum.Graphics.UI.SkinSystem.Definitions
|
2018-12-11 07:12:34 +00:00
|
|
|
|
{
|
2019-01-14 06:34:35 +00:00
|
|
|
|
/// <summary>
|
2019-04-09 04:58:27 +00:00
|
|
|
|
/// Skin definition for a button.
|
2019-01-14 06:34:35 +00:00
|
|
|
|
/// </summary>
|
2019-01-29 22:22:14 +00:00
|
|
|
|
public class ButtonSkinDefinition : SkinDefinitionData
|
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
|
|
|
|
|
|
|
|
|
/// <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)
|
|
|
|
|
{
|
2019-01-29 22:22:14 +00:00
|
|
|
|
UIModuleType = typeof(Button);
|
2018-12-11 07:12:34 +00:00
|
|
|
|
this.downRegion = downRegion;
|
|
|
|
|
this.upRegion = upRegion;
|
|
|
|
|
}
|
2019-01-29 22:22:14 +00:00
|
|
|
|
|
2018-12-11 07:12:34 +00:00
|
|
|
|
}
|
|
|
|
|
}
|