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

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