Commit Graph

16 Commits

Author SHA1 Message Date
Nicola
8abe1f04bb Binded closeDialogue to esc
In that way the user can exit a dialogue without using the button and the mouse
2021-12-12 23:08:13 +01:00
Nicola
a238fb1b47 Fixed #43, #41, #37 and #35 2021-12-11 10:48:14 +01:00
unsettledgames
05beab6929 Removed a few dependencies, refactored pixel-editor.js 2021-12-07 12:11:40 +01:00
unsettledgames
b2f5521750 Removed all global variables, worked on File class and put canvas resizing functions in File 2021-12-06 17:37:43 +01:00
unsettledgames
cd6d959d35 Added back copy / paste 2021-11-09 22:59:17 +01:00
unsettledgames
73f7c980eb Added back eyedropper alt key binding 2021-11-09 12:53:19 +01:00
unsettledgames
2ca5aa75b4 Added back tool shortctus
Made Events an IIFE instead of a class, fixed a bug in the selection tool.
2021-11-09 12:19:57 +01:00
unsettledgames
da7ae65ead Removed global documentCreated 2021-07-23 19:05:33 +02:00
unsettledgames
e4415a5358 Removed all Layer-related global variables 2021-07-23 16:25:15 +02:00
unsettledgames
6b84cdaa4d Removed getCursorPosition 2021-07-22 19:05:58 +02:00
unsettledgames
15cca5ffb7 Removed global pixelGridCanvas and currentMouseEvent 2021-07-22 18:57:44 +02:00
unsettledgames
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
unsettledgames
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
unsettledgames
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
unsettledgames
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
unsettledgames
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