32 lines
727 B
C#
32 lines
727 B
C#
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
|
|
}
|
|
} |