local UIHorseEquipBreakSuccess = UIViewClass() function UIHorseEquipBreakSuccess:OnOpened(context) UIUtils.SetLabelText(self.UITemplatePopUpZero.txt_Title, Const_IDS.IDS_HorseEquip_Hint_4) self.txt_Lv.text = string.FormatByIdsKey("IDS_HorseSoul_Button3", "0/"..context.limitLv) self.horseData = context.horseData local horseEquipEnhance = DataSheetManager.HorseEquipEnhance:GetDataByEnhanceLevel(context.limitLv) UIUtils.SetImageByAssetBundle(self.img_Item, horseEquipEnhance.Icon) UIUtils.SetActive(self.tips, CTL.HorseEquip.GetArmorMaxLv() > context.limitLv) end function UIHorseEquipBreakSuccess:OnButtonClicked(comp) if comp == self.btn_Goto then UIManager.OpenView(Const_UI_Lua.UIEnum.UIHorseEquipLevelUp, {horseData = self.horseData}) self:CloseView() elseif comp == self.UITemplatePopUpZero.Bottom then self:CloseView() end end return UIHorseEquipBreakSuccess