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>
public int WindowLayer;
public readonly int WindowLayer;
/// <summary>
/// 资源定位地址。
/// </summary>
public string AssetName;
public readonly string Location;
/// <summary>
/// 全屏窗口标记。
/// </summary>
public bool FullScreen;
public WindowAttribute(int windowLayer,string assetName = "", bool fullScreen = false)
public readonly bool FullScreen;
public WindowAttribute(int windowLayer,string location = "", bool fullScreen = false)
{
WindowLayer = windowLayer;
AssetName = assetName;
Location = location;
FullScreen = fullScreen;
}
public WindowAttribute(UILayer windowLayer,string assetName = "", bool fullScreen = false)
public WindowAttribute(UILayer windowLayer,string location = "", bool fullScreen = false)
{
WindowLayer = (int)windowLayer;
AssetName = assetName;
Location = location;
FullScreen = fullScreen;
}
}