Added a 'stop' button for viewing end animations on thang types.

This commit is contained in:
Scott Erickson 2014-02-12 16:18:25 -08:00
parent 60e0d59a66
commit f3489a6c2f
3 changed files with 8 additions and 1 deletions

View file

@ -35,7 +35,7 @@
position: relative
top: 3px
#marker-button
#marker-button, #end-button
float: right
margin-right: 10px
position: relative

View file

@ -39,6 +39,9 @@ block content
button.btn.btn-small.btn-primary#marker-button
i.icon-map-marker
button.btn.btn-small.btn-primary#end-button
i.icon-stop
div.slider-cell
| Rotation:
span.rotation-label

View file

@ -29,6 +29,7 @@ module.exports = class ThangTypeEditView extends View
'change #real-upload-button': 'animationFileChosen'
'change #animations-select': 'showAnimation'
'click #marker-button': 'toggleDots'
'click #end-button': 'endAnimation'
subscriptions:
'save-new-version': 'saveNewThangType'
@ -130,6 +131,9 @@ module.exports = class ThangTypeEditView extends View
@aboveHeadDot.y = CENTER.y + aboveHead.y * @scale
@stage.addChild(@groundDot, @torsoDot, @mouthDot, @aboveHeadDot)
endAnimation: ->
@currentSprite?.queueAction('idle')
updateGrid: ->
grid = new createjs.Container()
line = new createjs.Shape()