mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
Update WindowAttribute.cs
This commit is contained in:
@@ -2,6 +2,15 @@
|
|||||||
|
|
||||||
namespace TEngine
|
namespace TEngine
|
||||||
{
|
{
|
||||||
|
public enum UILayer:int
|
||||||
|
{
|
||||||
|
Bottom = 1,
|
||||||
|
UI,
|
||||||
|
Top,
|
||||||
|
Tips,
|
||||||
|
System,
|
||||||
|
}
|
||||||
|
|
||||||
[AttributeUsage(AttributeTargets.Class)]
|
[AttributeUsage(AttributeTargets.Class)]
|
||||||
public class WindowAttribute : Attribute
|
public class WindowAttribute : Attribute
|
||||||
{
|
{
|
||||||
@@ -26,5 +35,12 @@ namespace TEngine
|
|||||||
AssetName = assetName;
|
AssetName = assetName;
|
||||||
FullScreen = fullScreen;
|
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