[删除]1. 删除优先级字段

This commit is contained in:
Blank 2024-08-16 17:13:58 +08:00
parent 7b07bd4dc0
commit d5e33c6b4c
4 changed files with 15 additions and 12 deletions

View File

@ -24,7 +24,7 @@ namespace GameFrameX.UI.Editor
private SerializedProperty m_InstanceAutoReleaseInterval = null;
private SerializedProperty m_InstanceCapacity = null;
private SerializedProperty m_InstanceExpireTime = null;
private SerializedProperty m_InstancePriority = null;
// private SerializedProperty m_InstancePriority = null;
private SerializedProperty m_InstanceRoot = null;
private SerializedProperty m_UIGroups = null;
@ -88,6 +88,7 @@ namespace GameFrameX.UI.Editor
}
}
/*
int instancePriority = EditorGUILayout.DelayedIntField("Instance Priority", m_InstancePriority.intValue);
if (instancePriority != m_InstancePriority.intValue)
{
@ -99,7 +100,7 @@ namespace GameFrameX.UI.Editor
{
m_InstancePriority.intValue = instancePriority;
}
}
}*/
EditorGUI.BeginDisabledGroup(EditorApplication.isPlayingOrWillChangePlaymode);
{
@ -144,7 +145,7 @@ namespace GameFrameX.UI.Editor
m_InstanceAutoReleaseInterval = serializedObject.FindProperty("m_InstanceAutoReleaseInterval");
m_InstanceCapacity = serializedObject.FindProperty("m_InstanceCapacity");
m_InstanceExpireTime = serializedObject.FindProperty("m_InstanceExpireTime");
m_InstancePriority = serializedObject.FindProperty("m_InstancePriority");
// m_InstancePriority = serializedObject.FindProperty("m_InstancePriority");
m_InstanceRoot = serializedObject.FindProperty("m_InstanceRoot");
m_UIGroups = serializedObject.FindProperty("m_UIGroups");

View File

@ -38,10 +38,10 @@ namespace GameFrameX.UI.Runtime
/// </summary>
float InstanceExpireTime { get; set; }
/// <summary>
/*/// <summary>
/// 获取或设置界面实例对象池的优先级。
/// </summary>
int InstancePriority { get; set; }
int InstancePriority { get; set; }*/
/// <summary>
/// 打开界面成功事件。
@ -53,15 +53,16 @@ namespace GameFrameX.UI.Runtime
/// </summary>
event EventHandler<OpenUIFormFailureEventArgs> OpenUIFormFailure;
/*
/// <summary>
/// 打开界面更新事件。
/// </summary>
// event EventHandler<OpenUIFormUpdateEventArgs> OpenUIFormUpdate;
event EventHandler<OpenUIFormUpdateEventArgs> OpenUIFormUpdate;
/// <summary>
/// 打开界面时加载依赖资源事件。
/// </summary>
// event EventHandler<OpenUIFormDependencyAssetEventArgs> OpenUIFormDependencyAsset;
event EventHandler<OpenUIFormDependencyAssetEventArgs> OpenUIFormDependencyAsset;*/
/// <summary>
/// 关闭界面完成事件。

View File

@ -95,14 +95,14 @@ namespace GameFrameX.UI.Runtime
set { m_InstancePool.ExpireTime = value; }
}
/// <summary>
/*/// <summary>
/// 获取或设置界面实例对象池的优先级。
/// </summary>
public int InstancePriority
{
get { return m_InstancePool.Priority; }
set { m_InstancePool.Priority = value; }
}
}*/
/// <summary>
/// 打开界面成功事件。

View File

@ -46,7 +46,7 @@ namespace GameFrameX.UI.Runtime
[SerializeField] private float m_InstanceExpireTime = 60f;
[SerializeField] private int m_InstancePriority = 0;
// [SerializeField] private int m_InstancePriority = 0;
[SerializeField] private Transform m_InstanceRoot = null;
@ -95,6 +95,7 @@ namespace GameFrameX.UI.Runtime
set { m_UIManager.InstanceExpireTime = m_InstanceExpireTime = value; }
}
/*
/// <summary>
/// 获取或设置界面实例对象池的优先级。
/// </summary>
@ -102,7 +103,7 @@ namespace GameFrameX.UI.Runtime
{
get { return m_UIManager.InstancePriority; }
set { m_UIManager.InstancePriority = m_InstancePriority = value; }
}
}*/
/// <summary>
/// 游戏框架组件初始化。
@ -165,7 +166,7 @@ namespace GameFrameX.UI.Runtime
m_UIManager.InstanceAutoReleaseInterval = m_InstanceAutoReleaseInterval;
m_UIManager.InstanceCapacity = m_InstanceCapacity;
m_UIManager.InstanceExpireTime = m_InstanceExpireTime;
m_UIManager.InstancePriority = m_InstancePriority;
// m_UIManager.InstancePriority = m_InstancePriority;
UIFormHelperBase uiFormHelper = Helper.CreateHelper(m_UIFormHelperTypeName, m_CustomUIFormHelper);
if (uiFormHelper == null)