local UIFightThroneRemind = UIViewClass() function UIFightThroneRemind:OnOpened(context) local state, offset = CTL.FightThrone.GetEntryState() if state == CTL.FightThrone.EntryState.Opening then self:StartRepeatFunc(self.OnTimeEnd, offset, 1) self.lab_Tips:ResetAndBeginCustomTimer(false, offset, 0, UIUtils.GetLocalizedTxt(Const_IDS.IDS_FightThrone_Notice)) else self:CloseView() end end function UIFightThroneRemind:OnTimeEnd() self:CloseView() end function UIFightThroneRemind:OnBackButtonPressed() self:OnButtonClicked(self.btn_02) end function UIFightThroneRemind:OnButtonClicked(comp) if comp == self.btn_02 then self:CloseView() elseif comp == self.btn_01 then UIManager.OpenAndPushAll(Const_UI_Lua.UIEnum.UIFightThroneMain) end end return UIFightThroneRemind