From 5482de6463e2deebee35dc27ea34565f2f0d4585 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 11 九月 2025 17:06:49 +0800
Subject: [PATCH] 0312 同步图集,官职
---
Main/System/OfficialRank/OfficialTitleCell.cs | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/Main/System/OfficialRank/OfficialTitleCell.cs b/Main/System/OfficialRank/OfficialTitleCell.cs
index cd3c3d2..3ff2f27 100644
--- a/Main/System/OfficialRank/OfficialTitleCell.cs
+++ b/Main/System/OfficialRank/OfficialTitleCell.cs
@@ -14,14 +14,14 @@
}
- Transform m_OfficialRankObj;
- private Transform officialRankObj
+ Image m_OfficialRankObj;
+ private Image officialRankObj
{
get
{
if (m_OfficialRankObj == null)
{
- m_OfficialRankObj = this.GetComponent<Transform>("OfficialTitleCell/offcialRank");
+ m_OfficialRankObj = this.GetComponent<Image>("OfficialTitleCell/offcialRank");
}
return m_OfficialRankObj;
}
@@ -97,8 +97,12 @@
if (titleID == 0)
{
officialRankObj.SetActive(true);
+ var config = RealmConfig.Get(offcialRank);
+ officialRankObj.SetSprite("OfficialRank" + offcialRank);
+
titleUIFrame.SetActive(false);
- officialRankText.text = RealmConfig.Get(offcialRank).Name;
+ officialRankText.text = config.Name;
+ officialRankText.color = OfficialRankManager.Instance.GetOfficialRankColor(config.Quality);
}
else
{
--
Gitblit v1.8.0