From 915a3243f55462d907bcc2925da1812a156c1a07 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Wed, 26 Nov 2014 16:29:48 -0800 Subject: [PATCH] Added feature image hair and thumb slots to the ThangType. --- app/schemas/models/thang_type.coffee | 2 ++ app/views/play/modal/PlayHeroesModal.coffee | 2 +- server/levels/thangs/thang_type_handler.coffee | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/schemas/models/thang_type.coffee b/app/schemas/models/thang_type.coffee index 8375ef5e5..a90b465a4 100644 --- a/app/schemas/models/thang_type.coffee +++ b/app/schemas/models/thang_type.coffee @@ -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' } diff --git a/app/views/play/modal/PlayHeroesModal.coffee b/app/views/play/modal/PlayHeroesModal.coffee index 3dec5461a..6fce8b46a 100644 --- a/app/views/play/modal/PlayHeroesModal.coffee +++ b/app/views/play/modal/PlayHeroesModal.coffee @@ -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') diff --git a/server/levels/thangs/thang_type_handler.coffee b/server/levels/thangs/thang_type_handler.coffee index 1386fb08e..e6a537e69 100644 --- a/server/levels/thangs/thang_type_handler.coffee +++ b/server/levels/thangs/thang_type_handler.coffee @@ -23,6 +23,8 @@ ThangTypeHandler = class ThangTypeHandler extends Handler 'raster' 'rasterIcon' 'featureImage' + 'featureImageHair' + 'featureImageThumb' 'dollImages' 'spriteType' 'i18nCoverage'