Merge pull request 'feature/chat_01' (#367) from feature/chat_01 into develop
Reviewed-on: https://git.pthub.vn/Unity/perfect-world-unity/pulls/367
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user