2022-01-18 12:41:11 -05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
|
|
|
|
|
namespace TriInspector
|
|
|
|
|
{
|
|
|
|
|
[AttributeUsage(AttributeTargets.Method)]
|
|
|
|
|
[Conditional("UNITY_EDITOR")]
|
2023-03-11 16:18:57 -05:00
|
|
|
|
public class ButtonAttribute : Attribute
|
2022-01-18 12:41:11 -05:00
|
|
|
|
{
|
2022-05-09 03:31:05 -04:00
|
|
|
|
public ButtonAttribute()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ButtonAttribute(string name)
|
2022-01-18 12:41:11 -05:00
|
|
|
|
{
|
|
|
|
|
Name = name;
|
|
|
|
|
}
|
|
|
|
|
|
2023-06-21 13:48:08 -04:00
|
|
|
|
public ButtonAttribute(ButtonSizes buttonSize, string name = null)
|
2022-06-06 12:35:46 -04:00
|
|
|
|
{
|
|
|
|
|
ButtonSize = (int) buttonSize;
|
2023-06-21 13:48:08 -04:00
|
|
|
|
Name = name;
|
2022-06-06 12:35:46 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public int ButtonSize { get; }
|
2022-01-18 12:41:11 -05:00
|
|
|
|
}
|
|
|
|
|
}
|