local MJDefine = MJFramework.MJImport("mj.luaScript.MJDefine") local MJSound = MJFramework.MJImport("mj.luaScript.MJSound") local MJRoomDirection = MJFramework.MJFrameworkClassImprot("mj.luaScript.Views.Room.MJRoomDirection") local hongzhongRoomDirection = class("hongzhongRoomDirection", MJRoomDirection) function hongzhongRoomDirection:ctor(desktopType) hongzhongRoomDirection.super.ctor(self, desktopType) end function hongzhongRoomDirection:updateView(desktopType) if self.ui then self.ui:removeFromParent() end self.desktopType = desktopType if self.desktopType == MJDefine.DesktopType.ThreeD then if MJDefine.IS_NEW_3D then local path = "mj/res/ui/ui_fangjian/mj_ui_room_direction_3d.ui" self.ui = loadUI(path) else self.ui = loadUI("hongzhong/res/ui_fangjian/hongzhong_ui_room_direction.ui") self:init3DDirection() end else self.ui = loadUI("hongzhong/res/ui_fangjian/hongzhong_ui_room_direction_2d.ui") self:init2DDirection() end self:addChild(self.ui) if self.seatId then self.currentDir = nil self:updateDirection(self.seatId) end self:hideJuShuNum(false) self:hideLeftCardNums(false) end return hongzhongRoomDirection