local UIGoldenHeroBossFindPV = UIViewClass() local HeroHalfCardImagePath = ConstAssetPathConfig.HeroPicPath function UIGoldenHeroBossFindPV:OnOpened(context) local heroData = DataSheetManager.HeroNum:GetDataByID(context.heroId) if not heroData then logging.error(LTAG.ERROR, "No Hero Data With Id:", context.heroId) return end local path = string.format(HeroHalfCardImagePath, heroData.HalfCardImage) UIUtils.SetSpritePivotPos(self.img_Boss, path, 0.8) end function UIGoldenHeroBossFindPV:OnButtonClicked(comp) if comp == self.btn_Bottom then self:CloseView() end end return UIGoldenHeroBossFindPV