local UISlgGvEAuctionTipsPanel = UIViewClass() function UISlgGvEAuctionTipsPanel:OnOpened() self:RegistSystemEvent(EventID.UI_SlgGve_UpdateGridInfo, self.RefreshRewards) UIUtils.SetLabelText(self.UITemplatePopUpZero.txt_Title, Const_IDS.IDS_SlgGve_Auction_Hint_9) self.UITemplatePopUpZero.state_Remind:SetState(1) self:RefreshRewards() end function UISlgGvEAuctionTipsPanel:RefreshRewards() if MDL.SlgGvE.GetCurBossGveMapID() then local gridCfg = DataSheetManager.SlgGvEPlotData:GetDataByGveMapID(MDL.SlgGvE.GetCurBossGveMapID()) local auctionItems = MDL.GuildAuction.GetAuctionRewardsShowList(gridCfg.GveAuctionRewardID, LuaConst.ActivityType.SlgGvE, true) self.LoopScroll:ReloadAll(auctionItems) end end function UISlgGvEAuctionTipsPanel:OnBackButtonPressed() self:OnButtonClicked(self.btn_Close) end function UISlgGvEAuctionTipsPanel:OnButtonClicked(com) if com == self.UITemplatePopUpZero.Bottom then self:CloseView() elseif com == self.btn_Cancel then self:CloseView() elseif com == self.btn_Go then self:CloseView() UIManager.OpenAndPushAll(Const_UI_Lua.UIEnum.UISlgGvEAuctionBase, nil, Const_UI_Lua.UIEnum.UIGuildAuctionBase) end end function UISlgGvEAuctionTipsPanel:OnCellInit(scrollRect, index, cellTable, data) UTL.Item.SetItemCell(cellTable.item, data.ItemID, data.ItemNum) end function UISlgGvEAuctionTipsPanel:OnCellClicked(scrollRect, index, cellTable, target, data) UTL.ItemTips.ShowCommonTipsById(data.itemData.itemId) end function UISlgGvEAuctionTipsPanel:OnClosed() self.UITemplatePopUpZero.state_Remind:SetState(0) end return UISlgGvEAuctionTipsPanel