mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-30 16:03:37 -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
|
supermodel: @supermodel
|
||||||
level: @level
|
level: @level
|
||||||
world: @world
|
world: @world
|
||||||
thangType: thangType
|
|
||||||
|
if @level.get('type') is 'hero' then options.thangType = thangType
|
||||||
|
|
||||||
@thangComponentEditView = new ThangComponentsEditView options
|
@thangComponentEditView = new ThangComponentsEditView options
|
||||||
@listenTo @thangComponentEditView, 'components-changed', @onComponentsChanged
|
@listenTo @thangComponentEditView, 'components-changed', @onComponentsChanged
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue