recrownedathenaeum/RecrownedAthenaeum/UI/SkinSystem/Definitions/ButtonSkinDefinition.cs

29 lines
1.0 KiB
C#
Raw Normal View History

2018-12-11 07:12:34 +00:00
using RecrownedAthenaeum.UI.Modular.Modules.Interactive;
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-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>
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
}
}