|
|
@ -58,7 +58,7 @@ module.exports = function attachDebugger (screen, connection) { |
|
|
|
}, |
|
|
|
}, |
|
|
|
drawEnd () { |
|
|
|
drawEnd () { |
|
|
|
endTime = Date.now() |
|
|
|
endTime = Date.now() |
|
|
|
console.log(drawInfo.textContent = `Draw: ${lastReason} (${(endTime - startTime)} ms) with graphics=${screen.window.graphics}`) |
|
|
|
drawInfo.textContent = `Draw: ${lastReason} (${(endTime - startTime)} ms), fancy_gfx=${screen.window.graphics}` |
|
|
|
startDrawing() |
|
|
|
startDrawing() |
|
|
|
}, |
|
|
|
}, |
|
|
|
setCell (cell, flags) { |
|
|
|
setCell (cell, flags) { |
|
|
@ -253,7 +253,7 @@ module.exports = function attachDebugger (screen, connection) { |
|
|
|
buttons.appendChild(redraw) |
|
|
|
buttons.appendChild(redraw) |
|
|
|
|
|
|
|
|
|
|
|
const fancyGraphics = mk('button') |
|
|
|
const fancyGraphics = mk('button') |
|
|
|
fancyGraphics.textContent = 'Toggle Graphics' |
|
|
|
fancyGraphics.textContent = 'Toggle Fancy Graphics' |
|
|
|
fancyGraphics.addEventListener('click', e => { |
|
|
|
fancyGraphics.addEventListener('click', e => { |
|
|
|
screen.window.graphics = +!screen.window.graphics |
|
|
|
screen.window.graphics = +!screen.window.graphics |
|
|
|
}) |
|
|
|
}) |
|
|
|