2026.3.5 liveroom 抽卡新玩家不显示结算
This commit is contained in:
parent
60584794c6
commit
84b1713ff8
@ -102,6 +102,7 @@ function UILiveRoomView:AddEventListener()
|
||||
--准备 数据
|
||||
ManagerContainer.LuaEventMgr:RegisterUIEvent(self.uiData.name, UIEventNames.SC_LIVE_ROOM_GET_READY_NTF,
|
||||
function(data)
|
||||
self.card_player_list = {}
|
||||
self.answer_player_list = {}
|
||||
self.game_player_list = {}
|
||||
for k, v in pairs(data.ready_player_info_list) do
|
||||
@ -109,6 +110,7 @@ function UILiveRoomView:AddEventListener()
|
||||
uid2info[v.uid] = info
|
||||
self.answer_player_list[v.uid] = info
|
||||
self.game_player_list[v.uid] = info
|
||||
self.card_player_list[v.uid] = info
|
||||
end
|
||||
LogWarning("tzy_ready_ntf: " .. Inspect(data))
|
||||
|
||||
@ -177,10 +179,16 @@ function UILiveRoomView:AddEventListener()
|
||||
ManagerContainer.LuaEventMgr:RegisterUIEvent(self.uiData.name, UIEventNames.SC_LIVE_ROOM_RESULT_NTF,
|
||||
function(data)
|
||||
LogWarning("tzy_result_: " .. Inspect(data))
|
||||
|
||||
local itemlua = self:GetCurrPageLua()
|
||||
|
||||
if data.room_id == LIVEROOM_TYPE_CARD then
|
||||
self:Result_Card(itemlua, data)
|
||||
|
||||
if self.card_player_list~=nil and self.card_player_list[data.uid] ~= nil then
|
||||
self:Result_Card(itemlua, data)
|
||||
else
|
||||
self:Result_Card(itemlua, nil)
|
||||
end
|
||||
elseif data.room_id == LIVEROOM_TYPE_SELL then
|
||||
self:Result_Sell(itemlua, data)
|
||||
elseif data.room_id == LIVEROOM_TYPE_ANSWER then
|
||||
@ -1716,7 +1724,13 @@ end
|
||||
|
||||
--结算 抽卡
|
||||
function UILiveRoomView:Result_Card(itemlua, data)
|
||||
|
||||
|
||||
|
||||
local r_card = itemlua.resultPad.rect_card
|
||||
|
||||
if data ==nil then return end
|
||||
|
||||
r_card:SetActive(true)
|
||||
local title = r_card.text_title
|
||||
title.text.text = I18N.T("抽卡结果")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user