mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
Merge pull request #1290 from jayant1992/master
Takes care of minor issues with terrain generator
This commit is contained in:
commit
b82e828272
3 changed files with 4 additions and 1 deletions
|
@ -12,3 +12,4 @@ block modal-body-content
|
|||
div.preset-name
|
||||
span(data-i18n="ladder.grassy") Grassy
|
||||
//- for model in models
|
||||
block modal-footer
|
||||
|
|
|
@ -228,6 +228,7 @@ module.exports = class ThangsTabView extends View
|
|||
for thang in e.thangs
|
||||
@selectAddThangType thang.id
|
||||
@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
|
||||
onExtantThangSelected: (e) ->
|
||||
|
|
|
@ -91,6 +91,7 @@ module.exports = class TerrainRandomiseModal extends ModalView
|
|||
Backbone.Mediator.publish('randomise:terrain-generated',
|
||||
'thangs': @thangs
|
||||
)
|
||||
@hide()
|
||||
|
||||
randomiseThangs: (presetName, presetSize) ->
|
||||
preset = presets[presetName]
|
||||
|
|
Loading…
Reference in a new issue