直播间聊天
This commit is contained in:
parent
b5cd48e4a3
commit
bbefc2aa34
@ -42,7 +42,7 @@ RectTransform:
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: -17.399902, y: 162.5}
|
||||
m_SizeDelta: {x: 1020, y: 85}
|
||||
m_SizeDelta: {x: 1020, y: 60}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!222 &36790126361215641
|
||||
CanvasRenderer:
|
||||
@ -243,8 +243,8 @@ MonoBehaviour:
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 32
|
||||
m_fontSizeBase: 32
|
||||
m_fontSize: 30
|
||||
m_fontSizeBase: 30
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
@ -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: 670, y: 85}
|
||||
m_SizeDelta: {x: 670, y: 60}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &5747305123726246474
|
||||
CanvasRenderer:
|
||||
@ -373,7 +373,7 @@ MonoBehaviour:
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: 1111111111111111111111
|
||||
m_text: 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: ff9a33292f9ee2e4bb6b5beaa43eb505, type: 2}
|
||||
m_sharedMaterial: {fileID: 21889736603187208, guid: ff9a33292f9ee2e4bb6b5beaa43eb505,
|
||||
@ -401,8 +401,8 @@ MonoBehaviour:
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 36
|
||||
m_fontSizeBase: 36
|
||||
m_fontSize: 30
|
||||
m_fontSizeBase: 30
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
@ -413,7 +413,7 @@ MonoBehaviour:
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 85
|
||||
m_lineSpacing: 10
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
@ -437,7 +437,7 @@ MonoBehaviour:
|
||||
m_VertexBufferAutoSizeReduction: 0
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 0, y: 20, z: 0, w: 0}
|
||||
m_margin: {x: 0, y: 12, z: 0, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
@ -843,8 +843,8 @@ MonoBehaviour:
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 36
|
||||
m_fontSizeBase: 36
|
||||
m_fontSize: 30
|
||||
m_fontSizeBase: 30
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
@ -1021,7 +1021,7 @@ RectTransform:
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 276.23, y: 85}
|
||||
m_SizeDelta: {x: 276.23, y: 60}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!222 &3064287893353461676
|
||||
CanvasRenderer:
|
||||
|
||||
@ -49,7 +49,7 @@ TextureImporter:
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 45, y: 43, z: 45, w: 43}
|
||||
spriteBorder: {x: 68, y: 42, z: 68, w: 42}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
|
||||
@ -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=35>Lv%s</size>", name, level)
|
||||
--name = string.format("%s.<size=25>Lv%s</size>", name, level)
|
||||
end
|
||||
|
||||
itemlua.text_vip.text.text = vip or "0"
|
||||
@ -809,7 +809,7 @@ function UILiveRoomView:GenChatItem(loopview, index, room_id)
|
||||
local c_sizename = StringUtil.GetTMTextWidth(itemlua.text_name.text, name .. ":")
|
||||
|
||||
itemlua.text_name.rectTransform.sizeDelta = Vector2(c_sizename, 50)
|
||||
itemlua.rect1.rectTransform.sizeDelta = Vector2(112 + 20 + c_sizename, 85)
|
||||
itemlua.rect1.rectTransform.sizeDelta = Vector2(112 + 20 + c_sizename, 60)
|
||||
local c_sizeother = 47 + 112 + 20 + c_sizename
|
||||
if data.player_info.uid == 1000 then
|
||||
c_sizeother = 47
|
||||
@ -821,12 +821,12 @@ function UILiveRoomView:GenChatItem(loopview, index, room_id)
|
||||
|
||||
--LogWarning("c_sizeMax:" .. c_sizeMax .. " c_size:" .. c_size .. " linecount:" .. linecount)
|
||||
if linecount == 0 then
|
||||
itemlua.text_chat.rectTransform.sizeDelta = Vector2(c_size, 85)
|
||||
itemlua.rectTransform.sizeDelta = Vector2(c_sizeother + c_size, 85)
|
||||
itemlua.text_chat.rectTransform.sizeDelta = Vector2(c_size, 60)
|
||||
itemlua.rectTransform.sizeDelta = Vector2(c_sizeother + c_size, 60)
|
||||
end
|
||||
if linecount > 0 then
|
||||
itemlua.text_chat.rectTransform.sizeDelta = Vector2(c_sizeMax, 85 * (linecount + 1))
|
||||
itemlua.rectTransform.sizeDelta = Vector2(1020, 85 * (linecount + 1))
|
||||
itemlua.text_chat.rectTransform.sizeDelta = Vector2(c_sizeMax, 60*(linecount + 1))
|
||||
itemlua.rectTransform.sizeDelta = Vector2(1020, 60*(linecount+1)-20)
|
||||
end
|
||||
|
||||
return item
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user