Merge branch 'master' into production

This commit is contained in:
Nick Winter 2014-12-29 20:06:40 -08:00
commit bc08d98e4a
2 changed files with 4 additions and 1 deletions

View file

@ -123,6 +123,9 @@ module.exports = class Level extends CocoModel
else if placeholderConfig.extraHUDProperties else if placeholderConfig.extraHUDProperties
levelThangComponent.config ?= {} levelThangComponent.config ?= {}
levelThangComponent.config.extraHUDProperties = _.union(levelThangComponent.config.extraHUDProperties ? [], placeholderConfig.extraHUDProperties) levelThangComponent.config.extraHUDProperties = _.union(levelThangComponent.config.extraHUDProperties ? [], placeholderConfig.extraHUDProperties)
else if placeholderConfig.voiceRange # Pull in voiceRange
levelThangComponent.config ?= {}
levelThangComponent.config.voiceRange = placeholderConfig.voiceRange
if isHero if isHero
if equips = _.find levelThang.components, {original: LevelComponent.EquipsID} if equips = _.find levelThang.components, {original: LevelComponent.EquipsID}

View file

@ -201,7 +201,7 @@ module.exports = class CampaignEditorView extends RootView
onCampaignLevelClicked: (levelOriginal) -> onCampaignLevelClicked: (levelOriginal) ->
return unless levelTreema = @treema.childrenTreemas?.levels?.childrenTreemas?[levelOriginal] return unless levelTreema = @treema.childrenTreemas?.levels?.childrenTreemas?[levelOriginal]
if key.ctrl if key.ctrl or key.command
url = "/editor/level/#{levelTreema.data.slug}" url = "/editor/level/#{levelTreema.data.slug}"
window.open url, '_blank' window.open url, '_blank'
levelTreema.select() levelTreema.select()