mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Finished binding events to splash page
Must write the log update and maybe find a way to randomize the splash images
This commit is contained in:
@@ -196,9 +196,21 @@ function newPixel (width, height, editorMode, fileContent = null) {
|
||||
|
||||
// Applying the correct editor mode
|
||||
if (pixelEditorMode == 'Basic') {
|
||||
switchMode('Advanced', false);
|
||||
switchMode(false);
|
||||
}
|
||||
else {
|
||||
switchMode('Basic', false);
|
||||
switchMode(false);
|
||||
}
|
||||
}
|
||||
|
||||
function newFromTemplate(preset, x, y) {
|
||||
if (preset != '') {
|
||||
setText('palette-button-splash', presets[preset].palette);
|
||||
setText('palette-button', presets[preset].palette);
|
||||
|
||||
x = presets[preset].width;
|
||||
y = presets[preset].height;
|
||||
}
|
||||
|
||||
newPixel(x, y, pixelEditorMode == 'Advanced' ? 'Basic' : 'Advanced');
|
||||
}
|
||||
Reference in New Issue
Block a user