mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
Update WindowAttribute.cs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user