diff --git a/lua/app/ui/main_city/cell/bottom_btn_cell.lua b/lua/app/ui/main_city/cell/bottom_btn_cell.lua index 19231612..613db94b 100644 --- a/lua/app/ui/main_city/cell/bottom_btn_cell.lua +++ b/lua/app/ui/main_city/cell/bottom_btn_cell.lua @@ -24,7 +24,13 @@ function BottomBtnCell:refresh(desc, selected, showAni) end function BottomBtnCell:addClickListener(func) - self:getBaseObject():addClickListener(func, GConst.CLICK_SOUND.NORMAL) + self:getBaseObject():addClickListener(function() + local audioPath = AudioManager.CLICK_ID[GConst.CLICK_SOUND.NORMAL] + if audioPath then + AudioManager:playEffect(audioPath) + end + func() + end, GConst.CLICK_SOUND.NONE) end function BottomBtnCell:getCurLocalPosX()