mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -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
|
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
|
||||||
|
|
|
@ -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) ->
|
||||||
|
|
|
@ -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]
|
||||||
|
|
Loading…
Reference in a new issue