Add assets
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Cainos.LucidEditor
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Method, AllowMultiple = true)]
|
||||
public class HelpBoxAttribute : Attribute
|
||||
{
|
||||
public readonly string message;
|
||||
public readonly HelpBoxMessageType type;
|
||||
|
||||
public HelpBoxAttribute(string message)
|
||||
{
|
||||
this.message = message;
|
||||
this.type = HelpBoxMessageType.Info;
|
||||
}
|
||||
|
||||
public HelpBoxAttribute(string message, HelpBoxMessageType type)
|
||||
{
|
||||
this.message = message;
|
||||
this.type = type;
|
||||
}
|
||||
}
|
||||
|
||||
public enum HelpBoxMessageType
|
||||
{
|
||||
None,
|
||||
Info,
|
||||
Warning,
|
||||
Error
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user