Commit Graph

237 Commits

Author SHA1 Message Date
404b1c56c1 Added EditorState, moved editor mode management to that IIFE 2021-07-23 18:54:09 +02:00
366c2d9e2a Turned _settings.js into an IIFE 2021-07-23 18:45:23 +02:00
526177c6fe Fixed palette loading bug 2021-07-23 18:30:04 +02:00
8ca148e34c Removed _loadPalette.js and moved its logic to FileManager.js 2021-07-23 16:35:42 +02:00
e4415a5358 Removed all Layer-related global variables 2021-07-23 16:25:15 +02:00
7084988de4 Removed global layerList and moved it to LayerList.js 2021-07-23 15:15:17 +02:00
17b2a54d8a Moved right click layer menu from Layer to LayerList 2021-07-23 14:49:55 +02:00
d3781979b4 Removed layerListEntry from global variables 2021-07-23 13:08:04 +02:00
6e4ab3990d Added LayerList to handle all the functions that involve more than 1 layer
Merge, flatten, add layer, delete layer etc, I'm planning to move a few global variables in Layer to LayerList.
2021-07-22 22:42:41 +02:00
804a0335b1 Removed replaceAllOfColor, made another commenting round 2021-07-22 19:26:40 +02:00
6b84cdaa4d Removed getCursorPosition 2021-07-22 19:05:58 +02:00
15cca5ffb7 Removed global pixelGridCanvas and currentMouseEvent 2021-07-22 18:57:44 +02:00
cd03923a86 Removed global canvases 2021-07-22 18:11:55 +02:00
6bd6515385 Removed currentGlobalColor 2021-07-22 18:02:19 +02:00
1a6079cc81 Removed "colors" global variable 2021-07-22 16:40:58 +02:00
0d7a00c62f Removed global dragging variable
The "dragging" variable is now handled in Input.js
2021-07-22 15:21:48 +02:00
b959a70f55 Added mouse event simulation 2021-07-22 15:18:46 +02:00
4e85ad1a73 Merge remote-tracking branch 'upstream/master' 2021-07-22 13:17:50 +02:00
e0f64c97ba Fix brushPreview lagging behind 2021-07-21 23:23:31 +02:00
1b1290c017 Refactored Input.js to Events.js
Started working on Input.js, this time it's used to handle mouse clicks and keyboard shortcuts.
2021-07-20 22:52:51 +02:00
4525519071 Fixed LPE loading bug 2021-07-20 22:09:20 +02:00
3b8dbb5151 Revert "LPE Loading Improvements"
This reverts commit 94add8f3f7.
2021-07-20 21:58:00 +02:00
94add8f3f7 LPE Loading Improvements 2021-07-19 20:08:46 -05:00
f5fc762c5c Restored Startup.js to previous version 2021-07-18 20:08:49 -05:00
636d4685a0 Fixed fill tool 2021-07-18 19:52:43 -05:00
7c4fb652cf Deleted _createColorPalette.js, commented files
Moved createColorPalette to the ColorModule, removed _onLoad.js and _onbeforeunload.js, commented the code and labelled with REFACTOR the comments that refere to the refactoring.
2021-07-18 23:17:41 +02:00
7976675132 Moved some of _pixelEditorUtility.js functions to proper files
Also left some comments about where to put the leftover functions once we have a more detailed structure.
2021-07-18 22:44:31 +02:00
b8ae07adff audit fix and pan issue fixed 2021-07-18 10:03:46 -05:00
f240e54bb3 Set brushSize before panning with Mousewheel 2021-07-17 23:07:57 +02:00
d4de08e8be Move brushPreview when panning with mousewheel 2021-07-17 22:55:51 +02:00
68dbbdc4c3 Tried fixing pan bug
If you load an LPE file, the pan tool screws up
2021-07-15 23:30:55 +02:00
06d9536895 Removed onLoad and checkCompatibility 2021-07-15 22:26:08 +02:00
f76d05bffa Added FileManager and TopMenuModule
The TopMenuModule binds the buttons so that they open the sub menus: at the moment it also binds those events that don't have a proper place yet. FileManager contains all the functions that have something to do with files, that is loading, opening, saving and exporting.
2021-07-15 22:21:19 +02:00
dcf896954f Added Startup IIFE to take care of the creation of a new project
It includes the old _createButton and _newPixel functions and a few private methods to divide the huge newPixel function into smaller chunks depending on their purpose. Those chunks could probably be part of other IIFEs, but we'll think about that in the future.
Fixed Input bug that caused the on function to pass an array of arguments instead of single arguments. Removed data_asdfgasd.hbs
2021-07-15 18:33:19 +02:00
7c80e8f342 Finished refactoring History, added Startup IIFE 2021-07-15 17:10:07 +02:00
4f4091ebb3 Merged the two create functions 2021-07-15 16:33:26 +02:00
eada155375 Fixed Dialogue bug 2021-07-14 23:00:12 +02:00
d81363ddd0 Fixed mode switching, started SplashPage IIFE 2021-07-14 22:48:53 +02:00
6c8ec8e7a9 Refactored History into an IIFE
Divided History states and actual History management, refactored all occurrences of history-related functions to use the new version.
2021-07-14 22:20:55 +02:00
e4ecc3d607 Moved dialogue related things to their own IIFE
Refactored all calls to showDialogue and closeDialogue to use the IIFE version
2021-07-13 23:40:23 +02:00
87ab2da6b5 Commented ColorModule 2021-07-13 22:59:05 +02:00
ed6d60c418 Fixed colour generation when adding a new one 2021-07-13 22:35:06 +02:00
85db99a7c1 Moved clickedColor to ColorModule 2021-07-13 22:27:29 +02:00
53d51c4567 Fixed colour generation when creating a new pixel 2021-07-13 22:23:05 +02:00
4457d2178c Added Input.js
Got rid of the "on" files, refactored the rest of the code to use the functions declared in Input.js
2021-07-12 11:36:30 +02:00
6072528ad2 Fixed advanced colour picker bugs 2021-07-11 23:27:48 +02:00
84f6493bf6 Fixed Color Picker preview not showing 2021-07-11 11:32:49 -04:00
1daeb81ef4 Fixed bug that caused the wrong colour to be modified with jscolor 2021-07-11 12:53:50 +02:00
f5807417ec Added Color class
- Added Color class to make color representation and convertions more uniform
- Replaced standard convertions with Color.convertion
- Removed _algorithms.js, _deleteColor.js, ajax.js and the other convertion files
- Fixed bug in ColorModule, moved replaceAllOfColor to ColorModule as well as deleteColor
2021-07-11 12:40:48 +02:00
dbffc0b9da Fixed Util static method issue
Also fixed bug in Util.getElement
2021-07-10 11:05:56 +02:00