胡牌成功
parent
c8b483380b
commit
5b5148af98
|
|
@ -244,11 +244,17 @@ function M:EventInit()
|
||||||
local win_card = arg[3]
|
local win_card = arg[3]
|
||||||
local cards = arg[4]
|
local cards = arg[4]
|
||||||
local win_list = arg[5]
|
local win_list = arg[5]
|
||||||
|
print("==============================================ZPHuCard1", win_seat, lose_seat, win_card, win_list)
|
||||||
local index = self:GetPos(win_seat)
|
local index = self:GetPos(win_seat)
|
||||||
|
print("==============================================ZPHuCard2")
|
||||||
local info = self._player_card_info[index]
|
local info = self._player_card_info[index]
|
||||||
|
print("==============================================ZPHuCard3")
|
||||||
self:RemoveCursor()
|
self:RemoveCursor()
|
||||||
|
print("==============================================ZPHuCard4")
|
||||||
info:UpdateHandCard(true, true)
|
info:UpdateHandCard(true, true)
|
||||||
|
|
||||||
|
print("==============================================ZPHuCard5")
|
||||||
|
|
||||||
local obj_win_card = UIPackage.CreateObjectFromURL("ui://Main_Majiang/Btn_Card")
|
local obj_win_card = UIPackage.CreateObjectFromURL("ui://Main_Majiang/Btn_Card")
|
||||||
obj_win_card.icon = "ui://Main_Majiang/202_" .. win_card
|
obj_win_card.icon = "ui://Main_Majiang/202_" .. win_card
|
||||||
obj_win_card:GetController("bg").selectedIndex = 1
|
obj_win_card:GetController("bg").selectedIndex = 1
|
||||||
|
|
|
||||||
|
|
@ -117,10 +117,10 @@ function M:GetPrefix()
|
||||||
end
|
end
|
||||||
|
|
||||||
function M:fillCard(obj, pos_str, card, use3d)
|
function M:fillCard(obj, pos_str, card, use3d)
|
||||||
print("=======================================jing", card, DataManager.CurrenRoom.jing)
|
-- print("=======================================jing", card, DataManager.CurrenRoom.jing)
|
||||||
if DataManager.CurrenRoom.jing and card == DataManager.CurrenRoom.jing then
|
-- if DataManager.CurrenRoom.jing and card == DataManager.CurrenRoom.jing then
|
||||||
obj:GetController('jing').selectedIndex = 1
|
-- obj:GetController('jing').selectedIndex = 1
|
||||||
end
|
-- end
|
||||||
if self._current_card_type == 2 and (use3d == nil or use3d == true) then
|
if self._current_card_type == 2 and (use3d == nil or use3d == true) then
|
||||||
obj.icon = 'ui://MajiangCard3d/' .. 'b' .. pos_str .. card
|
obj.icon = 'ui://MajiangCard3d/' .. 'b' .. pos_str .. card
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in New Issue