local GameInfoWindow = {} function GameInfoWindow.New() setmetatable(GameInfoWindow, { __index = BaseWindow }) local ints = setmetatable({}, { __index = GameInfoWindow }) ints:init("ui://Main_Majiang/com_gameInfoWindow") return ints end function GameInfoWindow:Reflash() local config = self.room.room_config.config local times = self.room.room_config.config.hpData.times local game_id = self.room.game_id local Info = ExtendManager.GetExtendConfig(game_id):GetGameInfo() local text = Info:LoadConfigToDetail(config) self.tex_tex.text = times / 1000 .. "倍," .. text end function GameInfoWindow:Show(room) BaseWindow.Show(self) self.room = room self:Reflash() end function GameInfoWindow:init(url) BaseWindow.init(self, url) self.tex_tex = self._view:GetChild("tex_tex") self.btn_quit = self._view:GetChild("btn_quit") self.btn_quit.onClick:Set(function() self:Close() end) end return GameInfoWindow