From ca72a86a38c255c51df9d9376bf86bdeda92deb6 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期四, 13 十一月 2025 18:58:32 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts
---
Main/System/ItemTip/OwnItemCell.cs | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/Main/System/ItemTip/OwnItemCell.cs b/Main/System/ItemTip/OwnItemCell.cs
index 1afcef7..9a073a8 100644
--- a/Main/System/ItemTip/OwnItemCell.cs
+++ b/Main/System/ItemTip/OwnItemCell.cs
@@ -8,12 +8,30 @@
[SerializeField] Image itemIcon;
[SerializeField] Text numText;
[SerializeField] Button wayBtn;
- public int itemID;
+
+ int m_itemID;
+ public int itemID
+ {
+ get
+ {
+ return m_itemID;
+ }
+ set
+ {
+ m_itemID = value;
+ if (m_itemID != 0)
+ {
+ Display(true);
+ }
+ }
+ }
void Start()
{
if (itemID != 0)
+ {
itemIcon.SetOrgSprite(ItemConfig.Get(itemID).IconKey);
+ }
wayBtn.AddListener(()=>
{
--
Gitblit v1.8.0