diff --git a/app/templates/modal/terrain_randomise.jade b/app/templates/modal/terrain_randomise.jade index 680af187c..9ac509c68 100644 --- a/app/templates/modal/terrain_randomise.jade +++ b/app/templates/modal/terrain_randomise.jade @@ -11,4 +11,5 @@ block modal-body-content span(data-i18n="ladder.small") Small div.preset-name span(data-i18n="ladder.grassy") Grassy - //- for model in models \ No newline at end of file + //- for model in models +block modal-footer diff --git a/app/views/editor/level/thangs_tab_view.coffee b/app/views/editor/level/thangs_tab_view.coffee index 010b38b50..e594b00be 100644 --- a/app/views/editor/level/thangs_tab_view.coffee +++ b/app/views/editor/level/thangs_tab_view.coffee @@ -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) -> diff --git a/app/views/modal/terrain_randomise_modal.coffee b/app/views/modal/terrain_randomise_modal.coffee index 94b4676fb..d737f929f 100644 --- a/app/views/modal/terrain_randomise_modal.coffee +++ b/app/views/modal/terrain_randomise_modal.coffee @@ -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]