Fixed palette loading from lpe file

This commit is contained in:
unsettledgames 2021-10-23 18:23:22 +02:00
parent bc34208d01
commit 43abd38ebf
2 changed files with 8599 additions and 18 deletions

View File

@ -22,6 +22,10 @@ document.getElementById('open-image-browse-holder').addEventListener('change', f
let dictionary = JSON.parse(e.target.result);
let mode = dictionary['editorMode'] == 'Advanced' ? 'Basic' : 'Advanced';
newPixel(dictionary['canvasWidth'], dictionary['canvasHeight'], mode, dictionary);
for (let i=0; i<dictionary['color' + i] != null; i++) {
addColor(dictionary['color'+i]);
}
}
}
else {

8613
package-lock.json generated

File diff suppressed because it is too large Load Diff