local UIMapInfoView = UIViewClass() function UIMapInfoView:OnOpened(context) if context then UIUtils.SetLabelText(self.txt_Info2, Const_IDS[context.text]) else local levelInfoData = BattleDataGetter.GetLevelInfoData() UIUtils.SetLabelText(self.txt_Info2, Const_IDS[levelInfoData.LevelNameIDS]) end self:StartRepeatFunc(self.OnUpdateFun, 5) self:SetPushStyle(LuaConst.PushStyleEnum.CLOSENOTRECOVER) end function UIMapInfoView:OnUpdateFun(deltaTime, timeSinceUpdate) self:CloseView() end return UIMapInfoView