local UIGaChaPV = UIViewClass() function UIGaChaPV:OnOpened(context) local i = context.startHeroId for i = 1, #self.Content do UIUtils.SetActive(self.Content[i].img_Hero, true) UTL.Item.SetHeroHalfCardImageByHeroId(self.Content[i].img_Hero, context.startHeroId + i - 1) end end function UIGaChaPV:OnButtonClicked(comp) if comp == self.UITemplateTitlePanel.btn_close or comp == self.PanelMid.btn_Confirm then self:CloseView() elseif comp == self.UITemplateTitlePanel.btn_Home then CTL.HomeMain.CloseViewBackHomeMain() end end return UIGaChaPV