Merge pull request #1290 from jayant1992/master

Takes care of minor issues with terrain generator
This commit is contained in:
Nick Winter 2014-07-10 13:24:58 -07:00
commit b82e828272
3 changed files with 4 additions and 1 deletions

View file

@ -12,3 +12,4 @@ block modal-body-content
div.preset-name div.preset-name
span(data-i18n="ladder.grassy") Grassy span(data-i18n="ladder.grassy") Grassy
//- for model in models //- for model in models
block modal-footer

View file

@ -228,6 +228,7 @@ module.exports = class ThangsTabView extends View
for thang in e.thangs for thang in e.thangs
@selectAddThangType thang.id @selectAddThangType thang.id
@addThang @addThangType, thang.pos @addThang @addThangType, thang.pos
@selectAddThangType null
# TODO: figure out a good way to have all Surface clicks and Treema clicks just proxy in one direction, so we can maintain only one way of handling selection and deletion # TODO: figure out a good way to have all Surface clicks and Treema clicks just proxy in one direction, so we can maintain only one way of handling selection and deletion
onExtantThangSelected: (e) -> onExtantThangSelected: (e) ->

View file

@ -91,6 +91,7 @@ module.exports = class TerrainRandomiseModal extends ModalView
Backbone.Mediator.publish('randomise:terrain-generated', Backbone.Mediator.publish('randomise:terrain-generated',
'thangs': @thangs 'thangs': @thangs
) )
@hide()
randomiseThangs: (presetName, presetSize) -> randomiseThangs: (presetName, presetSize) ->
preset = presets[presetName] preset = presets[presetName]