支持系统消息
This commit is contained in:
parent
2061dd3c33
commit
5b0b623cb9
@ -788,13 +788,19 @@ function UILiveRoomView:GenChatItem(loopview, index, room_id)
|
|||||||
local data = chat_Records[room_id][id]
|
local data = chat_Records[room_id][id]
|
||||||
if not data then return nil end
|
if not data then return nil end
|
||||||
|
|
||||||
|
|
||||||
local name = tostring(data.player_info.nickname)
|
local name = tostring(data.player_info.nickname)
|
||||||
local vip = tostring(data.player_info.vip_level or 0)
|
local vip = tostring(data.player_info.vip_level or 0)
|
||||||
if name == "" then name = "穿越者" end
|
if name == "" then name = "穿越者" end
|
||||||
local level = tostring(data.player_info.level)
|
local level = tostring(data.player_info.level)
|
||||||
local content = data.chat_content
|
local content = data.chat_content
|
||||||
|
|
||||||
|
if data.player_info.uid == 1000 then
|
||||||
|
itemlua.rect1:SetActive(false)
|
||||||
|
content = "<color=red>【系统】</color>"..content
|
||||||
|
else
|
||||||
|
itemlua.rect1:SetActive(true)
|
||||||
|
name = string.format("%s.<size=30>Lv%s</size>", name, level)
|
||||||
|
end
|
||||||
|
|
||||||
itemlua.text_vip.text.text = vip or "0"
|
itemlua.text_vip.text.text = vip or "0"
|
||||||
itemlua.text_name.text.text = name .. ":" --.. ".Lv" .. level .. ":"
|
itemlua.text_name.text.text = name .. ":" --.. ".Lv" .. level .. ":"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user