mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Added a 'stop' button for viewing end animations on thang types.
This commit is contained in:
parent
60e0d59a66
commit
f3489a6c2f
3 changed files with 8 additions and 1 deletions
|
@ -35,7 +35,7 @@
|
|||
position: relative
|
||||
top: 3px
|
||||
|
||||
#marker-button
|
||||
#marker-button, #end-button
|
||||
float: right
|
||||
margin-right: 10px
|
||||
position: relative
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue