2014-08-08 14:36:41 -04:00
|
|
|
CocoView = require 'views/kinds/CocoView'
|
|
|
|
template = require 'templates/game-menu/choose-hero-view'
|
|
|
|
{me} = require 'lib/auth'
|
|
|
|
ThangType = require 'models/ThangType'
|
|
|
|
|
|
|
|
module.exports = class ChooseHeroView extends CocoView
|
|
|
|
id: 'choose-hero-view'
|
|
|
|
className: 'tab-pane'
|
|
|
|
template: template
|
|
|
|
|
2014-08-10 20:41:18 -04:00
|
|
|
events:
|
|
|
|
'click #restart-level-confirm-button': -> Backbone.Mediator.publish 'restart-level'
|
|
|
|
|
2014-08-08 14:36:41 -04:00
|
|
|
getRenderData: (context={}) ->
|
|
|
|
context = super(context)
|
2014-08-12 12:13:23 -04:00
|
|
|
context.showDevBits = @options.showDevBits
|
2014-08-08 14:36:41 -04:00
|
|
|
context
|
|
|
|
|
|
|
|
afterRender: ->
|
|
|
|
super()
|