Update WindowAttribute.cs

This commit is contained in:
ALEXTANG
2023-04-11 16:56:57 +08:00
parent 280bca87fb
commit c99500f723

View File

@@ -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;
}
}
}