mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Added menu opening sound to PlayHeroesModal
This commit is contained in:
parent
551b450a68
commit
9cf4c06301
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue