mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 05:53:39 -04:00
Level editor only folds in ThangType components into Thang component configs if the level is type 'hero'.
This commit is contained in:
parent
0236ca6fa9
commit
f93ef2005e
1 changed files with 2 additions and 1 deletions
|
@ -42,7 +42,8 @@ module.exports = class LevelThangEditView extends CocoView
|
|||
supermodel: @supermodel
|
||||
level: @level
|
||||
world: @world
|
||||
thangType: thangType
|
||||
|
||||
if @level.get('type') is 'hero' then options.thangType = thangType
|
||||
|
||||
@thangComponentEditView = new ThangComponentsEditView options
|
||||
@listenTo @thangComponentEditView, 'components-changed', @onComponentsChanged
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue