Added basic structure and comments for Tools

Fixed lpe palette loading, added custom events
This commit is contained in:
unsettledgames
2021-10-25 19:23:06 +02:00
parent a930fabcba
commit 0fcb309cc7
10 changed files with 131 additions and 13 deletions

View File

@ -180,6 +180,9 @@ const FileManager = (() => {
reader.onload = function (e) {
let dictionary = JSON.parse(e.target.result);
Startup.newPixel(dictionary['canvasWidth'], dictionary['canvasHeight'], dictionary);
for (let i=0; i<dictionary['color' + i] != null; i++) {
ColorModule.addColor(dictionary['color'+i]);
}
}
}