diff --git a/Assets/Lua/UI/UILiveRoom/UILiveRoomView.lua b/Assets/Lua/UI/UILiveRoom/UILiveRoomView.lua index 28f0296f1..33c25d3dd 100644 --- a/Assets/Lua/UI/UILiveRoom/UILiveRoomView.lua +++ b/Assets/Lua/UI/UILiveRoom/UILiveRoomView.lua @@ -788,13 +788,19 @@ function UILiveRoomView:GenChatItem(loopview, index, room_id) local data = chat_Records[room_id][id] if not data then return nil end - local name = tostring(data.player_info.nickname) local vip = tostring(data.player_info.vip_level or 0) if name == "" then name = "穿越者" end local level = tostring(data.player_info.level) local content = data.chat_content + if data.player_info.uid == 1000 then + itemlua.rect1:SetActive(false) + content = "【系统】"..content + else + itemlua.rect1:SetActive(true) + name = string.format("%s.Lv%s", name, level) + end itemlua.text_vip.text.text = vip or "0" itemlua.text_name.text.text = name .. ":" --.. ".Lv" .. level .. ":"