You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
549 B
C#
25 lines
549 B
C#
using System;
|
|
|
|
namespace NaughtyAttributes
|
|
{
|
|
public enum EInfoBoxType
|
|
{
|
|
Normal,
|
|
Warning,
|
|
Error
|
|
}
|
|
|
|
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true, Inherited = true)]
|
|
public class InfoBoxAttribute : DrawerAttribute
|
|
{
|
|
public string Text { get; private set; }
|
|
public EInfoBoxType Type { get; private set; }
|
|
|
|
public InfoBoxAttribute(string text, EInfoBoxType type = EInfoBoxType.Normal)
|
|
{
|
|
Text = text;
|
|
Type = type;
|
|
}
|
|
}
|
|
}
|