30 lines
1.0 KiB
C#
Raw Normal View History

2018-12-11 01:12:34 -06:00
using RecrownedAthenaeum.UI.Modular.Modules.Interactive;
using System;
2019-01-27 17:39:18 -06:00
namespace RecrownedAthenaeum.UI.SkinSystem.Definitions
2018-12-11 01:12:34 -06:00
{
2019-01-14 00:34:35 -06:00
/// <summary>
/// Definition for a button.
/// </summary>
2019-01-29 16:22:14 -06:00
public class ButtonSkinDefinition : SkinDefinitionData
2018-12-11 01:12:34 -06:00
{
2019-01-14 00:34:35 -06:00
/// <summary>
/// Names for the regions in the texture atlas respectively.
/// </summary>
public string upRegion, downRegion, disabledRegion, selectedRegion;
2019-01-14 00:34:35 -06: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 01:12:34 -06:00
public ButtonSkinDefinition(string downRegion, string upRegion)
{
2019-01-29 16:22:14 -06:00
UIModuleType = typeof(Button);
2018-12-11 01:12:34 -06:00
this.downRegion = downRegion;
this.upRegion = upRegion;
}
2019-01-29 16:22:14 -06:00
2018-12-11 01:12:34 -06:00
}
}