pixel-editor/js/_onLoad.js

13 lines
446 B
JavaScript
Raw Normal View History

2019-03-27 02:20:54 +03:00
//when the page is donw loading, you can get ready to start
window.onload = function(){
currentTool.updateCursor();
2019-03-27 02:20:54 +03:00
//if the user specified dimentions
if (specifiedDimentions)
//create a new pixel
2020-07-21 00:33:17 +03:00
newPixel(getValue('size-width'),getValue('size-height'), getValue('editor-mode'));
2019-03-27 02:20:54 +03:00
else
//otherwise show the new pixel dialog
2021-01-08 18:20:39 +03:00
if (settings.showLog != undefined && !settings.showLog)
showDialogue('new-pixel', false);
};