mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Renamed canvases to spritesheets in the edit thang view.
This commit is contained in:
parent
514adb2159
commit
2cf19a4781
3 changed files with 6 additions and 6 deletions
|
@ -66,7 +66,7 @@
|
|||
background-color: white
|
||||
border-radius: 4px
|
||||
|
||||
#canvases
|
||||
#spritesheets
|
||||
border: 1px solid green
|
||||
max-width: 100%
|
||||
max-height: 600px
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue