From b5cd48e4a3e2fc9b651aabfe82f83a1f88bdba37 Mon Sep 17 00:00:00 2001 From: fatiao <515948292@qq.com> Date: Wed, 4 Mar 2026 19:31:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=92=AD=E9=97=B4=E8=81=8A=E5=A4=A9?= =?UTF-8?q?=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Prefabs/UI/UILiveRoom/LiveRoomChatItem.prefab | 12 ++++++------ Assets/Lua/UI/UILiveRoom/UILiveRoomView.lua | 6 ++++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Assets/Content/Prefabs/UI/UILiveRoom/LiveRoomChatItem.prefab b/Assets/Content/Prefabs/UI/UILiveRoom/LiveRoomChatItem.prefab index b45b09c5f..9aeb2206c 100644 --- a/Assets/Content/Prefabs/UI/UILiveRoom/LiveRoomChatItem.prefab +++ b/Assets/Content/Prefabs/UI/UILiveRoom/LiveRoomChatItem.prefab @@ -20,7 +20,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 + m_IsActive: 1 --- !u!224 &3135625391757224365 RectTransform: m_ObjectHideFlags: 0 @@ -321,7 +321,7 @@ RectTransform: m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 278.44, y: 85} + m_SizeDelta: {x: 670, y: 85} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &5747305123726246474 CanvasRenderer: @@ -409,7 +409,7 @@ MonoBehaviour: m_fontSizeMax: 72 m_fontStyle: 0 m_HorizontalAlignment: 1 - m_VerticalAlignment: 512 + m_VerticalAlignment: 256 m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 @@ -437,7 +437,7 @@ MonoBehaviour: m_VertexBufferAutoSizeReduction: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 - m_margin: {x: 0, y: 0, z: 0, w: 0} + m_margin: {x: 0, y: 20, z: 0, w: 0} m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 m_hasFontAssetChanged: 0 @@ -843,10 +843,10 @@ MonoBehaviour: m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_fontSize: 34 + m_fontSize: 36 m_fontSizeBase: 36 m_fontWeight: 400 - m_enableAutoSizing: 1 + m_enableAutoSizing: 0 m_fontSizeMin: 18 m_fontSizeMax: 34 m_fontStyle: 0 diff --git a/Assets/Lua/UI/UILiveRoom/UILiveRoomView.lua b/Assets/Lua/UI/UILiveRoom/UILiveRoomView.lua index 33c25d3dd..01abe29c4 100644 --- a/Assets/Lua/UI/UILiveRoom/UILiveRoomView.lua +++ b/Assets/Lua/UI/UILiveRoom/UILiveRoomView.lua @@ -799,7 +799,7 @@ function UILiveRoomView:GenChatItem(loopview, index, room_id) content = "【系统】"..content else itemlua.rect1:SetActive(true) - name = string.format("%s.Lv%s", name, level) + name = string.format("%s.Lv%s", name, level) end itemlua.text_vip.text.text = vip or "0" @@ -811,7 +811,9 @@ function UILiveRoomView:GenChatItem(loopview, index, room_id) itemlua.text_name.rectTransform.sizeDelta = Vector2(c_sizename, 50) itemlua.rect1.rectTransform.sizeDelta = Vector2(112 + 20 + c_sizename, 85) local c_sizeother = 47 + 112 + 20 + c_sizename - + if data.player_info.uid == 1000 then + c_sizeother = 47 + end local c_sizeMax = 1020 - c_sizeother itemlua.text_chat.text.text = content local c_size = StringUtil.GetTMTextWidth(itemlua.text_chat.text, content)