using System; using UnityEngine; namespace AlicizaX.UI.Runtime { [AttributeUsage(AttributeTargets.Class)] public class WindowAttribute : Attribute { /// /// 窗口层级 /// public readonly UILayer WindowLayer; /// /// 全屏窗口标记。 /// public readonly bool FullScreen; /// /// 延时关闭 /// public readonly int CacheTime; /// /// /// /// 显示层级 /// 是否全屏遮挡 /// 缓存时间/s -1永久 0不 >=1生效 public WindowAttribute(UILayer windowLayer, bool fullScreen = false, int cacheTime = 0) { WindowLayer = windowLayer; FullScreen = fullScreen; CacheTime = cacheTime; } } [AttributeUsage(AttributeTargets.Class)] public class UIResAttribute : Attribute { public readonly string ResLocation; public readonly EUIResLoadType ResLoadType; public UIResAttribute(string location, EUIResLoadType loadType) { ResLocation = location; ResLoadType = loadType; } } public enum EUIResLoadType:byte { Resources, AssetBundle } }