Framwork/Assets/Scripts/Runtime/ScriptableObject/ThemeScriptableObject.cs

25 lines
912 B
C#
Raw Normal View History

2025-07-02 10:24:01 +08:00
using Sirenix.OdinInspector;
2025-06-17 09:31:12 +08:00
using UnityEngine;
namespace HK
{
[CreateAssetMenu(fileName = "ThemeObject", menuName = "ScriptableObjects/ThemeObject", order = 1)]
public class ThemeScriptableObject : ThemeBaseScriptableObject
{
2025-07-02 10:24:01 +08:00
[LabelText("主题第一张缩略图")] public Sprite banner;
[LabelText("是否为正常主题")] public bool isSticker;
[LabelText("正常主题")] [ShowIf("isSticker")]
2025-06-17 09:31:12 +08:00
public Sprite[] lightStickers;
2025-07-02 10:24:01 +08:00
[LabelText("是否为fixed主题")] public bool isFixed;
[LabelText("fixed主题")] [ShowIf("isFixed")]
public Sprite[] fixedStickers;
[LabelText("主题名称")] public string themeName;
[LabelText("是否只允许贴一张")] public bool isOnlyOne;
[LabelText("是否只允许改变颜色")] public bool isChangeColor;
[ShowIf("isChangeColor")] public Color[] colors;
2025-06-17 09:31:12 +08:00
}
}