Commit Graph

15 Commits

Author SHA1 Message Date
Theo Cavignac a36281935b Implement loading a palette from the menu. 2022-12-27 18:18:38 +01:00
Nicola e51f510392 Merge branch 'master' into pxlvxl-master 2022-10-24 12:48:08 +02:00
NSSure 02806c7efa Added file option to import image to current layer 2022-10-21 03:52:55 -04:00
pxlvxl 012f96ae8d push2 2022-02-25 09:49:30 -05:00
pxlvxl a1757553cf 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:16:23 -05:00
Nicola cdabbb4a5c Added tool size in the top bar 2022-01-31 23:12:28 +01:00
Nicola 82aa5ab114 Fixed topbar css
Aded InputComponents.js to take care (dynamically create, add events) of input elements.
2022-01-31 00:16:27 +01:00
Nicola 2e360dcf51 Started tool tutorials 2022-01-25 00:33:23 +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 07ed24cc6b Made PixelGrid child of the Layer class 2021-11-12 00:09:20 +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 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 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
skeddles 1f820fd97e ported to static site, removed _ext folder, split hbs files into partials 2021-07-06 17:24:20 -04:00