mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-28 23:13:59 -04:00
Fixed loading marks so they are positioned correctly when they load and the world is paused.
This commit is contained in:
parent
7e8f74f385
commit
853a80dd23
2 changed files with 2 additions and 2 deletions
app
|
@ -172,7 +172,7 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass
|
||||||
return if @stillLoading
|
return if @stillLoading
|
||||||
@updatePosition()
|
@updatePosition()
|
||||||
if frameChanged
|
if frameChanged
|
||||||
@updateScale()
|
@updateScale() # must happen before rotation
|
||||||
@updateAlpha()
|
@updateAlpha()
|
||||||
@updateRotation()
|
@updateRotation()
|
||||||
@updateAction()
|
@updateAction()
|
||||||
|
|
|
@ -270,7 +270,7 @@ module.exports = class ThangTypeEditView extends View
|
||||||
@$el.find('.rotation-label').text " #{value}° "
|
@$el.find('.rotation-label').text " #{value}° "
|
||||||
if @currentSprite
|
if @currentSprite
|
||||||
@currentSprite.rotation = value
|
@currentSprite.rotation = value
|
||||||
@currentSprite.update()
|
@currentSprite.update(true)
|
||||||
|
|
||||||
updateScale: =>
|
updateScale: =>
|
||||||
value = (@scaleSlider.slider('value') + 1) / 10
|
value = (@scaleSlider.slider('value') + 1) / 10
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue