From 6ecce87e796d277bf152168842d5cb3354f81cc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=AE=B6=E7=82=9C?= <2029049582@qq.com> Date: Fri, 16 May 2025 17:56:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E7=BB=93=E7=AE=97=E5=9B=9E?= =?UTF-8?q?=E5=88=B0=E5=87=86=E5=A4=87=E8=A7=81=E9=9D=A2=EF=BC=8C=E7=BB=93?= =?UTF-8?q?=E7=AE=97=E6=88=BF=E9=97=B4=E5=A4=A7=E7=BB=93=E7=AE=97=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E5=9B=9E=E5=88=B0=E4=BA=B2=E5=8F=8B=E5=9C=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../extend_project/extend/poker2/suoha/ExMainView.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lua_probject/extend_project/extend/poker2/suoha/ExMainView.lua b/lua_probject/extend_project/extend/poker2/suoha/ExMainView.lua index 6e58a5bf..891cab47 100644 --- a/lua_probject/extend_project/extend/poker2/suoha/ExMainView.lua +++ b/lua_probject/extend_project/extend/poker2/suoha/ExMainView.lua @@ -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(...)