local ZPDef = ZPFramework.ZPImport("zp_base.luaScript.ZPDef") local ZPFuc = ZPFramework.ZPImport("zp_base.luaScript.ZPFunctions") local ZPSound = ZPFramework.ZPImport("zp_base.luaScript.ZPSound") local ZPWanFa=ZPFramework.ImportWanFa("luaScript.SubGameDefine.ZiPai.ZPWanFa") local tempCardVlue ={ [17] = 20, --11 [18] = 30, --12 [49] = 40, --31 [34] = 41, --22 [20] = 50, --14 [50] = 51, --32 [21] = 60, --15 [36] = 61, --24 [51] = 62, --33 [22] = 70, --16 [82] = 71, --52 [52] = 72, --34 [38] = 80, --26 [53] = 81, --35 [68] = 82, --44 [54] = 90, --36 [84] = 91, --54 [70] = 100, --46 [85] = 101, --55 [86] = 110, --56 [102] = 120, --66 } local xichongRoomXiaoJuView = class("xichongRoomXiaoJuView", cc.UIView) function xichongRoomXiaoJuView:ctor(nextCallBackFun,isRecontect) xichongRoomXiaoJuView.super.ctor(self); self.isRecontect = isRecontect self.nextCallBack = nextCallBackFun self.xiaojuData = app.room.roomInfo.playList self.isShow = false if self.isRecontect then self.xiaojuData = app.room.roomInfo.arrayTableInfo end self.allNode = {} self.showHu = {} end function xichongRoomXiaoJuView:loadUI() local ui = loadUI("zp_xichong/res/ui/ui_fangjian/xichong_ui_xiaoju.ui"); self.ui = ui; self:addChild(ui); end function xichongRoomXiaoJuView:onEnter() xichongRoomXiaoJuView.super.onEnter(self) self:loadUI() -- 下一局 self.ui.Items.Button_Next:registerClick(handler(self , self.onClickNext)) --显示总结算 self.ui.Items.Button_All:registerClick(handler(self , self.onClickZongJieSuan)) --self.ui.Items.Button_ChaPai:setVisible(false) --查牌 self.ui.Items.Button_ChaPai:registerClick(handler(self , self.onClickChaPai)) --胡牌类型item,复制用 self.ui.Items.Layout_hutypes:setVisible(false) --显示结束 if app.room.roomInfo.isGameOver == 1 then self.ui.Items.Button_Next:setVisible(false) self.ui.Items.Button_All:setVisible(true) else self.ui.Items.Button_All:setVisible(false) end self.ui.Items.ImageView_DiCard_1:setVisible(false) --组合牌第一个点的坐标 self.weaveCardPos = cc.p(300, -28) self.leftCardPos = self.ui.Items.ImageView_DiCard_1:getPosition() if app.room.roomInfo.playerNum == 2 or app.room:getActualPlayerNum() == 2 then self.ui.Items.Layout_Player_4:setVisible(false) self.ui.Items.Layout_Player_3:setVisible(false) self.ui.Items.Layout_Player:doLayout() self.ui.Items.Layout_Player:requestDoLayout() elseif app.room.roomInfo.playerNum == 3 or app.room:getActualPlayerNum() == 3 then self.ui.Items.Layout_Player_4:setVisible(false) self.ui.Items.Layout_Player:doLayout() self.ui.Items.Layout_Player:requestDoLayout() end --初始化人物信息 self:initPlayerView() self:initOtherData() self:updatePlayerInfo() end function xichongRoomXiaoJuView:initPlayerView() self.ui.Items.Layout_WeaveCard_Item:setVisible(false) for i=1,4 do local head = "ImageView_head_"..i local name = "Text_Name_"..i local id = "Text_ID_"..i local banker = "ImageView_Zhuang_"..i local winScore = "TextBMFont_WinScore_"..i local loseScore = "TextBMFont_LoseScore_"..i local layout = "Layout_Hand_"..i local winBg = "ImageView_ying_bg_"..i --local loseBg = "ImageView_pt_bg_"..i local fangPao = "ImageView_FangPao_"..i local layoutHuTypes = "Layout_huTypes_"..i local huType = "ImageView_HuType_"..i local textFanshu = "Text_fanshu_"..i local toujia = "ImageView_toujia_"..i local xiaojia = "ImageView_xiaojia_"..i local piao = "ImageView_piao_"..i local huShu = "Text_HuShu_" .. i self.allNode[i] = {} self.allNode[i].nodeHead = self.ui.Items[head] self.allNode[i].nodeName = self.ui.Items[name] self.allNode[i].nodeID = self.ui.Items[id] self.allNode[i].nodeBanker = self.ui.Items[banker] self.allNode[i].nodewinScore = self.ui.Items[winScore] self.allNode[i].nodeloseScore = self.ui.Items[loseScore] self.allNode[i].nodeLayout = self.ui.Items[layout] self.allNode[i].nodewinBg = self.ui.Items[winBg] --self.allNode[i].nodeloseBg = self.ui.Items[loseBg] self.allNode[i].nodefangPao = self.ui.Items[fangPao] self.allNode[i].nodehutype = self.ui.Items[huType] self.allNode[i].nodelayoutHuTypes = self.ui.Items[layoutHuTypes] self.allNode[i].nodefanshu = self.ui.Items[textFanshu] self.allNode[i].nodetoujia = self.ui.Items[toujia] self.allNode[i].nodexiaojia = self.ui.Items[xiaojia] self.allNode[i].nodepiao = self.ui.Items[piao] self.allNode[i].nodeHuShu = self.ui.Items[huShu] end end --是否是小家uid function xichongRoomXiaoJuView:isLittleUid(uid) if not uid then return false end local viewId = app.room:getViewIdByUserId(uid) if not viewId then return false end local seatId = app.room:getSeatIdByViewId(viewId) if not seatId then return false end if app.room.roomInfo.xiaoSeatId and app.room.roomInfo.xiaoSeatId == seatId then return true else return false end end --获取最大得分 function xichongRoomXiaoJuView:getMaxTurnScore(t) local score = 0 for i,j in pairs(t) do if j.nTurnScore > score then score = j.nTurnScore end end return score end function xichongRoomXiaoJuView:updatePlayerInfo() self.isHaveUse = {} local indexPlayer = 2 local maxTurnScore = self:getMaxTurnScore(self.xiaojuData) --按要求赢家要摆在第一个位置 for k,v in pairsByKeys(self.xiaojuData) do if app.room:checkUserIDIsInTable(v.nUserId) then local i = indexPlayer if v.nTurnScore == maxTurnScore and not self.isHaveUse[1] and (not self:isLittleUid(v.nUserId)) then i = 1 elseif self:isLittleUid(v.nUserId) then i = 4 else indexPlayer = indexPlayer + 1 end if i== 4 and (not self:isLittleUid(v.nUserId)) then for tt=1,4 do if not self.isHaveUse[tt] then i = tt end end self.isHaveUse[i] = true elseif not self.isHaveUse[i] then self.isHaveUse[i] = true else for tt=1,4 do if not self.isHaveUse[tt] then i = tt end end self.isHaveUse[i] = true end local roomInfo = app.room.roomInfo local userInfo = app.room:getUserInfo(v.nUserId) local viewId = app.room:getViewIdByUserId(v.nUserId) local nWinerId = app.room.roomInfo.winUserId local dianPaoUserId = app.room.roomInfo.dianPaoUserId local weiguiUserId = app.room.roomInfo.weiGuiUid local bankerId = app.room:getUserIdBySeatId(app.room.roomInfo.nBankSeatId) local stopFlag = app.room.roomInfo.stopFlag local xiaojiaid = self:getXiaojiaUid() self.allNode[i].nodefangPao:setScale(1.5) if stopFlag ~= 0 then self.allNode[i].nodefanshu:setVisible(false) self.allNode[i].nodelayoutHuTypes:setVisible(false) end if v.nTurnScore > 0 then self.allNode[i].nodewinScore:setText(tostring("+"..v.nTurnScore)) self.allNode[i].nodeloseScore:setVisible(false) else self.allNode[i].nodeloseScore:setText(v.nTurnScore) self.allNode[i].nodewinScore:setVisible(false) self.allNode[i].nodewinBg:setVisible(false) end self.allNode[i].nodehutype:setVisible(false) self.allNode[i].nodeHuShu:setVisible(v.totalTuoNum > 0); self.allNode[i].nodeHuShu:setString(v.totalTuoNum .. '点') --先设置默认头像 local width = self.allNode[i].nodeHead:getContentSize().width local nickname = "" if userInfo and userInfo.nickname then nickname = getSubStringNickname(userInfo.nickname) self:updateUserHead(self.allNode[i].nodeHead,v.nUserId, userInfo.sex, userInfo.headimgurl); end --名称 self.allNode[i].nodeName:setText(nickname) --ID self.allNode[i].nodeID:setText(tostring("ID:"..v.nUserId)) --显示隐藏游戏内选手id(主办人和管理员不限制,只针对海选赛) -- todo lwq -- begin local ClubDefine = require("luaScript.Protocol.Club.ClubDefine") if app.club_php.clubID and app.club_php.clubID ~= 0 then if app.club_php:getCestIsOpen(app.club_php.clubID) then --隐私数据 local clubInfo = app.club_php.clubList[app.club_php.clubID] self.cliext = clubInfo.groupext and clubInfo.groupext.cliext if not self.cliext or not self.cliext.is_hideUid or (self.cliext and self.cliext.is_hideUid == 1) then if clubInfo.role == ClubDefine.Job.Creator or clubInfo.role == ClubDefine.Job.Manager then self.allNode[i].nodeID:setVisible(true) else self.allNode[i].nodeID:setVisible(false) end end end end if v.nUserId == tonumber(app.user.loginInfo.uid) then self.allNode[i].nodeID:setVisible(true) end -- end --庄家 if bankerId == v.nUserId then self.allNode[i].nodeBanker:setVisible(false) self.allNode[i].nodetoujia:setVisible(true) else self.allNode[i].nodeBanker:setVisible(false) self.allNode[i].nodetoujia:setVisible(false) end --小家 if xiaojiaid == v.nUserId then self.allNode[i].nodexiaojia:setVisible(true) else self.allNode[i].nodexiaojia:setVisible(false) end --报叫 if v.nBaoPaiStatus == 2 then self.allNode[i].nodepiao:setVisible(true) else self.allNode[i].nodepiao:setVisible(false) end --点炮 包赔玩家 if dianPaoUserId == v.nUserId or weiguiUserId == v.nUserId then if dianPaoUserId == v.nUserId then self.allNode[i].nodefangPao:setVisible(true) self.allNode[i].nodefangPao:loadTexture("zp_xichong/res/ui/zy_fangjian/jiesuan/dianpao.png") --self.allNode[i].nodefangPao:setScale(1.3) local orderPos = self.allNode[i].nodefangPao:getPosition() self.allNode[i].nodefangPao:setPositionY(orderPos.y - 10) end if weiguiUserId == v.nUserId then self.allNode[i].nodefangPao:setVisible(true) self.allNode[i].nodefangPao:loadTexture("zp_xichong/res/ui/zy_fangjian/jiesuan/weigui.png") --self.allNode[i].nodefangPao:setScale(1) local orderPos = self.allNode[i].nodefangPao:getPosition() self.allNode[i].nodefangPao:setPositionY(orderPos.y - 10) end else self.allNode[i].nodefangPao:setVisible(false) end --组合牌展示 local data = self.xiaojuData[v.nUserId] if not data then return end local isHuUid = false--是否是赢牌者uid for huk,huv in pairs(roomInfo.hupaiInfo) do if huv.huPaiUid == v.nUserId then isHuUid = true app.room.roomInfo.huCard = huv.huCard self.allNode[i].nodefangPao:setVisible(true) self.allNode[i].nodefangPao:loadTexture("zp_xichong/res/ui/zy_fangjian/jiesuan/hu.png") end if huv.huPaiUid == v.nUserId then self.allNode[i].nodefanshu:setVisible(true) self.allNode[i].nodefanshu:setText(huv.huPaiHuShu.."番") --local hustr = self:getHuTypesStr(huv.huPaiUid,huv.huTypes) --self.allNode[i].nodelayoutHuTypes:setVisible(true) else self.allNode[i].nodefanshu:setVisible(false) --self.allNode[i].nodelayoutHuTypes:setVisible(false) end end local index = 0 self.allNode[i].nodeLayout:setVisible(true) --只显示一次胡变为opCard local findHuCard = false local showOneTime = true local index = 0 -- 创建组合牌 do for key,value in pairs(data.tableWeaveCard) do local list = {} local card = value.opcard local optype = value.type if optype == ZPDef.SendCardType.TOU_THREE_SAME or optype == ZPDef.SendCardType.CHI_PAI_PENG then list = {card,card,card} elseif optype == ZPDef.SendCardType.BA_FOUR_SAME then list = {card,card,card,card} elseif optype == ZPDef.SendCardType.TWO_SUM_CHI then list = value.card end if list then self:createWeaveCard(value,list,index,false,self.allNode[i].nodeLayout,v.nUserId) end index = index + 1 end if table.nums(data.tableWeaveCard) > 0 then index = index + 0.3 end end -- 创建手牌 do local handcardList = app.room:serverCardToMyCard(v.handCard) if isHuUid then for k,v in pairs(handcardList) do local isFind = false; for kk, vv in ipairs(v) do if vv == app.room.roomInfo.huCard then table.remove(v, kk) -- 移除胡的那张牌 isFind = true break end end if isFind then local huList = table.remove(handcardList, k) table.insert(handcardList, huList) -- 将胡牌列放到最后 break end end end -- 创建手牌 for k,value in pairs(handcardList) do local list = value if list then table.sort(list, function (a, b) return tempCardVlue[a] > tempCardVlue[b] end) -- table.sort(list, function (a, b) -- local a1 = tonumber(string.format('%x', a)) -- local b1 = tonumber(string.format('%x', b)) -- return math.floor(a1 / 10) > math.floor(b1 / 10) -- end) local lens = table.nums(list) self:createWeaveCard(value,list,index,true,self.allNode[i].nodeLayout,v.nUserId) index = index + 1 end end if table.nums(handcardList) > 0 then index = index + 0.3 -- 手牌与胡牌间隔一列 end end -- 创建胡牌 do local huCard = app.room.roomInfo.huCard if isHuUid and true == isHuUid and huCard > 0 then self:createWeaveCard({sendCardType = 0, hushu = 0, opcard = huCard}, {huCard}, index, true, self.allNode[i].nodeLayout, v.nUserId) index = index + 1 end end --本局结束 if app.room.roomInfo.stopFlag == ZPDef.XiaoJuEndType.STOP_FLAG_NORMAL then if #roomInfo.hupaiInfo > 0 then if v.nTurnScore > 0 then if v.nUserId == app.user.loginInfo.uid then ZPSound.PlayWinGame() end else if v.nUserId == app.user.loginInfo.uid then ZPSound.PlayLoseGame() end end end end local huCard = app.room.roomInfo.huCard if isHuUid and true == isHuUid and huCard > 0 then -- self:createWeaveCard(huCard,index,self.allNode[i].nodeLayout,false,true) end end end self:showDiPai() end function xichongRoomXiaoJuView:getAHutypeUi(ht,filename) local ui = self.ui.Items.Layout_hutypes:getCopied() ui.Items = getUIItems(ui); ui:setVisible(true) if not ht then ht = 0 end local name = string.format(ZPDef.TipFile.HU,ht) if filename then name = filename end ui.Items.ImageView_hutype:loadTextureFromPlist(name) return ui end function xichongRoomXiaoJuView:showDiPai() local dipaiSize = table.nums(app.room.roomInfo.dipaiList); if dipaiSize <= 0 then self.ui.Items.Layout_Bottom_1:setVisible(false) else self.ui.Items.Layout_Bottom_1:setVisible(true) end self.ui.Items.Layout_Bottom_1:setVisible(false) if true then return end --[[if app.room:getActualPlayerNum() == 2 then local y = self.ui.Items.Layout_Bottom_1:getPositionY() self.ui.Items.Layout_Bottom_1:setPositionY(y+40) end--]] local tIndex = 0 for dipaiK,dipaiV in pairsByKeys(app.room.roomInfo.dipaiList) do local mLayout = cc.Layout:createNode() mLayout:setAnchorPoint(cc.p(0.5,0.5)) mLayout:setSize(cc.size(30,30)) local cardImg = cc.ImageView:createNode(); cardImg:setAnchorPoint(cc.p(0.5,0.5)); cardImg:setScale(0.8) local fileName = ZPFuc.getZPCardImgByValue(dipaiV.chessCards,ZPDef.CardType.CARD_TYPE_TABLE) cardImg:loadTextureFromPlist(fileName); local row = math.floor(tIndex/22) --cardImg:setPosition(self.leftCardPos.x + (tIndex%25)*45,self.leftCardPos.y-row*60) cardImg:setPosition(cc.p(15,15)) mLayout:addChild(cardImg) self.ui.Items.Layout_dipai:addChild(mLayout); tIndex = tIndex + 1; end end function xichongRoomXiaoJuView:getHuTypeAndBeiShuStr(huType,beishu) local strRul = "" return strRul end --判断是否是赢家uid function xichongRoomXiaoJuView:getIsWinUid(uid) for huk,huv in pairs(app.room.roomInfo.hupaiInfo) do if huv.huPaiUid == uid then return true end end return false end function xichongRoomXiaoJuView:createWeaveCard(value,list,index,isHand,node,userID) local sendCardType = value.type local huxi = value.hushu local opCard = value.opcard local ui = self.ui.Items.Layout_WeaveCard_Item:getCopied() ui.Items = getUIItems(ui); ui:setVisible(true) local max = table.nums(list) local idx = max for i = 1,4 do local name = "ImageView_Card_"..i local hu = "ImageView_card_hu_"..i ui.Items[hu]:setVisible(false) if i > max then ui.Items[name]:setVisible(false) else if list[i] == app.room.roomInfo.huCard and not self.isShow then --[[--吃胡一定是手牌 if app.room.roomInfo.huCardType and app.room.roomInfo.huCardType == ZPDef.ReconnectHuType.CHI_HU and isHand then self.isShow = true --其他类型的胡牌在组合牌上 elseif app.room.roomInfo.huCardType and app.room.roomInfo.huCardType ~= ZPDef.ReconnectHuType.CHI_HU and not isHand then self.isShow = true elseif app.room.roomInfo.huCardType and app.room.roomInfo.huCardType == 0 and isHand then--叫牌的时候 self.isShow = true end--]] if app.room.roomInfo.stopFlag == ZPDef.XiaoJuEndType.STOP_FLAG_HUANG_ZHUANG then if true == isHand or #list == 4 or (#list == 3 and list[1]==list[2] and list[2]==list[3]) then self.isShow = true end else if app.room.roomInfo.huCardType == ZPDef.ReconnectHuType.CHI_HU and not isHand then else self.isShow = true end end end local fileName = ZPFuc.getZPCardImgByValue(list[i], ZPDef.CardType.CARD_TYPE_HAND, ZPDef.GameStyleType.JINGDIAN) -- local fileName = ZPFuc.getZPCardImgByValue(list[i],ZPDef.CardType.CARD_TYPE_QUIT,self.colorType) ui.Items[name]:loadTextureFromPlist(fileName) ui.Items[name].cardValue = list[i] --[[if self.isShow == true then --ui.Items[name]:setColor(cc.c3b(248,193,103)) if not self.showHu[userID] then self.isShow = false self.showHu[userID] = true if self:getIsWinUid(userID) then ui.Items[hu]:setVisible(true) end end self.isShow = false end--]] end end --不管是不是手牌都要显示 if self:getWeaveTypeFile(sendCardType) ~= "" then--and (not isHand) --ui.Items.ImageView_tip:loadTextureFromPlist(self:getWeaveTypeFile(sendCardType)) ui.Items.ImageView_tip:setVisible(false) else ui.Items.ImageView_tip:setVisible(false) end ui.Items.TextBMFont_youshu:setVisible(false) --ui.Items.TextBMFont_youshu:setText(huxi) ui:setPosition(cc.p(self.weaveCardPos.x + index * 50,self.weaveCardPos.y)) --self.ui.Items.Layout_1:addChild(ui) node:addChild(ui) end --[[ 获取组合类型文件 ]] function xichongRoomXiaoJuView:getWeaveTypeFile(sendCardType) if sendCardType == ZPDef.SendCardType.TWO_SEVEN_TEN or sendCardType == ZPDef.SendCardType.ONE_FIVE_TEN or sendCardType == ZPDef.SendCardType.ONE_TWO_THREE or sendCardType == ZPDef.SendCardType.DA_ZI_TWO_AND_ONE or sendCardType == ZPDef.SendCardType.SHUN_ZI then return ZPDef.XiaoJuWeaveCardType.CHI elseif sendCardType == ZPDef.SendCardType.DUI_THREE_SAME then return ZPDef.XiaoJuWeaveCardType.PENG elseif sendCardType == ZPDef.SendCardType.KAN_THREE_SAME or sendCardType == ZPDef.SendCardType.DIRTY_THREE_SAME then return ZPDef.XiaoJuWeaveCardType.WEI elseif sendCardType == ZPDef.SendCardType.KUAI_SHUI_FOUR_SAME or sendCardType == ZPDef.SendCardType.CHI_PAI_PENG_PAO or sendCardType == ZPDef.SendCardType.CHI_PAI_SHAO_PAO then return ZPDef.XiaoJuWeaveCardType.ZHAO elseif sendCardType == ZPDef.SendCardType.GUN_ZI_FOUR_SAME or sendCardType == ZPDef.SendCardType.CHI_PAI_TI then return ZPDef.XiaoJuWeaveCardType.LONG elseif sendCardType == ZPDef.SendCardType.ZHUANG_ZI then return ZPDef.XiaoJuWeaveCardType.JIANG elseif sendCardType == ZPDef.SendCardType.KANPAI_LOCAL then return ZPDef.XiaoJuWeaveCardType.KAN else local txt = string.format("发牌类型为:"..sendCardType) --showTooltip(txt) return "" end end function xichongRoomXiaoJuView:initOtherData() local roomInfo = app.room.roomInfo local winUserId = app.room.roomInfo.winUserId --规则 self.ui.Items.Text_Rule:setText(ZPWanFa.getRuleInfo(roomInfo.strGameInfo)) --时间 self.ui.Items.Text_Time:setText(getTimeString()) --房号 self.ui.Items.Text_RoomNum:setText("房号:"..tostring(app.room.roomInfo.nShowTableId)) end function xichongRoomXiaoJuView:updateUserHead(nodeHead,nUserId, sex, headimgurl) setPlayerHeadImage(nUserId, headimgurl, nodeHead); end -- 查牌 function xichongRoomXiaoJuView:onClickChaPai() playBtnEffect() self:setVisible(false) end -- 下一局 function xichongRoomXiaoJuView:onClickNext() playBtnEffect() self.ui:sendMsg(app.room, "callReadyRequest"); if self.nextCallBack then self.nextCallBack() end end function xichongRoomXiaoJuView:onClickZongJieSuan() playBtnEffect() if self.nextCallBack then self.nextCallBack() end end function xichongRoomXiaoJuView:getAHutypeTextUi(text) local hutext = cc.Text:createNode() hutext:setDefaults() local config = hutext:getFontConfig() config.fontSize = 22 config.texColor = cc.c3b(255,240,179)--cc.c4b(251,213,130,255) hutext:setFontConfig(config) hutext:setText(tostring(text)) return hutext end function xichongRoomXiaoJuView:getXiaojiaUid() return app.room:getUserIdBySeatId(app.room.roomInfo.xiaoSeatId) end --显示胡牌类型 --[[function xichongRoomXiaoJuView:getHuTypesStr(huUid,huType) local strSpec = "" if huType > 0 then local ret = getNumBand(huType,ZPDef.HuType.TIAN_HU) if ret > 0 then strSpec = strSpec.."天胡x2 " end local ret = getNumBand(huType,ZPDef.HuType.LONG_HU) if ret > 0 then strSpec = strSpec.."龙胡x1 " end local ret = getNumBand(huType,ZPDef.HuType.TUO_HONG_HU) if ret > 0 then if huUid == self:getXiaojiaUid() then strSpec = strSpec.."坨坨红x1 " else strSpec = strSpec.."坨坨红x3 " end end local ret = getNumBand(huType,ZPDef.HuType.HEI_LONG_HU) if ret > 0 then strSpec = strSpec.."黑龙x1 " end local ret = getNumBand(huType,ZPDef.HuType.CHI_PIAO) if ret > 0 then strSpec = strSpec.."吃飘x1 " end local ret = getNumBand(huType,ZPDef.HuType.XIAO_HU) if ret > 0 then strSpec = strSpec.."小胡 " end local ret = getNumBand(huType,ZPDef.HuType.TUO_HEI_HU) if ret > 0 then if huUid == self:getXiaojiaUid() then strSpec = strSpec.."坨坨黑x1 " else strSpec = strSpec.."坨坨黑x3 " end end local ret = getNumBand(huType,ZPDef.HuType.BAO_HU) if ret > 0 then strSpec = strSpec.."报叫x1 " end end --另加番 if app.room.roomInfo.fourHongNum > 0 or app.room.roomInfo.fourNormolNum > 0 then local num = app.room.roomInfo.fourHongNum + app.room.roomInfo.fourNormolNum strSpec = strSpec.."四张x"..num.." " end if app.room.roomInfo.threeHongNum > 0 or app.room.roomInfo.fourHongNum > 0 then local num = app.room.roomInfo.fourHongNum + app.room.roomInfo.threeHongNum strSpec = strSpec.."冲番牌x"..num.." " end return strSpec end--]] return xichongRoomXiaoJuView