Made PixelGrid child of the Layer class

This commit is contained in:
unsettledgames
2021-11-12 00:09:20 +01:00
parent aed5f45e64
commit 07ed24cc6b
10 changed files with 124 additions and 127 deletions

View File

@ -21,7 +21,7 @@ const EditorState = (() => {
document.getElementById("switch-mode-button").innerHTML = 'Switch to basic mode';
//turn pixel grid off
togglePixelGrid('off');
pixelGrid.togglePixelGrid('off');
}
//switch to basic mode
else {
@ -47,7 +47,7 @@ const EditorState = (() => {
pixelEditorMode = 'Basic';
document.getElementById("switch-mode-button").innerHTML = 'Switch to advanced mode';
togglePixelGrid('on');
pixelGrid.togglePixelGrid('on');
}
}