local ZPDef = ZPFramework.ZPImport("zp_base.luaScript.ZPDef") local ZPRoomView = ZPFramework.ZPFrameworkClassImprot("zp_base.luaScript.Views.Room.ZPRoomView") local luzhouRoomView = class("luzhouRoomView", ZPRoomView) function luzhouRoomView:ctor() luzhouRoomView.super.ctor(self) end function luzhouRoomView:onEnter() luzhouRoomView.super.onEnter(self) end function luzhouRoomView:setTableImg(idx) local name = string.format("zp_luzhou/res/ui/zy_fangjian/bg/fangjian_di_%d.jpg",idx) --桌布 self.ui.Items.ImageView_bg:loadTexture(name) --[[ if idx == 1 or idx == 4 then self.ui.Items.Text_JuShu:setColor(cc.c3b(109,69,32)) elseif idx == 2 or idx == 3 then self.ui.Items.Text_JuShu:setColor(cc.c3b(9,74,49)) end--]] self:initLogo(idx) local cacheGameBgPic = "gameBgPicture"..(ZPDef.GameID or app.gameId) saveUserInfo(cacheGameBgPic,idx) end return luzhouRoomView