local UIFunctionUnlockShow = require "View/FunctionNotice/UIFunctionUnlockShow" local UIGoldenHeroStoreUnlockShow = UIViewClass(UIFunctionUnlockShow) function UIGoldenHeroStoreUnlockShow:InitIcon(config) UIUtils.SetImageByAssetBundle(self.img_icon, config.Icon) self.img_icon:SetNativeSize() UIUtils.SetLabelText(self.txt_NewFunctionName, Const_IDS[config.Name]) if UIManager.IsViewOpened(Const_UI_Lua.UIEnum.UIGoldenHeroStore) then self:StartRepeatFunc(self.OnUpdateFun, 0.1) CTL.Sound.PlayGameSound("UI_deblock") else self:CloseView() end end local IconNormalScale = 0.6 function UIGoldenHeroStoreUnlockShow:SetTargetAndClose() local target = self.context.Node if target ~= nil then target:SetLocalScale(IconNormalScale, IconNormalScale) end self.context.Node = nil self:CloseView() end return UIGoldenHeroStoreUnlockShow