Commit Graph

120 Commits

Author SHA1 Message Date
Nicola
574cf23563 Added back ZoomTool 2022-10-25 12:55:27 +02:00
Nicola
74665db3de Fixed tool color
Fixed ellipse filling the whole canvas when changing tool
2022-10-24 15:04:09 +02:00
Nicola
e51f510392 Merge branch 'master' into pxlvxl-master 2022-10-24 12:48:08 +02:00
Nicola
3b83727c73 Added buttons to colour menu
Added buttons to add, remove, zoom in and zoom out. Also implemented palette zooming
2022-10-24 12:11:40 +02:00
NSSure
b8d1f11f93 Added ability to select import position 2022-10-22 05:46:48 -04:00
NSSure
02806c7efa Added file option to import image to current layer 2022-10-21 03:52:55 -04:00
skeddles
14d5048756 updated help to reflect current zoom ability 2022-10-03 13:56:06 -04:00
Jaman Brundage
12a3283790 another push
Fixed issue with color saving
Redesigned color select section
2022-03-23 08:47:57 -04:00
Sam Keddy
6ec80cf410 fixed links to css/js urls
this should hopefully make it so the css js files are properly loaded when on the apps site. I also made it so the build file only compiles pixel-editor.js since it was compiling everything in the folder for no reason
2022-03-04 14:33:42 -05: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
c464b50aa1 Updated splash page 2022-01-31 23:50:18 +01: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
b616579c65 Continued tool tutorials
Also fixed fill tool history bug
2022-01-25 23:47:01 +01:00
Nicola
2e360dcf51 Started tool tutorials 2022-01-25 00:33:23 +01:00
Nicola
cd1d0cd5eb Merge branch 'master' into next-update 2022-01-23 16:45:27 +01:00
Nicola
832f36992b Added ellipse tool setup 2022-01-22 16:02:10 +01:00
Sam Keddy
c135e2838d fixed urls
changed all urls to be relative (no starting slash) and without /pixel-editor/. Fixed the testing server to deal with these requests (and also include some better logging).
2022-01-13 14:40:35 -05:00
Nicola
4c4fbede6e Started magic wand 2022-01-09 23:53:28 +01:00
Nicola
bd1a806f11 Revert "Commit before dropping the fill tool idea and reverting to the first lasso version"
This reverts commit 5b6b3d33bc.
2022-01-02 21:57:35 +01:00
Nicola
5b6b3d33bc Commit before dropping the fill tool idea and reverting to the first lasso version 2022-01-02 21:57:20 +01:00
Nicola
8df8b3ac54 Started lasso selection preview 2021-12-28 22:51:18 +01:00
Nicola
fd3daecba5 Restored square templates in splash page 2021-12-27 19:40:23 +01:00
Nicola
a52fc647e3 Reduced tool size
Moved tool size buttons on the right, started lasso tool
2021-12-27 19:11:59 +01:00
Nicola
be852d9aae Fixed #48 and #47 2021-12-12 18:37:16 +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
d972f9c530 Turned the PaleteBlock into an IIFE 2021-12-06 11:26:42 +01:00
unsettledgames
71bfe543a5 Made the color picker an IIFE 2021-12-04 23:11:21 +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
b2fef6154d Added back eraser tool 2021-10-27 10:43:51 +02:00
unsettledgames
017ef3b6f5 Resolved conflicts with the previous pull request 2021-08-14 22:47:49 +02:00
unsettledgames
a773bba05c Merge remote-tracking branch 'upstream/master' 2021-08-14 21:58:13 +02:00
NSSure
f9a1cfc3d3 Added save project dialogue 2021-08-14 11:20:53 -04:00
NSSure
d97b6f5ca5 Added export dialogue for file name 2021-08-12 22:54:35 -04: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
9540002c6e Moved popup windows into a specific folder 2021-07-15 18:43:59 +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
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
unsettledgames
87ab2da6b5 Commented ColorModule 2021-07-13 22:59:05 +02:00
skeddles
e0e634d7f7 remove mode picker from new pixel dialog 2021-07-06 21:05:41 -04:00
skeddles
80e33b4ff1 moved mode switcher on splash to below quickstart 2021-07-06 20:37:47 -04:00
skeddles
1f820fd97e ported to static site, removed _ext folder, split hbs files into partials 2021-07-06 17:24:20 -04:00
skeddles
ef902d24e7 renamed index 2021-07-06 12:12:38 -04:00
skeddles
11c119b1d8 static site conversion 2021-07-06 11:11:53 -04:00
unsettledgames
d8531a7e01 Updated help section 2021-07-01 13:10:08 +02:00
unsettledgames
d8369aa9d7 Continued fixing CSS 2021-06-24 15:10:08 +02:00
unsettledgames
16e5d6187f Started fixing CSS 2021-06-23 23:27:06 +02:00