Commit Graph

28 Commits

Author SHA1 Message Date
dd76936478 Allow changing the type of deck after generation 2019-01-14 23:50:25 -05:00
f70af7cc02 Fix image edit not working in Chrome 2019-01-14 23:50:25 -05:00
4193ae14c9 Add jshit options for editor 2019-01-14 23:50:25 -05:00
fe1d2ecd4a Allow for downloading the input json from the editor 2019-01-14 23:50:25 -05:00
3ae052c13c Editor: Add save button and rearange buttons a bit 2019-01-14 23:50:25 -05:00
63e82b4556 Use textareas for block text 2019-01-14 23:50:25 -05:00
6d5196b1f1 Editor: hide things as per input JSON 2019-01-14 23:50:25 -05:00
13b3ed4c96 Use JSON templates for deck info 2019-01-14 23:50:25 -05:00
d12ab839aa Editor: Load existing input JSON if it exists 2019-01-14 23:50:25 -05:00
2bc6c4b58b Allow downloading input JSONs 2019-01-14 23:50:25 -05:00
6f5ab8b595 Add basic card editing 2019-01-14 23:50:25 -05:00
7a6ecc2202 Allow for newlines in wrapped text 2019-01-14 23:50:25 -05:00
617176ed14 Simplify server switch/case and check if deck in decks list 2019-01-14 23:50:25 -05:00
26fa5f3398 Move playfield and editor html to separate files 2019-01-14 23:50:25 -05:00
afcb1851cc Flatten editor.js code 2019-01-14 23:50:25 -05:00
d43804896d Add jshint header for playfield.js 2019-01-14 23:50:25 -05:00
2b9139dd66 Load more stuff from deck JSON
actually uses deck number and FaceURL

preperation for arbitrary decks (from TTS mods)
also changes to send only the deck part of the JSON
2019-01-14 23:50:25 -05:00
6619e20f4a Use PhantomJS to render PNGs from uploaded files
Not in a useful place yet, but hey: progress
2019-01-14 23:50:25 -05:00
77ca7ec536 Fix deckWidth->deckHeight typo 2019-01-14 23:50:25 -05:00
bb192cf535 Simplify access to deckJSON a bit
only needed a subsection
2019-01-14 23:50:25 -05:00
6e6f3189e1 Allow adding to bottom of pile by holding shift 2019-01-14 23:50:25 -05:00
d5b0b5ffee Make pile list behavior a bit less dumb
- drag and drop doesn't jump all over the place
 - can't drag cards from list into piles
2019-01-14 23:50:25 -05:00
1aa50927a8 Minor style fixes 2019-01-14 23:50:25 -05:00
c577e1c872 Use real width of SVGs for translation in editor 2019-01-14 23:50:25 -05:00
4a90b4f9f1 Allow re-arranging cards in piles and properly draw things in that view 2019-01-14 23:50:25 -05:00
9d07b4f0c5 Add shake animation for shuffling piles 2019-01-14 23:50:25 -05:00
38e17c0622 Really basic client-side card generation 2019-01-14 23:50:25 -05:00
61f2851246 Move client js to 'js' subfolder, rename script.js to playfield.js 2019-01-14 23:50:25 -05:00