local UIGachaRewardLimit = require("View/DrawCard/TimeLimit/UIGachaRewardLimit") local UISuperGoldDrawCardReward = UIViewClass(UIGachaRewardLimit) function UISuperGoldDrawCardReward:OnOpened(context) end function UISuperGoldDrawCardReward:InitView() UIUtils.SetLabelText(self.lab_Title, Const_IDS.IDS_DrawCard_LimitAccumulativeHint) self.descIDS = Const_IDS.IDS_SuperGoldHeroActivity_DrawCard_Hint_14 end function UISuperGoldDrawCardReward:OnButtonClicked(comp) if comp == self.btn_Close then self:CloseView() end end function UISuperGoldDrawCardReward:OnBackButtonPressed() self:OnButtonClicked(self.btn_Close) end function UISuperGoldDrawCardReward:SetRewardItem(cellTable, data) for i, v in ipairs(cellTable.group_Item) do local itemData = data.Item_Table[i] if itemData then UIUtils.SetActive(v.gameObject, true) UTL.Item.SetItemCell(v, itemData.ItemID, itemData.ItemNum) else UIUtils.SetActive(v.gameObject, false) end end end function UISuperGoldDrawCardReward:OnClickRewardItem(cellTable, target, data) for i, v in ipairs(cellTable.group_Item) do if v.event_Click == target then UTL.ItemTips.ShowCommonTipsById(data.Item_Table[i].ItemID) end end end return UISuperGoldDrawCardReward