Added menu opening sound to PlayHeroesModal

This commit is contained in:
Imperadeiro98 2015-08-20 20:43:04 +01:00
parent 551b450a68
commit 9cf4c06301

View file

@ -78,6 +78,7 @@ module.exports = class PlayHeroesModal extends ModalView
afterRender: ->
super()
return unless @supermodel.finished()
@playSound 'game-menu-open'
@$el.find('.hero-avatar').addClass 'ie' if @isIE()
heroes = @heroes.models
@$el.find('.hero-indicator').each ->
@ -334,7 +335,7 @@ module.exports = class PlayHeroesModal extends ModalView
onHidden: ->
super()
Backbone.Mediator.publish 'audio-player:play-sound', trigger: 'game-menu-close', volume: 1
@playSound 'game-menu-close'
destroy: ->
clearInterval @heroAnimationInterval