补杠同步点击修复

master
罗家炜 2025-04-09 10:58:18 +08:00
parent 744531d942
commit 0c32ad1d90
3 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ function M:__BuGang(cardInfo, callback)
list_card.numItems = #cardInfo
list_card.onClickItem:Set(function(context)
local item = context.data
local index = list:GetChildIndex(item)
local index = list_card:GetChildIndex(item)
callback(cardInfo[index + 1])
end)

View File

@ -57,7 +57,7 @@ function M:__BuGang(cardInfo, callback)
list_card.numItems = #cardInfo
list_card.onClickItem:Set(function(context)
local item = context.data
local index = list:GetChildIndex(item)
local index = list_card:GetChildIndex(item)
callback(cardInfo[index + 1])
end)

View File

@ -61,7 +61,7 @@ function M:__BuGang(cardInfo, callback)
list_card.numItems = #cardInfo
list_card.onClickItem:Set(function(context)
local item = context.data
local index = list:GetChildIndex(item)
local index = list_card:GetChildIndex(item)
callback(cardInfo[index + 1])
end)