直播间聊天选项

This commit is contained in:
fatiao 2026-03-04 19:31:47 +08:00
parent 5b0b623cb9
commit b5cd48e4a3
2 changed files with 10 additions and 8 deletions

View File

@ -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

View File

@ -799,7 +799,7 @@ function UILiveRoomView:GenChatItem(loopview, index, room_id)
content = "<color=red>【系统】</color>"..content
else
itemlua.rect1:SetActive(true)
name = string.format("%s.<size=30>Lv%s</size>", name, level)
name = string.format("%s.<size=35>Lv%s</size>", 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)