mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-05 13:21:10 -05:00
28 lines
640 B
CoffeeScript
28 lines
640 B
CoffeeScript
ModalView = require 'views/core/ModalView'
|
|
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()
|
|
@playSound 'game-menu-open'
|
|
|
|
onHidden: ->
|
|
super()
|
|
@playSound 'game-menu-close'
|