-- 房间设置界面 local PKWanFa = PKFramework.ImportWanFa("luaScript.SubGameDefine.PuKe.PKWanFa") local PKRoomRuleView = class("PKRoomRuleView", cc.UIView) function PKRoomRuleView:ctor() PKRoomRuleView.super.ctor(self); end function PKRoomRuleView:onEnter() PKRoomRuleView.super.onEnter(self) self.ui = loadUI("pk_base/res/ui/ui_fangjian/pk_ui_ruleView.ui") self:addChild(self.ui) local strGameInfo = app.room.roomInfo.strGameInfo local payText = PKWanFa.getClubTableWanFaInfo(strGameInfo,"deductRule") local baseScore = PKWanFa.getClubTableWanFaInfo(strGameInfo,"baseScore") local playerNum = PKWanFa.getClubTableWanFaInfo(strGameInfo,"playerNum") local jiaoPaiType = PKWanFa.getClubTableWanFaInfo(strGameInfo,"jiaoPaiType") local fanbao = PKWanFa.getClubTableWanFaInfo(strGameInfo,"fanBao") local firstBao = PKWanFa.getClubTableWanFaInfo(strGameInfo,"firstBao") local fightAlone = PKWanFa.getClubTableWanFaInfo(strGameInfo,"fightAlone") local unshuffle = PKWanFa.getClubTableWanFaInfo(strGameInfo,"unshuffle") local bombScore = PKWanFa.getClubTableWanFaInfo(strGameInfo,"bombScore") local withFlower = PKWanFa.getClubTableWanFaInfo(strGameInfo,"withFlower") local reNumShow = PKWanFa.getClubTableWanFaInfo(strGameInfo,"reNumShow") local jzdybq = PKWanFa.getClubTableWanFaInfo(strGameInfo,"jzdybq") local baseMulti = PKWanFa.getClubTableWanFaInfo(strGameInfo,"baseMulti") local forbidProp = PKWanFa.getClubTableWanFaInfo(strGameInfo,"forbidProp") local forbidVoice = PKWanFa.getClubTableWanFaInfo(strGameInfo,"forbidVoice") local otherStr = "" otherStr = playerNum ~= "" and otherStr..playerNum.." " or otherStr otherStr = jiaoPaiType ~= "" and otherStr..jiaoPaiType.." " or otherStr otherStr = fanbao ~= "" and otherStr..fanbao.." " or otherStr otherStr = firstBao ~= "" and otherStr..firstBao.." " or otherStr otherStr = fightAlone ~= "" and otherStr..fightAlone.." " or otherStr otherStr = unshuffle ~= "" and otherStr..unshuffle.." " or otherStr otherStr = bombScore ~= "" and otherStr..bombScore.." " or otherStr otherStr = withFlower ~= "" and otherStr..withFlower.." " or otherStr otherStr = reNumShow ~= "" and otherStr..reNumShow.." " or otherStr otherStr = jzdybq ~= "" and otherStr..jzdybq.." " or otherStr otherStr = baseMulti ~= "" and otherStr..baseMulti.." " or otherStr otherStr = forbidProp ~= "" and otherStr..forbidProp.." " or otherStr otherStr = forbidVoice ~= "" and otherStr..forbidVoice.." " or otherStr self.ui.Items.Text_JuShu:setText(tostring(app.room.roomInfo.nTotalGameNum)) self.ui.Items.Text_BeiShu:setText(tostring(baseScore)) self.ui.Items.Text_PayMode:setText(tostring(payText)) self.ui.Items.Text_Rule:setText(tostring(otherStr)) self.ui.Items.Button:registerClick(function () self:removeFromParent(); end) end return PKRoomRuleView;