Add assets
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
|
||||
namespace Cainos.LucidEditor
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method)]
|
||||
public class ButtonAttribute : Attribute
|
||||
{
|
||||
public readonly string label = null;
|
||||
public readonly InspectorButtonSize size = InspectorButtonSize.Small;
|
||||
|
||||
public ButtonAttribute() { }
|
||||
|
||||
public ButtonAttribute(string label)
|
||||
{
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public ButtonAttribute(InspectorButtonSize size)
|
||||
{
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
public ButtonAttribute(string label, InspectorButtonSize size)
|
||||
{
|
||||
this.label = label;
|
||||
this.size = size;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user