Util changes

This commit is contained in:
Leamsi Escribano
2021-06-28 19:54:54 -04:00
parent 5eee1b941e
commit ec9dbee493
6 changed files with 111 additions and 104 deletions

View File

@@ -209,8 +209,9 @@ function newPixel (width, height, editorMode, fileContent = null) {
function newFromTemplate(preset, x, y) {
if (preset != '') {
setText('palette-button-splash', presets[preset].palette);
setText('palette-button', presets[preset].palette);
const presetProperties = presetsModule.propertiesOf(preset);
Util.setText('palette-button-splash', presetProperties.palette);
Util.setText('palette-button', presetProperties.palette);
x = presets[preset].width;
y = presets[preset].height;