From ebe6f848bb02da9718bac31ff3d581a856af0a3e Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期二, 31 三月 2026 11:51:38 +0800
Subject: [PATCH] 592 多语言适配 战斗飘字改程序字

---
 Main/System/Battle/UIComp/SkillTips.cs |   22 +++++++++++-----------
 Main/Config/Configs/SkillConfig.cs     |    9 +++------
 2 files changed, 14 insertions(+), 17 deletions(-)

diff --git a/Main/Config/Configs/SkillConfig.cs b/Main/Config/Configs/SkillConfig.cs
index 3ff8a32..6c8de52 100644
--- a/Main/Config/Configs/SkillConfig.cs
+++ b/Main/Config/Configs/SkillConfig.cs
@@ -1,6 +1,6 @@
 锘�//--------------------------------------------------------
 //    [Author]:           YYL
-//    [  Date ]:           2026骞�2鏈�7鏃�
+//    [  Date ]:           Tuesday, March 31, 2026
 //--------------------------------------------------------
 
 using System.Collections.Generic;
@@ -37,7 +37,6 @@
 	public int FightPower;
 	public string IconName;
 	public string BuffIconName;
-	public string SkillTipsName;
 	public int Scattering;
 	public int ClientTriggerTiming;
 
@@ -105,11 +104,9 @@
 
 			BuffIconName = tables[20];
 
-			SkillTipsName = tables[21];
+			int.TryParse(tables[21],out Scattering); 
 
-			int.TryParse(tables[22],out Scattering); 
-
-			int.TryParse(tables[23],out ClientTriggerTiming); 
+			int.TryParse(tables[22],out ClientTriggerTiming); 
         }
         catch (Exception exception)
         {
diff --git a/Main/System/Battle/UIComp/SkillTips.cs b/Main/System/Battle/UIComp/SkillTips.cs
index 429bc1c..e0117b6 100644
--- a/Main/System/Battle/UIComp/SkillTips.cs
+++ b/Main/System/Battle/UIComp/SkillTips.cs
@@ -12,10 +12,10 @@
 
     public const float beginingX = 400f;
 
-    [SerializeField]public Image imgIcon;
+    [SerializeField] public Image imgIcon;
 
-    [SerializeField]public Image imgSkillName;
-
+    [SerializeField] public GradientText txtSkillName;
+    [SerializeField] public CanvasGroup canvasGroup;
     [SerializeField] public Image imageBg;
 
     private Tween tween1;
@@ -35,12 +35,12 @@
         KillAllTweens();
 
         imgIcon.sprite = UILoader.LoadSprite("HeroHead", teamHero.skinConfig.SquareIcon);
-        imgSkillName.sprite = UILoader.LoadSprite("SkillNameIcon", skillConfig.SkillTipsName);
-        imgSkillName.SetNativeSize();
+        txtSkillName.text = skillConfig.SkillName;
+
         // 淇濊瘉寮�濮嬫椂鎵�鏈夊浘鐗囦负鍙锛坅lpha=1锛�
         if (imageBg != null) { var c = imageBg.color; c.a = 1f; imageBg.color = c; }
         if (imgIcon != null) { var c = imgIcon.color; c.a = 1f; imgIcon.color = c; }
-        if (imgSkillName != null) { var c = imgSkillName.color; c.a = 1f; imgSkillName.color = c; }
+        if (canvasGroup != null) { var c = canvasGroup.alpha; c = 1f; canvasGroup.alpha = c; }
 
         gameObject.SetActive(true);
         float posY = transform.localPosition.y;
@@ -59,8 +59,8 @@
                     seq.Join(imageBg.DOFade(0f, fadeDuration).SetEase(Ease.InQuad));
                 if (imgIcon != null)
                     seq.Join(imgIcon.DOFade(0f, fadeDuration).SetEase(Ease.InQuad));
-                if (imgSkillName != null)
-                    seq.Join(imgSkillName.DOFade(0f, fadeDuration).SetEase(Ease.InQuad));
+                if (canvasGroup != null)
+                    seq.Join(canvasGroup.DOFade(0f, fadeDuration).SetEase(Ease.InQuad));
 
                 seq.OnComplete(() =>
                 {
@@ -68,7 +68,7 @@
                     // 鎭㈠鍥剧墖 alpha锛屼繚璇佷笅娆℃樉绀烘椂鍙
                     if (imageBg != null) { var cc = imageBg.color; cc.a = 1f; imageBg.color = cc; }
                     if (imgIcon != null) { var cc = imgIcon.color; cc.a = 1f; imgIcon.color = cc; }
-                    if (imgSkillName != null) { var cc = imgSkillName.color; cc.a = 1f; imgSkillName.color = cc; }
+                    if (canvasGroup != null) { var cc = canvasGroup.alpha; cc = 1f; canvasGroup.alpha = cc; }
 
                     transform.localPosition = isRed ? new Vector3(-beginingX, posY, 0f) : new Vector3(beginingX, posY, 0f);
                     gameObject.SetActive(false);
@@ -81,7 +81,7 @@
         });
         battleField.battleTweenMgr.OnPlayTween(tween1);
     }
-    
+
     public void KillAllTweens()
     {
         if (tween1 != null)
@@ -103,7 +103,7 @@
         // 琚己鍒跺仠姝㈡椂涔熼渶瑕佹仮澶� alpha
         if (imageBg != null) { var cc = imageBg.color; cc.a = 1f; imageBg.color = cc; }
         if (imgIcon != null) { var cc = imgIcon.color; cc.a = 1f; imgIcon.color = cc; }
-        if (imgSkillName != null) { var cc = imgSkillName.color; cc.a = 1f; imgSkillName.color = cc; }
+        if (canvasGroup != null) { var cc = canvasGroup.alpha; cc = 1f; canvasGroup.alpha = cc; }
     }
 
 }

--
Gitblit v1.8.0