Commit Graph

32 Commits

Author SHA1 Message Date
Theo Cavignac
a36281935b Implement loading a palette from the menu. 2022-12-27 18:18:38 +01:00
Theo Cavignac
c08c7f2d0b Refactor palette loading. 2022-12-22 23:37:38 +01:00
Theo Cavignac
845e384ae0 Implement importing GIMP and .hex palettes. 2022-12-22 21:17:49 +01:00
Nicola
e51f510392 Merge branch 'master' into pxlvxl-master 2022-10-24 12:48:08 +02:00
Nicola
9e250c015e Added willReadFrequently attribute 2022-10-24 12:40:34 +02:00
NSSure
854a937da5 Init flag to prevent duplicate window events 2022-10-22 06:02:00 -04:00
NSSure
b8d1f11f93 Added ability to select import position 2022-10-22 05:46:48 -04:00
NSSure
eb139ef8e7 Reset import image window on open 2022-10-21 04:18:10 -04:00
NSSure
02806c7efa Added file option to import image to current layer 2022-10-21 03:52:55 -04:00
Matthew Daly
1a6b8320e1 Fix canvasSize undefined 2022-08-24 00:34:19 -04:00
Matthew Daly
45016fbea1 Only register export click event once (#89) 2022-08-23 23:04:18 -04:00
Jaman Brundage
12a3283790 another push
Fixed issue with color saving
Redesigned color select section
2022-03-23 08:47:57 -04:00
pxlvxl
fedca8f95e push5 2022-02-27 09:14:42 -05:00
pxlvxl
012f96ae8d push2 2022-02-25 09:49:30 -05:00
pxlvxl
f499662afc Various changes
- added `/:paletteSlug/:resolution` functionality for localhost testing
	- created `currFile.sublayers` for *things that should zoom with the canvas layers*
	- `currFile.layers` now solely contains the canvas layers
	- added `getProjectData` to `FileManager`'s exported methods
	---
	- added `FileManager.localStorageSave` (it's basically just: localStorage.setItem("lpe-cache",FileManager.getProjectData()))
	- added `FileManager.localStorageCheck` (it's basically just: `!!localStorage.getItem("lpe-cache")`)
	- added `FileManager.localStorageLoad` (it's basically just: `return localStorage.getItem("lpe-cache")`)
	- added `FileManager.localStorageReset` (for debugging purity)
	---
	- calling `FileManager.localStorageSave()` on mouse up (we should stress test this)
	---
	- changed lpe file format to `{canvasWidth:number,canvasHeight:number,selectedLayer:number,colors:[],layers:[]}`
	- added backward compatibility for the old lpe file format
	---
	- added some canvas utility functions in `canvas_util`
	- added Unsettled's color similarity utility functions in `color_util2`
	---
	- html boilerplate - wang tiles
	-
	- POC - tiny text boilerplate
	- POC - tiny text font scraper
	---
	- WIP - added two optional url route parameters `/:paletteSlug/:resolution/:prefillWidth/:prefillBinaryStr`
	- WIP POC - hbs_parser.js (outputs tree data about hbs file relationships)
2022-02-23 11:36:15 -05:00
unsettledgames
05beab6929 Removed a few dependencies, refactored pixel-editor.js 2021-12-07 12:11:40 +01:00
unsettledgames
21dd47c2b0 Finished refactoring, moved sprite scaling functions in File 2021-12-06 20:12:57 +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
35cbe31a71 Added back brush with new tool system 2021-10-27 10:02:21 +02:00
unsettledgames
0fcb309cc7 Added basic structure and comments for Tools
Fixed lpe palette loading, added custom events
2021-10-25 19:23:06 +02:00
unsettledgames
a930fabcba Solved conflict 2021-09-18 22:32:58 +02:00
unsettledgames
017ef3b6f5 Resolved conflicts with the previous pull request 2021-08-14 22:47:49 +02:00
unsettledgames
0a774978ef Fixed file loading bug 2021-07-24 10:25:55 +02:00
unsettledgames
da7ae65ead Removed global documentCreated 2021-07-23 19:05:33 +02:00
unsettledgames
404b1c56c1 Added EditorState, moved editor mode management to that IIFE 2021-07-23 18:54:09 +02:00
unsettledgames
526177c6fe Fixed palette loading bug 2021-07-23 18:30:04 +02:00
unsettledgames
8ca148e34c Removed _loadPalette.js and moved its logic to FileManager.js 2021-07-23 16:35:42 +02:00
unsettledgames
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
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
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
unsettledgames
68dbbdc4c3 Tried fixing pan bug
If you load an LPE file, the pan tool screws up
2021-07-15 23:30:55 +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