mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 10:06:08 -05:00
Made sure all dots are invisible by default.
This commit is contained in:
parent
b1f4dc996d
commit
e1e8945f9e
1 changed files with 4 additions and 3 deletions
|
@ -133,12 +133,13 @@ module.exports = class ThangTypeEditView extends RootView
|
||||||
@topLayer.addChild(@groundDot, @torsoDot, @mouthDot, @aboveHeadDot)
|
@topLayer.addChild(@groundDot, @torsoDot, @mouthDot, @aboveHeadDot)
|
||||||
@updateGrid()
|
@updateGrid()
|
||||||
_.defer @refreshAnimation
|
_.defer @refreshAnimation
|
||||||
|
@toggleDots(false)
|
||||||
|
|
||||||
createjs.Ticker.setFPS(30)
|
createjs.Ticker.setFPS(30)
|
||||||
createjs.Ticker.addEventListener('tick', @stage)
|
createjs.Ticker.addEventListener('tick', @stage)
|
||||||
|
|
||||||
toggleDots: ->
|
toggleDots: (newShowDots) ->
|
||||||
@showDots = not @showDots
|
@showDots = if typeof(newShowDots) is 'boolean' then newShowDots else not @showDots
|
||||||
@updateDots()
|
@updateDots()
|
||||||
|
|
||||||
updateDots: ->
|
updateDots: ->
|
||||||
|
|
Loading…
Reference in a new issue