local UIHeroExpression = require "View/Common/UIHeroExpression" local UIGachaExpressionLimit = UIViewClass(UIHeroExpression) -------------------------------- 系统函数 ------------------------------------------- --通用展示逻辑在UIHeroExpression, 分离出抽卡表现 function UIGachaExpressionLimit:InitParams(context) UIHeroExpression:InitParams(context) if self.isCanSkip then CTL.Tips.AddTipsMsg(Const_IDS.IDS_GachaModify_Change) end CTL.Sound.LowPass() local heroData = DataSheetManager.HeroNum:GetDataByID(context.heroId) if heroData.HeroQuality <= LuaConst.QualityColor.Orange then CTL.Sound.PlayGameSound("MUSIC_blue") else CTL.Sound.PlayGameSound("MUSIC_red") end end function UIGachaExpressionLimit:OnClosed() CTL.Sound.HighPass() CTL.Sound.PlayGameSound("MUSiC_empty") CTL.Sound.ResumeLevelSound() end return UIGachaExpressionLimit