You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
462 B
24 lines
462 B
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; |
|
} |
|
} |
|
}
|
|
|