mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Finished removing grid from playback options menu.
This commit is contained in:
parent
35b107cf58
commit
7300c4b3b8
2 changed files with 0 additions and 11 deletions
|
@ -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()
|
||||
|
||||
|
|
|
@ -29,9 +29,6 @@ module.exports =
|
|||
'level-set-debug':
|
||||
{} # TODO schema
|
||||
|
||||
'level-set-grid':
|
||||
{} # TODO schema
|
||||
|
||||
'level:restarted':
|
||||
{} # TODO schema
|
||||
|
||||
|
|
Loading…
Reference in a new issue