同步结算回到准备见面,结算房间大结算直接回到亲友圈

master
罗家炜 2025-05-16 17:56:01 +08:00
parent 81d75aa5ce
commit 6ecce87e79
1 changed files with 8 additions and 2 deletions

View File

@ -313,14 +313,18 @@ function M:EventInit()
self:UpdateRound(round)
self._state.selectedIndex = 1
local maxPeopleNum = _room.room_config.people_num
for i = 1, maxPeopleNum do
local list = _room.player_list
for i = 1, #list do
local cardList = data[string.format("seat_%d", i)]
pt(cardList)
local cardInfo = _player_card_info[self:GetPos(i)]
if cardList then
cardInfo:UpdateHandPoker(cardList)
end
local playerInfo = _player_info[self:GetPos(i)]
playerInfo:FillData(list[i])
playerInfo:Ready(false)
end
end)
@ -334,12 +338,14 @@ function M:EventInit()
remaincards)
self.result_view:InitBackReady(function()
self._state.selectedIndex = 0
self._ctr_action.selectedIndex = 1
end)
self.result_view:Show()
end)
_gamectr:AddEventListener(EXGameEvent.OnResult2, function(...)
local arg = { ... }
ViewManager.ChangeView(ViewManager.View_Family)
end)
_gamectr:AddEventListener(EXGameEvent.OnUpdateScore, function(...)