This commit is contained in:
2025-09-15 17:01:29 +08:00
parent 4df0359d7d
commit 53891f30f8
3 changed files with 15 additions and 7 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ namespace XericUI.Core.Base
{
public class XericUIBehaciour : UIBehaviour
{
[InfoBox("脚本属性存在空引用!请检查开放属性后再试", InfoMessageType.Error, VisibleIf = "PublicFieldNullReference")]
[InfoBox("脚本必填属性存在空引用!请检查开放属性后再试", InfoMessageType.Error, VisibleIf = "PublicFieldNullReference")]
[HideLabel, DisplayAsString]
string __EMPTYFIELD;
+2 -2
View File
@@ -24,7 +24,7 @@ namespace XericUI.FlipPage
/// | |-ItemComponentInfo 项目组件结构
///
/// 组件层使用组件容器封装,预设的组件引用可以实现类似下面的样式
/// |< < 2,3,4 > >|
/// |< < 2,3,4 > >|
/// 两侧是固定的按钮,中间是一个横向的排列容器,在指定了按钮对象池后,将会自动生成绑定好的按钮用于翻页。
/// 页数按钮需要让button在预制体最外层,它的子集中需要包含一个TMP_Text。
/// </code>
@@ -41,7 +41,7 @@ namespace XericUI.FlipPage
#endif
[Tooltip("候选页按最多数量展示")]
[SerializeField]
protected bool inMaximumCandidatesNumber = true;
protected bool inMaximumCandidatesNumber = false;
/// <summary>
/// 首页按钮
@@ -207,13 +207,10 @@ namespace XericUI.FlipPage
[SerializeField]
protected int currentPageIndex = 0;
#if UNITY_EDITOR
#if UNITY_EDITOR && ODIN_INSPECTOR
/// <summary>
/// 显示调试列表
/// </summary>
#if ODIN_INSPECTOR
[ShowInInspector]
#endif
private List<PageInfo> PageInfoLists => _pageInfos.ToList();
#endif
@@ -258,6 +255,17 @@ namespace XericUI.FlipPage
private List<ItemInfo> _backupItemInfos;
public List<ItemInfo> BackItemInfos => _backupItemInfos;
/// <summary>
/// 分布所有页面上的所有项目数量
/// </summary>
public int TotalItemCount => AllItemInfos.Count();
/// <summary>
/// 所有页面数量
/// </summary>
public int TotalPageCount => PageInfos.Count();
#endregion