From 53891f30f8915aa341185b80888172b3188884a2 Mon Sep 17 00:00:00 2001 From: LiRuoChen <571244399@qq.com> Date: Mon, 15 Sep 2025 17:01:29 +0800 Subject: [PATCH] backup --- Runtime/Core/Base/XericUIBehaciour.cs | 2 +- Runtime/FlipPage/FlipPageComponentManager.cs | 4 ++-- Runtime/FlipPage/XericFlipPageIndexVesselBase.cs | 16 ++++++++++++---- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/Runtime/Core/Base/XericUIBehaciour.cs b/Runtime/Core/Base/XericUIBehaciour.cs index 086eefa..74e50f8 100644 --- a/Runtime/Core/Base/XericUIBehaciour.cs +++ b/Runtime/Core/Base/XericUIBehaciour.cs @@ -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; diff --git a/Runtime/FlipPage/FlipPageComponentManager.cs b/Runtime/FlipPage/FlipPageComponentManager.cs index b3e05cd..25b758e 100644 --- a/Runtime/FlipPage/FlipPageComponentManager.cs +++ b/Runtime/FlipPage/FlipPageComponentManager.cs @@ -24,7 +24,7 @@ namespace XericUI.FlipPage /// | |-ItemComponentInfo 项目组件结构 /// /// 组件层使用组件容器封装,预设的组件引用可以实现类似下面的样式 - /// |< < 2,3,4 > >| + /// |< < 2,3,4 > >| /// 两侧是固定的按钮,中间是一个横向的排列容器,在指定了按钮对象池后,将会自动生成绑定好的按钮用于翻页。 /// 页数按钮需要让button在预制体最外层,它的子集中需要包含一个TMP_Text。 /// @@ -41,7 +41,7 @@ namespace XericUI.FlipPage #endif [Tooltip("候选页按最多数量展示")] [SerializeField] - protected bool inMaximumCandidatesNumber = true; + protected bool inMaximumCandidatesNumber = false; /// /// 首页按钮 diff --git a/Runtime/FlipPage/XericFlipPageIndexVesselBase.cs b/Runtime/FlipPage/XericFlipPageIndexVesselBase.cs index 5dba077..3044a2d 100644 --- a/Runtime/FlipPage/XericFlipPageIndexVesselBase.cs +++ b/Runtime/FlipPage/XericFlipPageIndexVesselBase.cs @@ -207,13 +207,10 @@ namespace XericUI.FlipPage [SerializeField] protected int currentPageIndex = 0; -#if UNITY_EDITOR +#if UNITY_EDITOR && ODIN_INSPECTOR /// /// ÏÔʾµ÷ÊÔÁбí /// -#if ODIN_INSPECTOR - [ShowInInspector] -#endif private List PageInfoLists => _pageInfos.ToList(); #endif @@ -258,6 +255,17 @@ namespace XericUI.FlipPage private List _backupItemInfos; public List BackItemInfos => _backupItemInfos; + + + /// + /// ·ֲ¼ËùÓÐҳÃæÉϵÄËùÓÐÏîĿÊýÁ¿ + /// + public int TotalItemCount => AllItemInfos.Count(); + + /// + /// ËùÓÐҳÃæÊýÁ¿ + /// + public int TotalPageCount => PageInfos.Count(); #endregion