同步南城去除小结算手牌

master
罗家炜 2025-05-07 17:07:15 +08:00
parent 0f4131e125
commit ff9c7eeb19
5 changed files with 17 additions and 2 deletions

View File

@ -656,6 +656,7 @@ function M:__FangziTip(tip, weight)
if index == tip.tip_num then
type.selectedIndex = 0
obj.onClick:Set(function()
--测试暂时取消过提示
-- local guo_msg = MsgWindow.new(self._root_view, "确定要点过吗?", MsgWindow.MsgMode.OkAndCancel)
-- guo_msg.onOk:Add(function()
_gamectr:SendAction(0)

View File

@ -655,6 +655,8 @@ function M:__FangziTip(tip, weight)
if index == tip.tip_num then
type.selectedIndex = 0
obj.onClick:Set(function()
--测试暂时取消过提示
-- local guo_msg = MsgWindow.new(self._root_view, "确定要点过吗?", MsgWindow.MsgMode.OkAndCancel)
-- guo_msg.onOk:Add(function()
_gamectr:SendAction(0)

View File

@ -654,6 +654,8 @@ function M:__FangziTip(tip, weight)
if index == tip.tip_num then
type.selectedIndex = 0
obj.onClick:Set(function()
--测试暂时取消过提示
-- local guo_msg = MsgWindow.new(self._root_view, "确定要点过吗?", MsgWindow.MsgMode.OkAndCancel)
-- guo_msg.onOk:Add(function()
_gamectr:SendAction(0)

View File

@ -182,13 +182,21 @@ function M:fillResult0(room, peopleNum, result)
local handCardItem = allCardsList:AddItemFromPool("ui://Main_Majiang/Comp_HandCard")
local handCardList = handCardItem:GetChild("list")
handCardList:SetVirtual()
--去除赢家手牌标志
local flag_remove = infoList.is_win
local num_add = 0
handCardList.itemRenderer = function(index, obj)
obj.icon = string.format("ui://Main_Majiang/%s202_%d", self:GetPrefix(), infoList.hand_card[index + 1])
if infoList.win_card == infoList.hand_card[index + 1] and flag_remove then
flag_remove = false
num_add = 1
end
obj.icon = string.format("ui://Main_Majiang/%s202_%d", self:GetPrefix(),
infoList.hand_card[index + num_add + 1])
if room.jing == infoList.hand_card[index + 1] then
obj:GetController('jing').selectedIndex = 1
end
end
handCardList.numItems = handInfoNum
handCardList.numItems = infoList.is_win and handInfoNum - 1 or handInfoNum
allCardsList.width = 172 * fzInfoNum + 60 + (handInfoNum - 1) * 56 + 36 * (fzInfoNum)
if infoList.seat == room.self_player.seat then

View File

@ -657,6 +657,8 @@ function M:__FangziTip(tip, weight)
if index == tip.tip_num then
type.selectedIndex = 0
obj.onClick:Set(function()
--测试暂时取消过提示
-- local guo_msg = MsgWindow.new(self._root_view, "确定要点过吗?", MsgWindow.MsgMode.OkAndCancel)
-- guo_msg.onOk:Add(function()
_gamectr:SendAction(0)