Renamed canvases to spritesheets in the edit thang view.

This commit is contained in:
Scott Erickson 2014-01-20 22:37:47 -08:00
parent 514adb2159
commit 2cf19a4781
3 changed files with 6 additions and 6 deletions

View file

@ -66,7 +66,7 @@
background-color: white
border-radius: 4px
#canvases
#spritesheets
border: 1px solid green
max-width: 100%
max-height: 600px

View file

@ -15,7 +15,7 @@ block content
li
a(href="#editor-thang-components-tab-view", data-toggle="tab") Components
li
a(href="#editor-thang-canvases-view", data-toggle="tab") Canvases
a(href="#editor-thang-spritesheets-view", data-toggle="tab") Spritesheets
li
a(href="#editor-thang-colors-tab-view", data-toggle="tab")#color-tab Colors
@ -68,8 +68,8 @@ block content
#thang-components-edit-view
div.tab-pane#editor-thang-canvases-view
div.tab-pane#editor-thang-spritesheets-view
div#canvases
div#spritesheets
.clearfix

View file

@ -188,10 +188,10 @@ module.exports = class ThangTypeEditView extends View
options = @getSpriteOptions()
@thangType.resetSpriteSheetCache()
spriteSheet = @thangType.buildSpriteSheet(options)
$('#canvases').empty()
$('#spritesheets').empty()
return unless spriteSheet
for image in spriteSheet._images
$('#canvases').append(image)
$('#spritesheets').append(image)
@showAnimation()
@updatePortrait()