mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 10:56:53 -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' }
|
rasterIcon: { type: 'string', format: 'image-file', title: 'Raster Image Icon' }
|
||||||
containerIcon: { type: 'string' }
|
containerIcon: { type: 'string' }
|
||||||
featureImage: { type: 'string', format: 'image-file', title: 'Feature Image' }
|
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' },
|
dollImages: c.object { title: 'Paper Doll Images' },
|
||||||
male: { type: 'string', format: 'image-file', title: ' Male' }
|
male: { type: 'string', format: 'image-file', title: ' Male' }
|
||||||
female: { type: 'string', format: 'image-file', title: ' Female' }
|
female: { type: 'string', format: 'image-file', title: ' Female' }
|
||||||
|
|
|
@ -35,7 +35,7 @@ module.exports = class PlayHeroesModal extends ModalView
|
||||||
@confirmButtonI18N = options.confirmButtonI18N ? "common.save"
|
@confirmButtonI18N = options.confirmButtonI18N ? "common.save"
|
||||||
@heroes = new CocoCollection([], {model: ThangType})
|
@heroes = new CocoCollection([], {model: ThangType})
|
||||||
@heroes.url = '/db/thang.type?view=heroes'
|
@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'
|
@heroes.comparator = 'gems'
|
||||||
@listenToOnce @heroes, 'sync', @onHeroesLoaded
|
@listenToOnce @heroes, 'sync', @onHeroesLoaded
|
||||||
@supermodel.loadCollection(@heroes, 'heroes')
|
@supermodel.loadCollection(@heroes, 'heroes')
|
||||||
|
|
|
@ -23,6 +23,8 @@ ThangTypeHandler = class ThangTypeHandler extends Handler
|
||||||
'raster'
|
'raster'
|
||||||
'rasterIcon'
|
'rasterIcon'
|
||||||
'featureImage'
|
'featureImage'
|
||||||
|
'featureImageHair'
|
||||||
|
'featureImageThumb'
|
||||||
'dollImages'
|
'dollImages'
|
||||||
'spriteType'
|
'spriteType'
|
||||||
'i18nCoverage'
|
'i18nCoverage'
|
||||||
|
|
Loading…
Reference in a new issue