local UITimeLineQuickSkip = UIViewClass() function UITimeLineQuickSkip:OnOpened(context) self.clickCallback = context.Callback UIUtils.SetLabelText(self.UICommonPopShowView.lab_Title, Const_IDS.IDS_JuQingImprove_Title) UIUtils.SetLabelText(self.UICommonPopShowView.TextBtn1, Const_IDS.IDS_BUTTON_CONFIRM) UIUtils.SetLabelText(self.UICommonPopShowView.TextBtn2, Const_IDS.IDS_BUTTON_CANCEL) UIUtils.SetLabelText(self.txt_PlotDesc, Const_IDS[context.RewardData.IntroductionID]) end function UITimeLineQuickSkip:OnClosed() self.clickCallback = nil end function UITimeLineQuickSkip:OnButtonClicked(comp) if comp == self.UICommonPopShowView.btn_2 then if self.clickCallback then self.clickCallback:Call(false) end self:CloseView() elseif comp == self.UICommonPopShowView.btn_1 then if self.clickCallback then self.clickCallback:Call(true) end CTL.Cutscene.SetLocalTimeLineSkip(self.context.RewardData.TimeLineGroup) self:CloseView() end end return UITimeLineQuickSkip