弃牌区调速

master
罗家炜 2025-07-07 16:21:13 +08:00
parent 7757e65f1f
commit a7500dc706
4 changed files with 6 additions and 11 deletions

View File

@ -166,16 +166,14 @@ function M:InitView(url)
local btn_more_group = self._view:GetChild("btn_more_group") local btn_more_group = self._view:GetChild("btn_more_group")
btn_more_group.onClick:Set(function() btn_more_group.onClick:Set(function()
--self.groupMainView._view.visible = true --self.groupMainView._view.visible = true
ViewUtil.ShowModalWait(self._root_view, "请稍等,获取牌友圈中...") ViewUtil.ShowModalWait(self._root_view, "请稍等,获取牌友圈中...")
local enterGroupCallBackFunc = function(code) local enterGroupCallBackFunc = function(code)
ViewUtil.CloseModalWait() ViewUtil.CloseModalWait()
if code == 0 then if code == 0 then
self.groupMainView._view.visible = true self.groupMainView._view.visible = true
else else
ViewUtil.ErrorTip(10000000, "获取牌友圈失败,请检查网络设置!") ViewUtil.ErrorTip(code, "获取牌友圈失败,请检查网络设置!")
Application.Quit() Application.Quit()
printlog("获取圈子数据失败=======>>>>") printlog("获取圈子数据失败=======>>>>")
end end

View File

@ -292,7 +292,7 @@ function M:Show(fg_id, callback)
end end
else else
if callback then if callback then
callback(-1) callback(res.ReturnCode)
end end
end end
end) end)

View File

@ -262,9 +262,6 @@ function M:OnEventQIPAI(evt_data)
local card = evt_data["card"] local card = evt_data["card"]
local p = self._room:GetPlayerBySeat(seat) local p = self._room:GetPlayerBySeat(seat)
self._cacheEvent:Enqueue(function() self._cacheEvent:Enqueue(function()
if self._callback_popEvent then
self._callback_popEvent(true)
end
local _room = self._room local _room = self._room
if (not p.outcard_list) then p.outcard_list = {} end if (not p.outcard_list) then p.outcard_list = {} end
p.outcard_list[#p.outcard_list + 1] = card p.outcard_list[#p.outcard_list + 1] = card

View File

@ -310,7 +310,7 @@ function M:EventInit()
self:PlaySound(p.self_user.sex, 'F_' .. card) self:PlaySound(p.self_user.sex, 'F_' .. card)
coroutine.start( coroutine.start(
function() function()
coroutine.wait(0.56) coroutine.wait(0.16)
self._popEvent = true self._popEvent = true
end end
) )
@ -497,12 +497,12 @@ function M:EventInit()
local card = arg[2] local card = arg[2]
local p = _room:GetPlayerBySeat(seat) local p = _room:GetPlayerBySeat(seat)
local info = self._player_card_info[self:GetPos(seat)] local info = self._player_card_info[self:GetPos(seat)]
info:PlayingOutCardAnima(card, self:GetPos(seat))
coroutine.start( coroutine.start(
function() function()
coroutine.wait(0.2) coroutine.wait(0.5)
-- self._popEvent = true self._popEvent = true
-- info:ClearOutCard() -- info:ClearOutCard()
info:PlayingOutCardAnima(card, self:GetPos(seat))
p.DiceCard = 0 p.DiceCard = 0
info:UpdateQiPai(p.outcard_list, false, seat) info:UpdateQiPai(p.outcard_list, false, seat)
end end