Finished removing grid from playback options menu.

This commit is contained in:
Nick Winter 2014-08-26 14:00:03 -07:00
parent 35b107cf58
commit 7300c4b3b8
2 changed files with 0 additions and 11 deletions

View file

@ -3,7 +3,6 @@ CocoClass = require 'lib/CocoClass'
module.exports = class CoordinateGrid extends CocoClass
subscriptions:
'level-toggle-grid': 'onToggleGrid'
'level-set-grid': 'onSetGrid'
shortcuts:
'ctrl+g, ⌘+g': 'onToggleGrid'
@ -69,7 +68,6 @@ module.exports = class CoordinateGrid extends CocoClass
t.alpha = 0.75
@labels.push t
wop.y += gridSize
console.log wop.y, wopEnd.y, gridSize
if wopEnd.y < wop.y <= wopEnd.y - gridSize / 2
wop.y = wopEnd.y
@gridShape.graphics.endStroke()
@ -91,12 +89,6 @@ module.exports = class CoordinateGrid extends CocoClass
@gridContainer?.parent?
onToggleGrid: (e) ->
# TODO: figure out a better way of managing grid / debug so it's not split across PlaybackView and Surface
e?.preventDefault?()
if @gridShowing() then @hideGrid() else @showGrid()
flag = $('#grid-toggle i.icon-ok')
flag.toggleClass 'invisible', not @gridShowing()
onSetGrid: (e) ->
if e.grid then @showGrid() else @hideGrid()

View file

@ -29,9 +29,6 @@ module.exports =
'level-set-debug':
{} # TODO schema
'level-set-grid':
{} # TODO schema
'level:restarted':
{} # TODO schema