From 09bc892c7283df8757a07b646d5af21ddaa263d1 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期四, 06 十一月 2025 18:22:34 +0800
Subject: [PATCH] 164 天子的考验-客户端

---
 Main/System/KnapSack/New/ItemCell.cs |   76 +++++--------------------------------
 1 files changed, 11 insertions(+), 65 deletions(-)

diff --git a/Main/System/KnapSack/New/ItemCell.cs b/Main/System/KnapSack/New/ItemCell.cs
index 9212f30..6602211 100644
--- a/Main/System/KnapSack/New/ItemCell.cs
+++ b/Main/System/KnapSack/New/ItemCell.cs
@@ -1,76 +1,22 @@
-锘縰sing UnityEngine;
-using UnityEngine.UI;
-using vnxbqy.UI;
-using System.Collections.Generic;
-using System;
-
-namespace vnxbqy.UI
+锘�
+public class ItemCell : CommonItemBaisc
 {
 
-    public class ItemCell : CommonItemBaisc
+
+    public override void Init(ItemModel model, bool isCompare = false)
     {
-        private Button m_Reducebtn;
-        public Button reducebtn {
-            get {
-                if (m_Reducebtn == null)
-                {
-                    LoadPrefab();
-                    m_Reducebtn = this.transform.GetComponent<Button>("Container_ItemCell/Btn_Reduce");
-                }
-                return m_Reducebtn;
-            }
-        }
-
-        Image m_AuctionIcon;
-        public Image auctionIcon
+        if (model == null)
         {
-            get
-            {
-                if (m_AuctionIcon == null)
-                {
-                    LoadPrefab();
-                    m_AuctionIcon = this.transform.GetComponent<Image>("Container_ItemCell/Img_Auction");
-                }
-                return m_AuctionIcon;
-            }
+            return;
         }
+        base.Init(model, isCompare);
 
-        Image m_TimeMark;
-        public Image timeMark
-        {
-            get
-            {
-                if (m_TimeMark == null)
-                {
-                    LoadPrefab();
-                    m_TimeMark = this.transform.GetComponent<Image>("Container_ItemCell/Img_Time");
-                }
-                return m_TimeMark;
-            }
-        }
+    }
 
-        public override void Init(ItemModel model, bool isCompare = false)
-        {
-            base.Init(model, isCompare);
-            reducebtn.SetActive(false);
-            auctionIcon.SetActive(false);
-            // auctionIcon.SetActive(model.isAuction);
-            // if (model.isAuction)
-            // {
-            //     auctionIcon.SetSprite(ItemLogicUtility.Instance.IsOverdue(model.guid) ? "Item_Auction_3" : "Item_Auction_1");
-            // }
+    public override void Init(ItemCellModel model)
+    {
+        base.Init(model);
 
-            timeMark?.SetActive(model.config.Type == 145 && model.config.CDTime > 0);
-        }
-
-        public override void Init(ItemCellModel model)
-        {
-            base.Init(model);
-            reducebtn.SetActive(false);
-            auctionIcon.SetActive(false);
-
-            timeMark?.SetActive(model.itemConfig.Type == 145 && model.itemConfig.CDTime > 0);
-        }
     }
 }
 

--
Gitblit v1.8.0