mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Added feature image hair and thumb slots to the ThangType.
This commit is contained in:
parent
53c6da5ef8
commit
915a3243f5
3 changed files with 5 additions and 1 deletions
|
@ -133,6 +133,8 @@ _.extend ThangTypeSchema.properties,
|
|||
rasterIcon: { type: 'string', format: 'image-file', title: 'Raster Image Icon' }
|
||||
containerIcon: { type: 'string' }
|
||||
featureImage: { type: 'string', format: 'image-file', title: 'Feature Image' }
|
||||
featureImageHair: { type: 'string', format: 'image-file', title: 'Feature Image Hair' }
|
||||
featureImageThumb: { type: 'string', format: 'image-file', title: 'Feature Image Thumb' }
|
||||
dollImages: c.object { title: 'Paper Doll Images' },
|
||||
male: { type: 'string', format: 'image-file', title: ' Male' }
|
||||
female: { type: 'string', format: 'image-file', title: ' Female' }
|
||||
|
|
|
@ -35,7 +35,7 @@ module.exports = class PlayHeroesModal extends ModalView
|
|||
@confirmButtonI18N = options.confirmButtonI18N ? "common.save"
|
||||
@heroes = new CocoCollection([], {model: ThangType})
|
||||
@heroes.url = '/db/thang.type?view=heroes'
|
||||
@heroes.setProjection ['original','name','slug','soundTriggers','featureImage','gems','heroClass','description','components','extendedName','unlockLevelName','i18n']
|
||||
@heroes.setProjection ['original','name','slug','soundTriggers','featureImage','featureImageHair','featureImageThumb','gems','heroClass','description','components','extendedName','unlockLevelName','i18n']
|
||||
@heroes.comparator = 'gems'
|
||||
@listenToOnce @heroes, 'sync', @onHeroesLoaded
|
||||
@supermodel.loadCollection(@heroes, 'heroes')
|
||||
|
|
|
@ -23,6 +23,8 @@ ThangTypeHandler = class ThangTypeHandler extends Handler
|
|||
'raster'
|
||||
'rasterIcon'
|
||||
'featureImage'
|
||||
'featureImageHair'
|
||||
'featureImageThumb'
|
||||
'dollImages'
|
||||
'spriteType'
|
||||
'i18nCoverage'
|
||||
|
|
Loading…
Reference in a new issue