From 5b2feeb39f6907b30c558b452a81127255348a62 Mon Sep 17 00:00:00 2001 From: CuongNV <> Date: Thu, 16 Apr 2026 14:40:39 +0700 Subject: [PATCH 1/3] update log --- Assets/PerfectWorld/Scripts/NPC/NPCVisual.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/PerfectWorld/Scripts/NPC/NPCVisual.cs b/Assets/PerfectWorld/Scripts/NPC/NPCVisual.cs index eca6c7a647..afb8e2bd0c 100644 --- a/Assets/PerfectWorld/Scripts/NPC/NPCVisual.cs +++ b/Assets/PerfectWorld/Scripts/NPC/NPCVisual.cs @@ -181,7 +181,7 @@ public class NPCVisual : MonoBehaviour var currentBounds = new Bounds(worldCenter, worldSize); if (debugNamePlateBounds) { - Debug.Log($"[Cuong] [NPCVisual] smr={renderer.name} localCenter={meshBounds.center} localSize={meshBounds.size} worldCenter={worldCenter} worldSize={worldSize} worldMaxY={currentBounds.max.y}"); + BMLogger.Log($"[Cuong] [NPCVisual] smr={renderer.name} localCenter={meshBounds.center} localSize={meshBounds.size} worldCenter={worldCenter} worldSize={worldSize} worldMaxY={currentBounds.max.y}"); } if (!hasAnySkinnedMesh) From 6f81209da673ecfc7731e52ada6541a4253bb16f Mon Sep 17 00:00:00 2001 From: CuongNV <> Date: Mon, 20 Apr 2026 11:40:43 +0700 Subject: [PATCH 2/3] resize mini chat --- .../ChatSystem/MiniChat/prefab_MiniChatContentsText.prefab | 6 +++--- Assets/Prefabs/ChatSystem/MiniChat/prefab_MiniChatUI.prefab | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/Prefabs/ChatSystem/MiniChat/prefab_MiniChatContentsText.prefab b/Assets/Prefabs/ChatSystem/MiniChat/prefab_MiniChatContentsText.prefab index 1a0d3159d4..a0ea2466b1 100644 --- a/Assets/Prefabs/ChatSystem/MiniChat/prefab_MiniChatContentsText.prefab +++ b/Assets/Prefabs/ChatSystem/MiniChat/prefab_MiniChatContentsText.prefab @@ -112,7 +112,7 @@ RectTransform: m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} m_AnchoredPosition: {x: 104, y: -5} - m_SizeDelta: {x: 290, y: 0} + m_SizeDelta: {x: 600, y: 0} m_Pivot: {x: 0, y: 1} --- !u!222 &7228077960814023056 CanvasRenderer: @@ -252,9 +252,9 @@ MonoBehaviour: m_IgnoreLayout: 0 m_MinWidth: 290 m_MinHeight: -1 - m_PreferredWidth: -1 + m_PreferredWidth: 600 m_PreferredHeight: -1 - m_FlexibleWidth: 603.72 + m_FlexibleWidth: 600 m_FlexibleHeight: -1 m_LayoutPriority: 1 --- !u!1 &6627717456258223658 diff --git a/Assets/Prefabs/ChatSystem/MiniChat/prefab_MiniChatUI.prefab b/Assets/Prefabs/ChatSystem/MiniChat/prefab_MiniChatUI.prefab index 53715a1e13..3ed9074659 100644 --- a/Assets/Prefabs/ChatSystem/MiniChat/prefab_MiniChatUI.prefab +++ b/Assets/Prefabs/ChatSystem/MiniChat/prefab_MiniChatUI.prefab @@ -371,8 +371,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 0} - m_AnchoredPosition: {x: -175.64499, y: 151.8} - m_SizeDelta: {x: -1148.71, y: 227} + m_AnchoredPosition: {x: -157.2, y: 151.8} + m_SizeDelta: {x: -1235.6001, y: 227} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &5093099212117339368 CanvasRenderer: From d30a3d5e99e23849b1b1641ab83a7179b159859f Mon Sep 17 00:00:00 2001 From: CuongNV <> Date: Mon, 20 Apr 2026 14:37:28 +0700 Subject: [PATCH 3/3] update code hide popup before --- Assets/PerfectWorld/Scripts/Chat/UI/MiniChatUI.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Assets/PerfectWorld/Scripts/Chat/UI/MiniChatUI.cs b/Assets/PerfectWorld/Scripts/Chat/UI/MiniChatUI.cs index 271fd142a9..101a4f021e 100644 --- a/Assets/PerfectWorld/Scripts/Chat/UI/MiniChatUI.cs +++ b/Assets/PerfectWorld/Scripts/Chat/UI/MiniChatUI.cs @@ -14,6 +14,8 @@ namespace BrewMonster.Scripts.ChatUI { [Header("MiniChat")] public Button onOpenChatPanelButton; + [Tooltip("Dialog name registered in CECUIManager/CECGameUIMan for full chat panel.")] + [SerializeField] string chatDialogName = "Win_Chat"; [Tooltip("Parent cho các dòng tin xem trước (nên có VerticalLayoutGroup).")] public RectTransform miniChatContent; [Tooltip("ScrollRect bọc mini chat (null = không cuộn). Nếu để trống, Awake sẽ thử GetComponentInParent từ miniChatContent.")] @@ -78,6 +80,10 @@ namespace BrewMonster.Scripts.ChatUI void OnOpenChatPanelButtonClicked() { + // Open through CECUIManager stack so current top UI/popup is hidden consistently. + if (!string.IsNullOrEmpty(chatDialogName) && CECUIManager.Instance != null) + CECUIManager.Instance.ShowUI(chatDialogName); + EventBus.Publish(new OpenChatPanelRequestedEvent()); }