金溪抚州同步奖马
parent
f1f2e68878
commit
396ecbd69b
|
|
@ -115,6 +115,7 @@ function M:fillResult0(room, peopleNum, result)
|
|||
local isZhuang = playerInfoComp:GetController("zhuang")
|
||||
|
||||
local infoList = result.info_list[i]
|
||||
local infoJiangma = result.niao
|
||||
local playInfo = room:GetPlayerBySeat(infoList.seat)
|
||||
local fzCardInfo = playInfo.fz_list
|
||||
local fzInfoNum = #fzCardInfo
|
||||
|
|
@ -122,6 +123,11 @@ function M:fillResult0(room, peopleNum, result)
|
|||
|
||||
self:fillHead(playInfo.self_user.head_url, playerInfoComp)
|
||||
|
||||
infoList.jing_score = infoList.jing_score or 0
|
||||
infoList.gang_score = infoList.gang_score or 0
|
||||
infoList.hu_score = infoList.hu_score or 0
|
||||
infoList.round_score = infoList.round_score or 0
|
||||
|
||||
playerInfoComp:GetChild("text_name").text = playInfo.self_user.nick_name
|
||||
playerInfoComp:GetChild("Text_BoJing").text = infoList.jing_score >= 0 and
|
||||
string.format("+%d", infoList.jing_score) or infoList.jing_score
|
||||
|
|
@ -210,7 +216,15 @@ function M:fillResult0(room, peopleNum, result)
|
|||
huCardBtn.icon = string.format("ui://Main_Majiang/202_%d", infoList.win_card)
|
||||
huCardBtn.visible = true
|
||||
|
||||
jiangMaList.visible = false
|
||||
jiangMaList.visible = true
|
||||
jiangMaList:SetVirtual()
|
||||
jiangMaList.itemRenderer = function(index, obj)
|
||||
obj.icon = string.format("ui://Main_Majiang/202_%d", infoJiangma[index + 1].card)
|
||||
obj:GetController('bg').selectedIndex = infoJiangma[index + 1].score
|
||||
obj:GetController('jing').selectedIndex = infoJiangma[index + 1].card == room.jing and 1 or 0
|
||||
end
|
||||
jiangMaList.numItems = #infoJiangma
|
||||
jiangMaList.columnCount = #infoJiangma / 2
|
||||
else
|
||||
playerInfoComp:GetChild("text_huShow").text = ""
|
||||
if not room.isZiMoHu and playInfo.self_user.account_id == result.active_player then
|
||||
|
|
|
|||
|
|
@ -115,6 +115,7 @@ function M:fillResult0(room, peopleNum, result)
|
|||
local isZhuang = playerInfoComp:GetController("zhuang")
|
||||
|
||||
local infoList = result.info_list[i]
|
||||
local infoJiangma = result.niao
|
||||
local playInfo = room:GetPlayerBySeat(infoList.seat)
|
||||
local fzCardInfo = playInfo.fz_list
|
||||
local fzInfoNum = #fzCardInfo
|
||||
|
|
@ -122,6 +123,11 @@ function M:fillResult0(room, peopleNum, result)
|
|||
|
||||
self:fillHead(playInfo.self_user.head_url, playerInfoComp)
|
||||
|
||||
infoList.jing_score = infoList.jing_score or 0
|
||||
infoList.gang_score = infoList.gang_score or 0
|
||||
infoList.hu_score = infoList.hu_score or 0
|
||||
infoList.round_score = infoList.round_score or 0
|
||||
|
||||
playerInfoComp:GetChild("text_name").text = playInfo.self_user.nick_name
|
||||
playerInfoComp:GetChild("Text_BoJing").text = infoList.jing_score >= 0 and
|
||||
string.format("+%d", infoList.jing_score) or infoList.jing_score
|
||||
|
|
@ -210,7 +216,15 @@ function M:fillResult0(room, peopleNum, result)
|
|||
huCardBtn.icon = string.format("ui://Main_Majiang/202_%d", infoList.win_card)
|
||||
huCardBtn.visible = true
|
||||
|
||||
jiangMaList.visible = false
|
||||
jiangMaList.visible = true
|
||||
jiangMaList:SetVirtual()
|
||||
jiangMaList.itemRenderer = function(index, obj)
|
||||
obj.icon = string.format("ui://Main_Majiang/202_%d", infoJiangma[index + 1].card)
|
||||
obj:GetController('bg').selectedIndex = infoJiangma[index + 1].score
|
||||
obj:GetController('jing').selectedIndex = infoJiangma[index + 1].card == room.jing and 1 or 0
|
||||
end
|
||||
jiangMaList.numItems = #infoJiangma
|
||||
jiangMaList.columnCount = #infoJiangma / 2
|
||||
else
|
||||
playerInfoComp:GetChild("text_huShow").text = ""
|
||||
if not room.isZiMoHu and playInfo.self_user.account_id == result.active_player then
|
||||
|
|
|
|||
Loading…
Reference in New Issue