Added feature image hair and thumb slots to the ThangType.

This commit is contained in:
Nick Winter 2014-11-26 16:29:48 -08:00
parent 53c6da5ef8
commit 915a3243f5
3 changed files with 5 additions and 1 deletions

View file

@ -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' }

View file

@ -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')

View file

@ -23,6 +23,8 @@ ThangTypeHandler = class ThangTypeHandler extends Handler
'raster' 'raster'
'rasterIcon' 'rasterIcon'
'featureImage' 'featureImage'
'featureImageHair'
'featureImageThumb'
'dollImages' 'dollImages'
'spriteType' 'spriteType'
'i18nCoverage' 'i18nCoverage'