Fixed #7 with a nice cast-end sound (just reverse of cast sound).
This commit is contained in:
parent
702eca5c81
commit
b3009ae909
1 changed files with 2 additions and 1 deletions
|
@ -57,7 +57,7 @@ module.exports = class CastButtonView extends View
|
||||||
|
|
||||||
onCastSpells: (e) ->
|
onCastSpells: (e) ->
|
||||||
@casting = true
|
@casting = true
|
||||||
Backbone.Mediator.publish 'play-sound', trigger: 'cast', volume: 0.25
|
Backbone.Mediator.publish 'play-sound', trigger: 'cast', volume: 0.5
|
||||||
@updateCastButton()
|
@updateCastButton()
|
||||||
@onWorldLoadProgressChanged progress: 0
|
@onWorldLoadProgressChanged progress: 0
|
||||||
|
|
||||||
|
@ -67,6 +67,7 @@ module.exports = class CastButtonView extends View
|
||||||
|
|
||||||
onNewWorld: (e) ->
|
onNewWorld: (e) ->
|
||||||
@casting = false
|
@casting = false
|
||||||
|
Backbone.Mediator.publish 'play-sound', trigger: 'cast-end', volume: 0.5
|
||||||
@updateCastButton()
|
@updateCastButton()
|
||||||
|
|
||||||
updateCastButton: ->
|
updateCastButton: ->
|
||||||
|
|
Reference in a new issue