From 973edc44a04dceb8b48a32ca912e6167f86189d4 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期一, 25 八月 2025 17:38:02 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts
---
Main/System/HeroUI/GiftBaseCell.cs | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/Main/System/HeroUI/GiftBaseCell.cs b/Main/System/HeroUI/GiftBaseCell.cs
index afd9460..5ab0faf 100644
--- a/Main/System/HeroUI/GiftBaseCell.cs
+++ b/Main/System/HeroUI/GiftBaseCell.cs
@@ -45,6 +45,19 @@
}
}
+ OutlineEx m_TextOutline;
+ OutlineEx textOutline
+ {
+ get
+ {
+ if (m_TextOutline == null)
+ {
+ m_TextOutline = this.transform.GetComponent<OutlineEx>("Container_GiftCell/name");
+ }
+ return m_TextOutline;
+ }
+ }
+
Transform m_LvRect;
Transform lvRect
{
@@ -84,6 +97,8 @@
}
}
+
+
void Awake()
{
LoadPrefab();
@@ -99,10 +114,9 @@
qualityBG.SetSprite("GiftQualityBG" + config.Quality);
giftBtn.AddListener(onclick);
giftName.text = config.Name;
+ giftName.color = GetColor(config.Quality);
+ textOutline.OutlineColor = GetOutlineColor(config.Quality);
lvText.text = lv.ToString();
- lvText.color = GetColor(1);
- Outline textOutline = lvText.GetComponent<Outline>();
- textOutline.effectColor = GetOutlineColor(config.Quality);
lvRect.SetActive(lv > 0);
stateImg.SetActive(showState > 0);
stateImg.SetSprite("GiftState" + showState);
--
Gitblit v1.8.0