From c99500f7236d3855f103200554af01d503a8b9b8 Mon Sep 17 00:00:00 2001 From: ALEXTANG <574809918@qq.com> Date: Tue, 11 Apr 2023 16:56:57 +0800 Subject: [PATCH] Update WindowAttribute.cs --- .../Runtime/GameFramework/UI/WindowAttribute.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Assets/TEngine/Runtime/GameFramework/UI/WindowAttribute.cs b/Assets/TEngine/Runtime/GameFramework/UI/WindowAttribute.cs index 9d11da1a..db5823b2 100644 --- a/Assets/TEngine/Runtime/GameFramework/UI/WindowAttribute.cs +++ b/Assets/TEngine/Runtime/GameFramework/UI/WindowAttribute.cs @@ -2,6 +2,15 @@ namespace TEngine { + public enum UILayer:int + { + Bottom = 1, + UI, + Top, + Tips, + System, + } + [AttributeUsage(AttributeTargets.Class)] public class WindowAttribute : Attribute { @@ -26,5 +35,12 @@ namespace TEngine AssetName = assetName; FullScreen = fullScreen; } + + public WindowAttribute(UILayer windowLayer,string assetName = "", bool fullScreen = false) + { + WindowLayer = (int)windowLayer; + AssetName = assetName; + FullScreen = fullScreen; + } } } \ No newline at end of file