跑得快结算同步

master
罗家炜 2025-04-29 13:50:07 +08:00
parent 259a6e611b
commit 01d428b954
5 changed files with 1100 additions and 1104 deletions

View File

@ -864,18 +864,6 @@ function M:EventInit()
self.destory_win = coroutine.start(function()
-- -- print("11111111111111")
-- coroutine.wait(1)
if remaincards then
-- body
card_info._view_Out:RemoveChildrenToPool()
local newremaincards = _gamectr:ChangeCodeByFrom(remaincards, true)
table.sort(remaincards)
for i = #newremaincards, 1, -1 do
coroutine.wait(0.5)
local child_card = card_info._view_Out:AddItemFromPool()
card_info:FillPoker(child_card, "", newremaincards[i])
end
end
coroutine.wait(1)
if self._room.self_player.seat == win_seat then
local sprint_seat_list = self:GetSpringSeats(info)
@ -941,6 +929,14 @@ function M:EventInit()
if player.seat ~= self._room.self_player.seat then
card_info:UpdateHandPoker(player.cards, false, true)
card_info:SetRemainCardNumber(false)
card_info._view_Out:RemoveChildrenToPool()
card_info.ctr_outpoker.selectedIndex = 1
for i = 1, #player.handCards do
local child_card = card_info._view_Out:AddItemFromPool()
card_info:FillPoker(child_card, "", player.handCards[i])
coroutine.wait(0.3)
end
end
end
self:ChangeBgmMusic(1)

View File

@ -17,7 +17,7 @@ function RunFast_ResultView.new(blur_view, data, roomid, over, win_seat, dissolv
self._close_zone = false
--self._blur_view = blur_view
self._gamectr = ControllerManager.GetController(GameController)
self:init("ui://Extend_Poker_RunFastNew/clearing", data, roomid, over, win_seat, dissolve, remaincards)
self:init("ui://Extend_Poker_RunFastNew/clearing_new", data, roomid, over, win_seat, dissolve, remaincards)
return self
end
@ -32,8 +32,8 @@ function M:init(url, data, roomid, over, win_seat, dissolve, remaincards)
_gamectr:ConformToNextGame()
end)
self._view:GetController('btn_closeRound').onClick:Set(function()
ViewManager.ChangeView(ViewManager.View_Family)
self._view:GetChild('btn_closeRound').onClick:Set(function()
ViewManager.ChangeView(ViewManager.View_Family)
end)
end