local UIPushInterfaceLvbu = UIViewClass() local LVBU_HERO_ID = 22 function UIPushInterfaceLvbu:OnOpened() local heroIntelligence = DataSheetManager.HeroNum:GetDataByID(LVBU_HERO_ID).HeroIntelligence if self.loc_State.CurState == 0 then UIUtils.SetLabel(self.txt_Talent, string.FormatByIdsId(Const_IDS["IDS_Horse_Title_7"], heroIntelligence)) UTL.Item.SetLocalizationImage(self.loc_State, self.img_Title, "UI_PushInterface/lbplt_msz_zqwj.png") else UIUtils.SetLabel(self.txt_Talent_Loc, string.FormatByIdsId(Const_IDS["IDS_Horse_Title_7"], heroIntelligence)) end end function UIPushInterfaceLvbu:OnBackButtonPressed() self:OnButtonClicked(self.btn_Close) end function UIPushInterfaceLvbu:OnButtonClicked(comp) if comp == self.btn_Get then UIManager.OpenAndPushAll(Const_UI_Lua.UIEnum.UIGuildAuctionBase) elseif comp == self.btn_Close then CTL.PushInterface.HidePushInterface(self.__viewClassPath, self.toggle_Skip) self:CloseView() end end return UIPushInterfaceLvbu