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 DelayedClose; public WindowAttribute(UILayer windowLayer, bool fullScreen = false, int delayedClose = 10) { WindowLayer = windowLayer; FullScreen = fullScreen; DelayedClose = delayedClose; } } [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 { Resources, AssetBundle } }