玩法显示玩法
parent
1e7356d57b
commit
86619f2e5e
|
|
@ -363,10 +363,10 @@ function M:UpdateFamilyRoom(fgCtr, id)
|
|||
end)
|
||||
else
|
||||
local newIndex = index - #roomList + 1
|
||||
-- local config = ExtendManager.GetExtendConfig(playList[index - #roomList + 1].gameId)
|
||||
-- local mode = config:GetGameInfo()
|
||||
-- local gamePlay = mode:LoadConfigToDetail("随便甜点")
|
||||
-- obj:GetChild('Label_gameRule').title = gamePlay
|
||||
local config = ExtendManager.GetExtendConfig(playList[newIndex].gameId)
|
||||
local mode = config:GetGameInfo()
|
||||
local gamePlay = mode:LoadConfigToDetail(playList[newIndex].config)
|
||||
obj:GetChild('Label_gameRule').title = gamePlay
|
||||
obj:GetChild('game_type').text = playList[newIndex].name
|
||||
obj:GetChild('btn_joinGame'):GetController('type').selectedIndex = 0
|
||||
obj:GetChild('btn_joinGame').onClick:Set(function()
|
||||
|
|
|
|||
|
|
@ -185,4 +185,16 @@ function M:LoadConfigData(data)
|
|||
-- end
|
||||
end
|
||||
|
||||
function M:LoadConfigToDetail(data)
|
||||
local configData = json.decode(data)
|
||||
local returnString = string.format("人数%s人,%s马%s%s%s%s%s%s,%s", configData.maxPlayers,
|
||||
configData.jiangma and string.format("奖%d", configData.jiangma) or "不奖", configData.shaozhuang and ",有烧庄" or "",
|
||||
configData.zuoma and ",庄家坐马" or "",
|
||||
configData.zimo and ",只能自摸" or ",自摸可点炮",
|
||||
configData.tuoguan and string.format(",%d秒后自动托管", configData.tuoguan_active_time) or "不能托管",
|
||||
configData.jiahu and ",可以假胡" or "", configData.fengding and ",封顶20炮" or "",
|
||||
configData.zhuanwan and "大转弯" or "小转弯")
|
||||
return returnString
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in New Issue