master
DESKTOP-7R8JEQQ\k 2025-07-10 03:37:09 +08:00
parent 15b1b53e3b
commit 88dbbabbd6
1 changed files with 5 additions and 5 deletions

View File

@ -685,27 +685,27 @@ function M:__FangziTip(tip, weight)
index = index + 1 index = index + 1
if _tlist[index].type == FZType.HU then if _tlist[index].type == FZType.HU then
type.selectedIndex = 4 type.selectedIndex = 4
obj:GetChild('btn_Card1').icon = string.format('ui://Main_Majiang/202_%d', _tlist[index].card) obj:GetChild('btn_Card1').icon = string.format('ui://Main_Majiang/b202_%d', _tlist[index].card)
elseif _tlist[index].type == FZType.Chi then elseif _tlist[index].type == FZType.Chi then
type.selectedIndex = FZType.Chi type.selectedIndex = FZType.Chi
for i = 1, 3 do for i = 1, 3 do
obj:GetChild(string.format('btn_Card%d', i)).icon = string.format('ui://Main_Majiang/202_%d', obj:GetChild(string.format('btn_Card%d', i)).icon = string.format('ui://Main_Majiang/b202_%d',
_tlist[index].opcard[i]) _tlist[index].opcard[i])
end end
elseif _tlist[index].type == FZType.Peng then elseif _tlist[index].type == FZType.Peng then
type.selectedIndex = FZType.Peng type.selectedIndex = FZType.Peng
for i = 1, 3 do for i = 1, 3 do
obj:GetChild(string.format('btn_Card%d', i)).icon = string.format('ui://Main_Majiang/202_%d', obj:GetChild(string.format('btn_Card%d', i)).icon = string.format('ui://Main_Majiang/b202_%d',
_tlist[index].card) _tlist[index].card)
end end
else else
for i = 1, 4 do for i = 1, 4 do
obj:GetChild(string.format('btn_Card%d', i)).icon = string.format('ui://Main_Majiang/202_%d', obj:GetChild(string.format('btn_Card%d', i)).icon = string.format('ui://Main_Majiang/b202_%d',
_tlist[index].card) _tlist[index].card)
end end
type.selectedIndex = FZType.Gang type.selectedIndex = FZType.Gang
if _tlist[index].type == FZType.Gang_An then if _tlist[index].type == FZType.Gang_An then
obj:GetChild('btn_Card4').icon = 'ui://Main_Majiang/202_00' obj:GetChild('btn_Card4').icon = 'ui://Main_Majiang/b202_00'
end end
end end
obj.onClick:Set(function() obj.onClick:Set(function()