2019-12-28 21:41:06 +00:00
|
|
|
|
using RecrownedAthenaeum.Graphics.UI.Modular.Modules;
|
2019-04-11 05:51:26 +00:00
|
|
|
|
using System;
|
2019-04-09 04:58:27 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2019-12-28 21:41:06 +00:00
|
|
|
|
namespace RecrownedAthenaeum.Graphics.UI.SkinSystem.Definitions
|
2019-04-09 04:58:27 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Skin definition of a scroll module.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class UIScrollableSkinDefinition : SkinDefinitionData
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Name of the region that specifies the texture needed.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string horizontalBar, verticalBar, horizontalBarTrack, verticalBarTrack, background;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Instantiates the definition with the minimum requirements.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="horizontalBar">Name of the region used by the skin that defines what the horizontal scroll bar looks like.</param>
|
|
|
|
|
/// <param name="verticalBar">Name of the region used by the skin that defines what the vertical scroll bar looks like.</param>
|
|
|
|
|
public UIScrollableSkinDefinition(string horizontalBar, string verticalBar)
|
|
|
|
|
{
|
|
|
|
|
this.horizontalBar = horizontalBar;
|
|
|
|
|
this.verticalBar = verticalBar;
|
2019-04-11 05:51:26 +00:00
|
|
|
|
UIModuleType = typeof(UIScrollable);
|
2019-04-09 04:58:27 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|