From af8dafd75f9a6fae017734d58fc7b34d6bdcd0f4 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 25 八月 2025 22:03:51 +0800
Subject: [PATCH] 0312 开启限帧
---
Main/System/HeroUI/HeroConnectionCell.cs | 45 +++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 43 insertions(+), 2 deletions(-)
diff --git a/Main/System/HeroUI/HeroConnectionCell.cs b/Main/System/HeroUI/HeroConnectionCell.cs
index 7cdeae4..a5a2102 100644
--- a/Main/System/HeroUI/HeroConnectionCell.cs
+++ b/Main/System/HeroUI/HeroConnectionCell.cs
@@ -7,9 +7,50 @@
[SerializeField] HeroConnectionHeadCell[] heros;
[SerializeField] Text connAttrText;
- public void Display()
+ /// <summary>
+ /// 缇佺粖鍥剧墖灞曠ず
+ /// </summary>
+ /// <param name="fetterID"></param>
+ /// <param name="showStr">灞炴�ф枃瀛楁帓鐗�</param>
+ /// <param name="showCollect">鏄惁鎸夋敹闆嗘樉绀虹疆鐏扮姸鎬�</param>
+ /// <param name="guid">鍒囨崲鐨偆鐢�</param>
+ public void Display(int fetterID, string showStr = "", bool showCollect = false, string guid = "")
{
-
+ HeroFetterConfig heroFetterConfig = HeroFetterConfig.Get(fetterID);
+
+ int fromHeroID = 0;
+ int _skinID = 0;
+ if (guid != "")
+ {
+ fromHeroID = HeroManager.Instance.GetHero(guid).heroId;
+ _skinID = HeroManager.Instance.GetHero(guid).SkinID;
+ }
+ for (int i = 0; i < heros.Length; i++)
+ {
+ if (i < heroFetterConfig.HeroIDList.Length)
+ {
+ heros[i].SetActive(true);
+ heros[i].Display(heroFetterConfig.HeroIDList[i], i, showCollect,
+ fromHeroID == heroFetterConfig.HeroIDList[i] ? _skinID : 0);
+ }
+ else
+ {
+ heros[i].SetActive(false);
+ }
+ }
+ string attrStr = "";
+ for (int i = 0; i < heroFetterConfig.AttrIDList.Length; i++)
+ {
+ attrStr += PlayerPropertyConfig.GetFullDescription(heroFetterConfig.AttrIDList[i], heroFetterConfig.AttrValueList[i]) + " ";
+ }
+ if (string.IsNullOrEmpty(showStr))
+ {
+ connAttrText.text = Language.Get("L1100", heroFetterConfig.FetterName, UIHelper.AppendColor(TextColType.lightYellow, attrStr));
+ }
+ else
+ {
+ connAttrText.text = showStr + attrStr;
+ }
}
}
--
Gitblit v1.8.0