local UIExpelMonsterSweepSuccess = UIViewClass() function UIExpelMonsterSweepSuccess:OnOpened(context) CTL.Sound.PlayGameSound("UI_wipe_success") UIUtils.SetLabelText(self.UITemplatePopUpZero.txt_Title, Const_IDS.IDS_ResourcesChapter_RewardReminder_2) self.txt_Score.text = MDL.ExpelMonster.GetTodayMaxDamageStr() self.loop_SweepReward:ReloadAll(context) end function UIExpelMonsterSweepSuccess:OnButtonClicked(comp) if comp == self.UITemplatePopUpZero.Bottom then self:CloseView() end end function UIExpelMonsterSweepSuccess:OnCellInit(scrollRect, index, cellTable, data) if scrollRect == self.loop_SweepReward then UTL.Item.SetItemCell(cellTable.item, data.ItemId, data.ItemCount) end end function UIExpelMonsterSweepSuccess:OnCellClicked(scrollRect, index, cellTable, target, data) if scrollRect == self.loop_SweepReward then if target == cellTable.item.event_Click then UTL.ItemTips.ShowCommonTipsById(data.ItemId) end end end return UIExpelMonsterSweepSuccess