2014-11-28 20:49:41 -05:00
|
|
|
ModalView = require 'views/core/ModalView'
|
2014-09-17 21:56:08 -04:00
|
|
|
template = require 'templates/play/modal/play-settings-modal'
|
|
|
|
|
|
|
|
module.exports = class PlaySettingsModal extends ModalView
|
|
|
|
className: 'modal fade play-modal'
|
|
|
|
template: template
|
|
|
|
modalWidthPercent: 90
|
|
|
|
id: 'play-settings-modal'
|
|
|
|
#instant: true
|
|
|
|
|
|
|
|
#events:
|
|
|
|
# 'change input.select': 'onSelectionChanged'
|
|
|
|
|
|
|
|
constructor: (options) ->
|
|
|
|
super options
|
|
|
|
|
|
|
|
getRenderData: (context={}) ->
|
|
|
|
context = super(context)
|
|
|
|
context
|
|
|
|
|
|
|
|
afterRender: ->
|
|
|
|
super()
|
|
|
|
return unless @supermodel.finished()
|
2014-11-26 09:58:23 -05:00
|
|
|
@playSound 'game-menu-open'
|
2014-09-17 21:56:08 -04:00
|
|
|
|
|
|
|
onHidden: ->
|
|
|
|
super()
|
2014-11-26 09:58:23 -05:00
|
|
|
@playSound 'game-menu-close'
|