Update WindowAttribute.cs

This commit is contained in:
ALEXTANG
2023-07-19 17:33:25 +08:00
parent c1178e284b
commit 9e0462043c

View File

@@ -20,29 +20,27 @@ namespace TEngine
/// <summary> /// <summary>
/// 窗口层级 /// 窗口层级
/// </summary> /// </summary>
public int WindowLayer; public readonly int WindowLayer;
/// <summary> /// <summary>
/// 资源定位地址。 /// 资源定位地址。
/// </summary> /// </summary>
public string AssetName; public readonly string Location;
/// <summary> /// <summary>
/// 全屏窗口标记。 /// 全屏窗口标记。
/// </summary> /// </summary>
public bool FullScreen; public readonly bool FullScreen;
public WindowAttribute(int windowLayer,string location = "", bool fullScreen = false)
public WindowAttribute(int windowLayer,string assetName = "", bool fullScreen = false)
{ {
WindowLayer = windowLayer; WindowLayer = windowLayer;
AssetName = assetName; Location = location;
FullScreen = fullScreen; FullScreen = fullScreen;
} }
public WindowAttribute(UILayer windowLayer,string assetName = "", bool fullScreen = false) public WindowAttribute(UILayer windowLayer,string location = "", bool fullScreen = false)
{ {
WindowLayer = (int)windowLayer; WindowLayer = (int)windowLayer;
AssetName = assetName; Location = location;
FullScreen = fullScreen; FullScreen = fullScreen;
} }
} }