From 2636bf475c8b4b03ee869a5db2f5fdd891ed9f97 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期四, 04 十二月 2025 09:19:35 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 Main/System/PhantasmPavilion/PhantasmPavilionManager.cs |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/Main/System/PhantasmPavilion/PhantasmPavilionManager.cs b/Main/System/PhantasmPavilion/PhantasmPavilionManager.cs
index 68a857f..31e4118 100644
--- a/Main/System/PhantasmPavilion/PhantasmPavilionManager.cs
+++ b/Main/System/PhantasmPavilion/PhantasmPavilionManager.cs
@@ -289,6 +289,33 @@
         }
     }
 
+    public void ShowChatBox(ImageEx imgFace, UIFrame uiFrame, int resourceType, string resourceValue)
+    {
+        switch (resourceType)
+        {
+            // 闈欐�佸浘
+            case 1:
+                imgFace.enabled = true;
+                uiFrame.enabled = false;
+                if (!IconConfig.HasKey(resourceValue))
+                    return;
+                imgFace.SetSprite(resourceValue);
+                break;
+            // 搴忓垪甯�
+            case 3:
+                imgFace.enabled = true;
+                uiFrame.enabled = true;
+                imgFace.sprite = null;
+                imgFace.overrideSprite = null;
+
+                if (!UIFrameMgr.Inst.ContainsDynamicImage(resourceValue))
+                    break;
+                uiFrame.ResetFrame(resourceValue);
+                uiFrame.enabled = true;
+                break;
+        }
+    }
+
     public bool TryGetInfo(PhantasmPavilionType type, int id, out PhantasmPavilionData info)
     {
         info = null;

--
Gitblit v1.8.0