using System;
namespace Paps.UnityToolbarExtenderUIToolkit
{
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public class MainToolbarElementAttribute : Attribute
{
public string Id { get; }
public ToolbarAlign Alignment { get; }
public int Order { get; }
public bool UseRecommendedStyles { get; }
///
/// Mark a class derived from VisualElement to be found by toolbar extender
///
/// Id of element. Must be unique. In case of collision, first found is used
/// Left or right to play buttons. Ignored if inside a group
/// Order in which this element will be displayed in toolbar. Ignored if inside a group
/// True if this element should use recommended styles. Set it to false if you want to style the visual element yourself.
///
public MainToolbarElementAttribute(string id, ToolbarAlign alignment = ToolbarAlign.Left,
int order = 0,
bool useRecommendedStyles = true)
{
Id = id;
Alignment = alignment;
Order = order;
UseRecommendedStyles = useRecommendedStyles;
}
}
}