From 3b2a6bb9047cfce9f501593b3669a9c1af6c5df4 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期三, 05 十一月 2025 17:40:23 +0800
Subject: [PATCH] 130 战斗修改回合样式

---
 Main/System/Guild/GuildEmblemCell.cs |   24 +++++++++++++++++++++---
 1 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/Main/System/Guild/GuildEmblemCell.cs b/Main/System/Guild/GuildEmblemCell.cs
index 422c203..b10f7aa 100644
--- a/Main/System/Guild/GuildEmblemCell.cs
+++ b/Main/System/Guild/GuildEmblemCell.cs
@@ -8,10 +8,10 @@
 [RequireComponent(typeof(UIEffectPlayer))]
 public class GuildEmblemCell : MonoBehaviour
 {
-    [SerializeField] ImageEx emblemIcon;
+    [SerializeField] Image emblemIcon;
     [SerializeField] UIFrame frame;
     [SerializeField] UIEffectPlayer uiEffect;
-    [Header("瀛� F9E29F 鍖呰竟 683C00 瀛楀彿36 Y:-9")]
+    [Header("浠g爜宸插鐞� 瀛� F9E29F 鍖呰竟 683C00 瀛楀彿72 Y:-18")]
     [SerializeField] Text emblemNameText;   //瀛� F9E29F 鍖呰竟 683C00 瀛楀彿36 Y-9
 
     public void Display(int emblemID, string emblemName, float _scale = 1f)
@@ -19,6 +19,11 @@
         FamilyEmblemConfig config = FamilyEmblemConfig.Get(emblemID);
         if (config == null)
         {
+            return;
+        }
+        if (emblemIcon == null)
+        {
+            Debug.LogError("鍏細寰界珷鏈缃�");
             return;
         }
 
@@ -29,6 +34,7 @@
             if (effectID != 0)
             {
                 uiEffect.effectId = effectID;
+                uiEffect.isPlaySpineLoop = true;
                 uiEffect.Play();
             }
         }
@@ -46,7 +52,19 @@
             emblemIcon.SetNativeSize();
         }
         emblemIcon.rectTransform.localScale = new Vector3(_scale, _scale, _scale);
-        emblemNameText.text = emblemName;
+        if (emblemNameText != null)
+        {
+            emblemNameText.text = emblemName;
+            emblemNameText.fontSize = 72;
+            emblemNameText.rectTransform.localPosition = new Vector3(0, -18, 0);
+            emblemNameText.color = new Color32(255, 222, 159, 255);
+            var outline = emblemNameText.GetComponent<OutlineEx>();
+            if (outline != null)
+            {
+                emblemNameText.GetComponent<OutlineEx>().OutlineColor = new Color32(104, 60, 0, 255);
+            }
+        }
+        
     }
 
 }

--
Gitblit v1.8.0