From 3b2a6bb9047cfce9f501593b3669a9c1af6c5df4 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期三, 05 十一月 2025 17:40:23 +0800
Subject: [PATCH] 130 战斗修改回合样式

---
 Main/Component/UI/EnhancedScroller/EnhancedScrollerCellView.cs |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 49 insertions(+), 0 deletions(-)

diff --git a/Main/Component/UI/EnhancedScroller/EnhancedScrollerCellView.cs b/Main/Component/UI/EnhancedScroller/EnhancedScrollerCellView.cs
new file mode 100644
index 0000000..c6e916e
--- /dev/null
+++ b/Main/Component/UI/EnhancedScroller/EnhancedScrollerCellView.cs
@@ -0,0 +1,49 @@
+锘縰sing UnityEngine;
+using System;
+using System.Collections;
+
+namespace EnhancedUI.EnhancedScroller
+{
+    /// <summary>
+    /// This is the base class that all cell views should derive from
+    /// </summary>
+    public class EnhancedScrollerCellView : MonoBehaviour
+    {
+        /// <summary>
+        /// The cellIdentifier is a unique string that allows the scroller
+        /// to handle different types of cells in a single list. Each type
+        /// of cell should have its own identifier
+        /// </summary>
+        public string cellIdentifier; //褰撳瓨鍦ㄤ笉鍚宲refab鐨勬椂鍊欙紝灏卞彲浠ョ敤杩欎釜identifier鏉ュ尯鍒�
+
+        /// <summary>
+        /// The cell index of the cell view
+        /// This will differ from the dataIndex if the list is looping
+        /// </summary>
+        [NonSerialized]
+        public int cellIndex;//_activeCellViews涓殑绱㈠紩
+
+        [NonSerialized]
+        public int index = -1;//_activeCellViews涓殑绱㈠紩
+
+        /// <summary>
+        /// The data index of the cell view
+        /// </summary>
+        [NonSerialized]
+        public int dataIndex;//闈炲惊鐜ā寮忎笅鍜宑ellIndex鐩稿悓锛屽惊鐜ā寮忎笅涓哄綋鍓嶅惊鐜殑瀛愮墿浣撶殑绱㈠紩
+
+        /// <summary>
+        /// Whether the cell is active or recycled
+        /// </summary>
+        [NonSerialized]
+        public bool active;
+
+        /// <summary>
+        /// This method is called by the scroller when the RefreshActiveCellViews is called on the scroller
+        /// You can override it to update your cell's view UID
+        /// </summary>
+        public virtual void RefreshCellView() { }//褰撲富鍔ㄨ皟鐢‥nhancedScrller绫讳腑RefreshActiveCellViews()鏂规硶鏃讹紝浼氶亶鍘嗗綋鍓嶅浜嶢ctive鐘舵�佺殑CellVeiw锛屽苟璋冪敤瀹冧滑閲嶅啓鐨勮繖涓柟娉�
+                                                 //杩欎釜鏂规硶鍙互鐢ㄤ簬涓诲姩鍒锋柊褰撳墠澶勪簬Active鐘舵�佺殑CellVeiw
+
+    }
+}
\ No newline at end of file

--
Gitblit v1.8.0