Files
Cielonos/Assets/OtherPlugins/GraphicsCat/Modules/Common/PropertyAttributes/LabelAttribute.cs
SoulliesOfficial d15957c719 更新
2025-12-17 04:19:38 -05:00

27 lines
505 B
C#

using System;
using UnityEngine;
namespace GraphicsCat
{
public enum LabelStyle
{
Normal,
Bold,
Italic,
BoldItalic
}
[AttributeUsage(AttributeTargets.Field)]
public class LabelAttribute : PropertyAttribute
{
public string Text { get; }
public LabelStyle Style { get; }
public LabelAttribute(string text, LabelStyle style = LabelStyle.Normal)
{
Text = text;
Style = style;
}
}
}