mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Util changes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user