From 212f6ca91ce99e03bf3b7b3484697f16f20225dc Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期二, 07 四月 2026 20:12:46 +0800
Subject: [PATCH] 592 多语言适配 改程序字
---
Main/System/HeroUI/HeroCollectionWin.cs | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/Main/System/HeroUI/HeroCollectionWin.cs b/Main/System/HeroUI/HeroCollectionWin.cs
index 50bd021..7257a55 100644
--- a/Main/System/HeroUI/HeroCollectionWin.cs
+++ b/Main/System/HeroUI/HeroCollectionWin.cs
@@ -169,6 +169,20 @@
{
var _cell = cell.GetComponent<Image>();
_cell.SetSprite("herocoltitle" + cell.index);
+
+ var title = cell.GetComponentInChildren<Text>();
+ title.text = RichTextMsgReplaceConfig.GetRichReplace("HeroQuality", cell.index);
+
+ var outlineEx = title.GetComponent<OutlineEx>();
+ outlineEx.OutlineColor = cell.index switch
+ {
+ 1 => new Color32(0x17, 0x25, 0x43, 255),
+ 2 => new Color32(0x2a, 0x0f, 0x30, 255),
+ 3 => new Color32(0x4a, 0x2f, 0x00, 255),
+ 4 => new Color32(0x45, 0x18, 0x00, 255),
+ 5 => new Color32(0x51, 0x00, 0x00, 255),
+ _ => Color.white,
+ };
}
else if (type == ScrollerDataType.Normal)
{
--
Gitblit v1.8.0