diff --git a/img/frames/bottomHalfSharp.svg b/img/frames/bottomHalfSharp.svg new file mode 100644 index 00000000..0663767f --- /dev/null +++ b/img/frames/bottomHalfSharp.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/img/frames/bottomHalfSharpThumb.png b/img/frames/bottomHalfSharpThumb.png new file mode 100644 index 00000000..9f59600f Binary files /dev/null and b/img/frames/bottomHalfSharpThumb.png differ diff --git a/img/frames/custom/classicshifted/bl.png b/img/frames/custom/classicshifted/bl.png new file mode 100644 index 00000000..797ebd39 Binary files /dev/null and b/img/frames/custom/classicshifted/bl.png differ diff --git a/img/frames/custom/classicshifted/blThumb.png b/img/frames/custom/classicshifted/blThumb.png new file mode 100644 index 00000000..e25df8f5 Binary files /dev/null and b/img/frames/custom/classicshifted/blThumb.png differ diff --git a/img/frames/custom/classicshifted/gl.png b/img/frames/custom/classicshifted/gl.png new file mode 100644 index 00000000..d085f704 Binary files /dev/null and b/img/frames/custom/classicshifted/gl.png differ diff --git a/img/frames/custom/classicshifted/glThumb.png b/img/frames/custom/classicshifted/glThumb.png new file mode 100644 index 00000000..3a584e2b Binary files /dev/null and b/img/frames/custom/classicshifted/glThumb.png differ diff --git a/img/frames/custom/classicshifted/pinline.svg b/img/frames/custom/classicshifted/pinline.svg new file mode 100644 index 00000000..656b0cc1 --- /dev/null +++ b/img/frames/custom/classicshifted/pinline.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/img/frames/custom/classicshifted/pinlineThumb.png b/img/frames/custom/classicshifted/pinlineThumb.png new file mode 100644 index 00000000..4abc262c Binary files /dev/null and b/img/frames/custom/classicshifted/pinlineThumb.png differ diff --git a/img/frames/custom/classicshifted/rl.png b/img/frames/custom/classicshifted/rl.png new file mode 100644 index 00000000..ad69fdca Binary files /dev/null and b/img/frames/custom/classicshifted/rl.png differ diff --git a/img/frames/custom/classicshifted/rlThumb.png b/img/frames/custom/classicshifted/rlThumb.png new file mode 100644 index 00000000..6237f797 Binary files /dev/null and b/img/frames/custom/classicshifted/rlThumb.png differ diff --git a/img/frames/custom/classicshifted/ul.png b/img/frames/custom/classicshifted/ul.png new file mode 100644 index 00000000..157dda57 Binary files /dev/null and b/img/frames/custom/classicshifted/ul.png differ diff --git a/img/frames/custom/classicshifted/ulThumb.png b/img/frames/custom/classicshifted/ulThumb.png new file mode 100644 index 00000000..aeb3a5e8 Binary files /dev/null and b/img/frames/custom/classicshifted/ulThumb.png differ diff --git a/img/frames/custom/classicshifted/wl.png b/img/frames/custom/classicshifted/wl.png new file mode 100644 index 00000000..2825c049 Binary files /dev/null and b/img/frames/custom/classicshifted/wl.png differ diff --git a/img/frames/custom/classicshifted/wlThumb.png b/img/frames/custom/classicshifted/wlThumb.png new file mode 100644 index 00000000..3a0a7d67 Binary files /dev/null and b/img/frames/custom/classicshifted/wlThumb.png differ diff --git a/img/frames/custom/simpleInvention/a.png b/img/frames/custom/simpleInvention/a.png new file mode 100644 index 00000000..d16dbbdd Binary files /dev/null and b/img/frames/custom/simpleInvention/a.png differ diff --git a/img/frames/custom/simpleInvention/aThumb.png b/img/frames/custom/simpleInvention/aThumb.png new file mode 100644 index 00000000..42c620ea Binary files /dev/null and b/img/frames/custom/simpleInvention/aThumb.png differ diff --git a/img/frames/custom/simpleInvention/b.png b/img/frames/custom/simpleInvention/b.png new file mode 100644 index 00000000..b7d9e2cb Binary files /dev/null and b/img/frames/custom/simpleInvention/b.png differ diff --git a/img/frames/custom/simpleInvention/bThumb.png b/img/frames/custom/simpleInvention/bThumb.png new file mode 100644 index 00000000..fa3c3334 Binary files /dev/null and b/img/frames/custom/simpleInvention/bThumb.png differ diff --git a/img/frames/custom/simpleInvention/g.png b/img/frames/custom/simpleInvention/g.png new file mode 100644 index 00000000..1015c5ba Binary files /dev/null and b/img/frames/custom/simpleInvention/g.png differ diff --git a/img/frames/custom/simpleInvention/gThumb.png b/img/frames/custom/simpleInvention/gThumb.png new file mode 100644 index 00000000..3f030368 Binary files /dev/null and b/img/frames/custom/simpleInvention/gThumb.png differ diff --git a/img/frames/custom/simpleInvention/goldTrim.png b/img/frames/custom/simpleInvention/goldTrim.png new file mode 100644 index 00000000..0ed3c57c Binary files /dev/null and b/img/frames/custom/simpleInvention/goldTrim.png differ diff --git a/img/frames/custom/simpleInvention/goldTrimThumb.png b/img/frames/custom/simpleInvention/goldTrimThumb.png new file mode 100644 index 00000000..274f0cd4 Binary files /dev/null and b/img/frames/custom/simpleInvention/goldTrimThumb.png differ diff --git a/img/frames/custom/simpleInvention/m.png b/img/frames/custom/simpleInvention/m.png new file mode 100644 index 00000000..f6ef3688 Binary files /dev/null and b/img/frames/custom/simpleInvention/m.png differ diff --git a/img/frames/custom/simpleInvention/mThumb.png b/img/frames/custom/simpleInvention/mThumb.png new file mode 100644 index 00000000..0b19cb92 Binary files /dev/null and b/img/frames/custom/simpleInvention/mThumb.png differ diff --git a/img/frames/custom/simpleInvention/maskFrame.png b/img/frames/custom/simpleInvention/maskFrame.png new file mode 100644 index 00000000..877592d4 Binary files /dev/null and b/img/frames/custom/simpleInvention/maskFrame.png differ diff --git a/img/frames/custom/simpleInvention/maskFrameThumb.png b/img/frames/custom/simpleInvention/maskFrameThumb.png new file mode 100644 index 00000000..a3c0641e Binary files /dev/null and b/img/frames/custom/simpleInvention/maskFrameThumb.png differ diff --git a/img/frames/custom/simpleInvention/r.png b/img/frames/custom/simpleInvention/r.png new file mode 100644 index 00000000..5e8ac668 Binary files /dev/null and b/img/frames/custom/simpleInvention/r.png differ diff --git a/img/frames/custom/simpleInvention/rThumb.png b/img/frames/custom/simpleInvention/rThumb.png new file mode 100644 index 00000000..ebbfdd5f Binary files /dev/null and b/img/frames/custom/simpleInvention/rThumb.png differ diff --git a/img/frames/custom/simpleInvention/u.png b/img/frames/custom/simpleInvention/u.png new file mode 100644 index 00000000..8012a013 Binary files /dev/null and b/img/frames/custom/simpleInvention/u.png differ diff --git a/img/frames/custom/simpleInvention/uThumb.png b/img/frames/custom/simpleInvention/uThumb.png new file mode 100644 index 00000000..c889633a Binary files /dev/null and b/img/frames/custom/simpleInvention/uThumb.png differ diff --git a/img/frames/custom/simpleInvention/w.png b/img/frames/custom/simpleInvention/w.png new file mode 100644 index 00000000..096e3a03 Binary files /dev/null and b/img/frames/custom/simpleInvention/w.png differ diff --git a/img/frames/custom/simpleInvention/wThumb.png b/img/frames/custom/simpleInvention/wThumb.png new file mode 100644 index 00000000..284409d4 Binary files /dev/null and b/img/frames/custom/simpleInvention/wThumb.png differ diff --git a/img/frames/m15/basics/b.png b/img/frames/m15/basics/b.png new file mode 100644 index 00000000..3293886a Binary files /dev/null and b/img/frames/m15/basics/b.png differ diff --git a/img/frames/m15/basics/bThumb.png b/img/frames/m15/basics/bThumb.png new file mode 100644 index 00000000..7c3c2d06 Binary files /dev/null and b/img/frames/m15/basics/bThumb.png differ diff --git a/img/frames/m15/basics/c.png b/img/frames/m15/basics/c.png new file mode 100644 index 00000000..a21ff19d Binary files /dev/null and b/img/frames/m15/basics/c.png differ diff --git a/img/frames/m15/basics/cThumb.png b/img/frames/m15/basics/cThumb.png new file mode 100644 index 00000000..194cef34 Binary files /dev/null and b/img/frames/m15/basics/cThumb.png differ diff --git a/img/frames/m15/basics/g.png b/img/frames/m15/basics/g.png new file mode 100644 index 00000000..0bd17da9 Binary files /dev/null and b/img/frames/m15/basics/g.png differ diff --git a/img/frames/m15/basics/gThumb.png b/img/frames/m15/basics/gThumb.png new file mode 100644 index 00000000..ace59cfa Binary files /dev/null and b/img/frames/m15/basics/gThumb.png differ diff --git a/img/frames/m15/basics/r.png b/img/frames/m15/basics/r.png new file mode 100644 index 00000000..17b1f153 Binary files /dev/null and b/img/frames/m15/basics/r.png differ diff --git a/img/frames/m15/basics/rThumb.png b/img/frames/m15/basics/rThumb.png new file mode 100644 index 00000000..4d800617 Binary files /dev/null and b/img/frames/m15/basics/rThumb.png differ diff --git a/img/frames/m15/basics/u.png b/img/frames/m15/basics/u.png new file mode 100644 index 00000000..f63362bb Binary files /dev/null and b/img/frames/m15/basics/u.png differ diff --git a/img/frames/m15/basics/uThumb.png b/img/frames/m15/basics/uThumb.png new file mode 100644 index 00000000..a39bdbc3 Binary files /dev/null and b/img/frames/m15/basics/uThumb.png differ diff --git a/img/frames/m15/basics/w.png b/img/frames/m15/basics/w.png new file mode 100644 index 00000000..ccc9761e Binary files /dev/null and b/img/frames/m15/basics/w.png differ diff --git a/img/frames/m15/basics/wThumb.png b/img/frames/m15/basics/wThumb.png new file mode 100644 index 00000000..35c91676 Binary files /dev/null and b/img/frames/m15/basics/wThumb.png differ diff --git a/img/frames/m15/flip/a.png b/img/frames/m15/flip/a.png new file mode 100644 index 00000000..9f01fdf2 Binary files /dev/null and b/img/frames/m15/flip/a.png differ diff --git a/img/frames/m15/flip/aThumb.png b/img/frames/m15/flip/aThumb.png new file mode 100644 index 00000000..af7100be Binary files /dev/null and b/img/frames/m15/flip/aThumb.png differ diff --git a/img/frames/m15/flip/apt.png b/img/frames/m15/flip/apt.png new file mode 100644 index 00000000..2fcd775f Binary files /dev/null and b/img/frames/m15/flip/apt.png differ diff --git a/img/frames/m15/flip/aptThumb.png b/img/frames/m15/flip/aptThumb.png new file mode 100644 index 00000000..f4fbfd7a Binary files /dev/null and b/img/frames/m15/flip/aptThumb.png differ diff --git a/img/frames/m15/flip/b.png b/img/frames/m15/flip/b.png new file mode 100644 index 00000000..71eece87 Binary files /dev/null and b/img/frames/m15/flip/b.png differ diff --git a/img/frames/m15/flip/bThumb.png b/img/frames/m15/flip/bThumb.png new file mode 100644 index 00000000..acc66659 Binary files /dev/null and b/img/frames/m15/flip/bThumb.png differ diff --git a/img/frames/m15/flip/bpt.png b/img/frames/m15/flip/bpt.png new file mode 100644 index 00000000..dd1ba09c Binary files /dev/null and b/img/frames/m15/flip/bpt.png differ diff --git a/img/frames/m15/flip/bptThumb.png b/img/frames/m15/flip/bptThumb.png new file mode 100644 index 00000000..6217e91c Binary files /dev/null and b/img/frames/m15/flip/bptThumb.png differ diff --git a/img/frames/m15/flip/c.png b/img/frames/m15/flip/c.png new file mode 100644 index 00000000..a5130b06 Binary files /dev/null and b/img/frames/m15/flip/c.png differ diff --git a/img/frames/m15/flip/cThumb.png b/img/frames/m15/flip/cThumb.png new file mode 100644 index 00000000..da73b38a Binary files /dev/null and b/img/frames/m15/flip/cThumb.png differ diff --git a/img/frames/m15/flip/cpt.png b/img/frames/m15/flip/cpt.png new file mode 100644 index 00000000..2d5f0cd6 Binary files /dev/null and b/img/frames/m15/flip/cpt.png differ diff --git a/img/frames/m15/flip/cptThumb.png b/img/frames/m15/flip/cptThumb.png new file mode 100644 index 00000000..8ab1621d Binary files /dev/null and b/img/frames/m15/flip/cptThumb.png differ diff --git a/img/frames/m15/flip/g.png b/img/frames/m15/flip/g.png new file mode 100644 index 00000000..1dde5b40 Binary files /dev/null and b/img/frames/m15/flip/g.png differ diff --git a/img/frames/m15/flip/gThumb.png b/img/frames/m15/flip/gThumb.png new file mode 100644 index 00000000..5bc609ea Binary files /dev/null and b/img/frames/m15/flip/gThumb.png differ diff --git a/img/frames/m15/flip/gpt.png b/img/frames/m15/flip/gpt.png new file mode 100644 index 00000000..ec2df831 Binary files /dev/null and b/img/frames/m15/flip/gpt.png differ diff --git a/img/frames/m15/flip/gptThumb.png b/img/frames/m15/flip/gptThumb.png new file mode 100644 index 00000000..7adc5ced Binary files /dev/null and b/img/frames/m15/flip/gptThumb.png differ diff --git a/img/frames/m15/flip/l.png b/img/frames/m15/flip/l.png new file mode 100644 index 00000000..fd2b0f1b Binary files /dev/null and b/img/frames/m15/flip/l.png differ diff --git a/img/frames/m15/flip/lThumb.png b/img/frames/m15/flip/lThumb.png new file mode 100644 index 00000000..e651a760 Binary files /dev/null and b/img/frames/m15/flip/lThumb.png differ diff --git a/img/frames/m15/flip/lpt.png b/img/frames/m15/flip/lpt.png new file mode 100644 index 00000000..33d214e3 Binary files /dev/null and b/img/frames/m15/flip/lpt.png differ diff --git a/img/frames/m15/flip/lptThumb.png b/img/frames/m15/flip/lptThumb.png new file mode 100644 index 00000000..6e9eb623 Binary files /dev/null and b/img/frames/m15/flip/lptThumb.png differ diff --git a/img/frames/m15/flip/m.png b/img/frames/m15/flip/m.png new file mode 100644 index 00000000..1915ff1b Binary files /dev/null and b/img/frames/m15/flip/m.png differ diff --git a/img/frames/m15/flip/mThumb.png b/img/frames/m15/flip/mThumb.png new file mode 100644 index 00000000..96989342 Binary files /dev/null and b/img/frames/m15/flip/mThumb.png differ diff --git a/img/frames/m15/flip/mpt.png b/img/frames/m15/flip/mpt.png new file mode 100644 index 00000000..2ac5f918 Binary files /dev/null and b/img/frames/m15/flip/mpt.png differ diff --git a/img/frames/m15/flip/mptThumb.png b/img/frames/m15/flip/mptThumb.png new file mode 100644 index 00000000..c49b4128 Binary files /dev/null and b/img/frames/m15/flip/mptThumb.png differ diff --git a/img/frames/m15/flip/pinline.svg b/img/frames/m15/flip/pinline.svg new file mode 100644 index 00000000..a7dc56b5 --- /dev/null +++ b/img/frames/m15/flip/pinline.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/img/frames/m15/flip/pinlineThumb.png b/img/frames/m15/flip/pinlineThumb.png new file mode 100644 index 00000000..7aebe38b Binary files /dev/null and b/img/frames/m15/flip/pinlineThumb.png differ diff --git a/img/frames/m15/flip/r.png b/img/frames/m15/flip/r.png new file mode 100644 index 00000000..8fcfa292 Binary files /dev/null and b/img/frames/m15/flip/r.png differ diff --git a/img/frames/m15/flip/rThumb.png b/img/frames/m15/flip/rThumb.png new file mode 100644 index 00000000..8c0dbb89 Binary files /dev/null and b/img/frames/m15/flip/rThumb.png differ diff --git a/img/frames/m15/flip/rpt.png b/img/frames/m15/flip/rpt.png new file mode 100644 index 00000000..b26deaa4 Binary files /dev/null and b/img/frames/m15/flip/rpt.png differ diff --git a/img/frames/m15/flip/rptThumb.png b/img/frames/m15/flip/rptThumb.png new file mode 100644 index 00000000..9bc0e6d1 Binary files /dev/null and b/img/frames/m15/flip/rptThumb.png differ diff --git a/img/frames/m15/flip/rules.svg b/img/frames/m15/flip/rules.svg new file mode 100644 index 00000000..17818865 --- /dev/null +++ b/img/frames/m15/flip/rules.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/img/frames/m15/flip/rulesThumb.png b/img/frames/m15/flip/rulesThumb.png new file mode 100644 index 00000000..19594b91 Binary files /dev/null and b/img/frames/m15/flip/rulesThumb.png differ diff --git a/img/frames/m15/flip/twins.svg b/img/frames/m15/flip/twins.svg new file mode 100644 index 00000000..633c67cc --- /dev/null +++ b/img/frames/m15/flip/twins.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/img/frames/m15/flip/twinsThumb.png b/img/frames/m15/flip/twinsThumb.png new file mode 100644 index 00000000..f0327b66 Binary files /dev/null and b/img/frames/m15/flip/twinsThumb.png differ diff --git a/img/frames/m15/flip/u.png b/img/frames/m15/flip/u.png new file mode 100644 index 00000000..e3e92da2 Binary files /dev/null and b/img/frames/m15/flip/u.png differ diff --git a/img/frames/m15/flip/uThumb.png b/img/frames/m15/flip/uThumb.png new file mode 100644 index 00000000..4e7b4734 Binary files /dev/null and b/img/frames/m15/flip/uThumb.png differ diff --git a/img/frames/m15/flip/upt.png b/img/frames/m15/flip/upt.png new file mode 100644 index 00000000..9140a91f Binary files /dev/null and b/img/frames/m15/flip/upt.png differ diff --git a/img/frames/m15/flip/uptThumb.png b/img/frames/m15/flip/uptThumb.png new file mode 100644 index 00000000..7ea98f62 Binary files /dev/null and b/img/frames/m15/flip/uptThumb.png differ diff --git a/img/frames/m15/flip/v.png b/img/frames/m15/flip/v.png new file mode 100644 index 00000000..7d22b8f2 Binary files /dev/null and b/img/frames/m15/flip/v.png differ diff --git a/img/frames/m15/flip/vThumb.png b/img/frames/m15/flip/vThumb.png new file mode 100644 index 00000000..7bd0d555 Binary files /dev/null and b/img/frames/m15/flip/vThumb.png differ diff --git a/img/frames/m15/flip/vpt.png b/img/frames/m15/flip/vpt.png new file mode 100644 index 00000000..0a81219a Binary files /dev/null and b/img/frames/m15/flip/vpt.png differ diff --git a/img/frames/m15/flip/vptThumb.png b/img/frames/m15/flip/vptThumb.png new file mode 100644 index 00000000..56cab995 Binary files /dev/null and b/img/frames/m15/flip/vptThumb.png differ diff --git a/img/frames/m15/flip/w.png b/img/frames/m15/flip/w.png new file mode 100644 index 00000000..6e2158f6 Binary files /dev/null and b/img/frames/m15/flip/w.png differ diff --git a/img/frames/m15/flip/wThumb.png b/img/frames/m15/flip/wThumb.png new file mode 100644 index 00000000..41b91f38 Binary files /dev/null and b/img/frames/m15/flip/wThumb.png differ diff --git a/img/frames/m15/flip/wpt.png b/img/frames/m15/flip/wpt.png new file mode 100644 index 00000000..5119a6b7 Binary files /dev/null and b/img/frames/m15/flip/wpt.png differ diff --git a/img/frames/m15/flip/wptThumb.png b/img/frames/m15/flip/wptThumb.png new file mode 100644 index 00000000..5ffea90b Binary files /dev/null and b/img/frames/m15/flip/wptThumb.png differ diff --git a/img/frames/topHalfSharp.svg b/img/frames/topHalfSharp.svg new file mode 100644 index 00000000..180c0894 --- /dev/null +++ b/img/frames/topHalfSharp.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/img/frames/topHalfSharpThumb.png b/img/frames/topHalfSharpThumb.png new file mode 100644 index 00000000..b104895e Binary files /dev/null and b/img/frames/topHalfSharpThumb.png differ diff --git a/js/creator-18.js b/js/creator-18.js index 053b7b2a..927d43ed 100644 --- a/js/creator-18.js +++ b/js/creator-18.js @@ -923,6 +923,9 @@ function writeText(textObject, targetContext) { targetContext.save(); targetContext const shapeX = textX + ptShift[0] + permaShift[0]; + if (!textOneLine) { + verticalAdjust *= (textRotation / 180 * -1); + } const shapeY = textY + verticalAdjust + ptShift[1] + permaShift[1]; targetContext.translate(shapeX, shapeY); targetContext.rotate(Math.PI * textRotation / 180); diff --git a/js/frames/groupCustom.js b/js/frames/groupCustom.js index b70ee33f..ad62cb71 100644 --- a/js/frames/groupCustom.js +++ b/js/frames/groupCustom.js @@ -3,6 +3,7 @@ loadFramePacks([ {name:'Classic-Shifted', value:'Classicshifted'}, {name:'Ixalan - @feuer_ameise', value:'FeuerAmeiseIxalan'}, {name:'Tapped (Horizontal M15)', value:'Tapped'}, + {name:'Simple Inventions', value:'SimpleInventions'}, {name:'Custom Addons', value:'disabled'}, {name:'Brawl Legend Crowns', value:'Brawl'} ]) \ No newline at end of file diff --git a/js/frames/groupMargin.js b/js/frames/groupMargin.js index 9d6055fc..feaccc3e 100644 --- a/js/frames/groupMargin.js +++ b/js/frames/groupMargin.js @@ -1,6 +1,6 @@ loadFramePacks([ - {name:'Standard 1/8 Inch Margin', value:'Margin-1'}, - {name:'Mystical Archive 1/8 Inch Margin', value:'MarginMysticalArchive'} + {name:'Generic Margins', value:'Margin-1'}, + {name:'Mystical Archive Margin', value:'MarginMysticalArchive'} ]) //For multiple Margin packs diff --git a/js/frames/groupMisc-1.js b/js/frames/groupMisc-1.js index fe42dfcf..82d937a8 100644 --- a/js/frames/groupMisc-1.js +++ b/js/frames/groupMisc-1.js @@ -1,4 +1,5 @@ loadFramePacks([ + {name:'Flip (Kamigawa)', value:'Flip'}, {name:'Future Shifted', value:'FutureRegular'}, {name:'Seventh Edition', value:'Seventh'}, {name:'Fifth Edition', value:'SeventhButFifth'}, diff --git a/js/frames/packClassicshifted.js b/js/frames/packClassicshifted.js index ff3d1a17..ce186347 100644 --- a/js/frames/packClassicshifted.js +++ b/js/frames/packClassicshifted.js @@ -1,5 +1,5 @@ //Create objects for common properties across available frames -var masks = [{src:'/img/frames/custom/classicshifted/maskFrame.png', name:'Frame'}, {src:'/img/frames/custom/classicshifted/maskText.png', name:'Textbox'}]; +var masks = [{src:'/img/frames/custom/classicshifted/maskFrame.png', name:'Frame'}, {src:'/img/frames/custom/classicshifted/maskText.png', name:'Textbox'}, {src:'/img/frames/custom/classicshifted/pinline.svg', name:'Pinline'}]; var bounds = {x:0.7573, y:0.8848, width:0.188, height:0.0733}; var bounds2 = {x:0.026, y:0.0129, width:0.948, height:0.1015}; //defines available frames @@ -12,6 +12,11 @@ availableFrames = [ {name:'Multicolored Frame', src:'/img/frames/custom/classicshifted/m.png', masks:masks}, {name:'Artifact Frame', src:'/img/frames/custom/classicshifted/a.png', masks:masks}, {name:'Land Frame', src:'/img/frames/custom/classicshifted/l.png', masks:masks}, + {name:'White Land Frame', src:'/img/frames/custom/classicshifted/wl.png', masks:masks}, + {name:'Blue Land Frame', src:'/img/frames/custom/classicshifted/ul.png', masks:masks}, + {name:'Black Land Frame', src:'/img/frames/custom/classicshifted/bl.png', masks:masks}, + {name:'Red Land Frame', src:'/img/frames/custom/classicshifted/rl.png', masks:masks}, + {name:'Green Land Frame', src:'/img/frames/custom/classicshifted/gl.png', masks:masks}, {name:'White Power/Toughness', src:'/img/frames/custom/classicshifted/ptW.png', bounds:bounds}, {name:'Blue Power/Toughness', src:'/img/frames/custom/classicshifted/ptU.png', bounds:bounds}, {name:'Black Power/Toughness', src:'/img/frames/custom/classicshifted/ptB.png', bounds:bounds}, diff --git a/js/frames/packFlip.js b/js/frames/packFlip.js new file mode 100644 index 00000000..d40d6311 --- /dev/null +++ b/js/frames/packFlip.js @@ -0,0 +1,59 @@ +//Create objects for common properties across available frames +var masks = [{src:'/img/frames/m15/flip/pinline.svg', name:'Pinline'}, {src:'/img/frames/m15/flip/twins.svg', name:'Twins'}, {src:'/img/frames/m15/flip/rules.svg', name:'Rules'}]; +var masks2 = [{src:'/img/frames/topHalfSharp.svg', name:'Top PT'}, {src:'/img/frames/bottomHalfSharp.svg', name:'Bottom PT'}] +var bounds = {x:0.0374, y:0.2277, width:0.9067, height:0.4762}; +//defines available frames +availableFrames = [ + {name:'White Frame', src:'/img/frames/m15/flip/w.png', masks:masks}, + {name:'Blue Frame', src:'/img/frames/m15/flip/u.png', masks:masks}, + {name:'Black Frame', src:'/img/frames/m15/flip/b.png', masks:masks}, + {name:'Red Frame', src:'/img/frames/m15/flip/r.png', masks:masks}, + {name:'Green Frame', src:'/img/frames/m15/flip/g.png', masks:masks}, + {name:'Multicolored Frame', src:'/img/frames/m15/flip/m.png', masks:masks}, + {name:'Artifact Frame', src:'/img/frames/m15/flip/a.png', masks:masks}, + {name:'Land Frame', src:'/img/frames/m15/flip/l.png', masks:masks}, + {name:'Colorless Frame', src:'/img/frames/m15/flip/c.png', masks:masks}, + {name:'Vehicle Frame', src:'/img/frames/m15/flip/v.png', masks:masks}, + {name:'White Power/Toughness', src:'/img/frames/m15/flip/wpt.png', bounds:bounds, masks:masks2}, + {name:'Blue Power/Toughness', src:'/img/frames/m15/flip/upt.png', bounds:bounds, masks:masks2}, + {name:'Black Power/Toughness', src:'/img/frames/m15/flip/bpt.png', bounds:bounds, masks:masks2}, + {name:'Red Power/Toughness', src:'/img/frames/m15/flip/rpt.png', bounds:bounds, masks:masks2}, + {name:'Green Power/Toughness', src:'/img/frames/m15/flip/gpt.png', bounds:bounds, masks:masks2}, + {name:'Multicolored Power/Toughness', src:'/img/frames/m15/flip/mpt.png', bounds:bounds, masks:masks2}, + {name:'Artifact Power/Toughness', src:'/img/frames/m15/flip/apt.png', bounds:bounds, masks:masks2}, + {name:'Land Power/Toughness', src:'/img/frames/m15/flip/lpt.png', bounds:bounds, masks:masks2}, + {name:'Colorless Power/Toughness', src:'/img/frames/m15/flip/cpt.png', bounds:bounds, masks:masks2}, + {name:'Vehicle Power/Toughness', src:'/img/frames/m15/flip/vpt.png', bounds:bounds, masks:masks2} +]; +//disables/enables the "Load Frame Version" button +document.querySelector('#loadFrameVersion').disabled = false; +//defines process for loading this version, if applicable +document.querySelector('#loadFrameVersion').onclick = async function() { + //resets things so that every frame doesn't have to + await resetCardIrregularities(); + //sets card version + card.version = 'flip'; + //art bounds + card.artBounds = {x:0.0754, y:0.2962, width:0.8494, height:0.3315}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:0.784, y:0.26, width:0.12, height:0.0410, vertical:'center', horizontal: 'right'}; + resetSetSymbol(); + //watermark bounds + card.watermarkBounds = {x:0.5, y:0.7762, width:0.75, height:0.2305}; + resetWatermark(); + //text + loadTextOptions({ + mana: {name:'Mana Cost', text:'', y:0.0477, width:0.9292, height:71/2100, oneLine:true, size:71/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0}, + title: {name:'Title 1', text:'', x:0.0854, y:0.0386, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0381}, + type: {name:'Type 1', text:'', x:0.0854, y:0.2353, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324}, + rules: {name:'Rules Text 1', text:'', x:0.086, y:0.102, width:0.828, height:0.12, size:0.0362}, + pt: {name:'Power/Toughness 1', text:'', x:0.8267, y:0.2448, width:0.0967, height:0.0372, size:0.0372, font:'belerenbsc', oneLine:true, align:'center'}, + title2: {name:'Title 2', text:'', x:0.9147, y:0.8643, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0381, rotation:180}, + type2: {name:'Type 2', text:'', x:0.9147, y:0.662, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324, rotation:180}, + rules2: {name:'Rules Text 2', text:'', x:0.914, y:0.82, width:0.828, height:0.12, size:0.0362, rotation:180}, + pt2: {name:'Power/Toughness 2', text:'', x:0.1734, y:0.6739, width:0.0967, height:0.0372, size:0.0372, font:'belerenbsc', oneLine:true, align:'center', rotation:180} + }); +} +//loads available frames +loadFramePack(); \ No newline at end of file diff --git a/js/frames/packM15Lands.js b/js/frames/packM15Lands.js index a416ead8..d899e226 100644 --- a/js/frames/packM15Lands.js +++ b/js/frames/packM15Lands.js @@ -1,5 +1,6 @@ //Create objects for common properties across available frames var masks = [{src:'/img/frames/m15/regular/m15MaskPinline.png', name:'Pinline'}, {src:'/img/frames/m15/regular/m15MaskTitle.png', name:'Title'}, {src:'/img/frames/m15/regular/m15MaskType.png', name:'Type'}, {src:'/img/frames/m15/regular/m15MaskRules.png', name:'Rules'}, {src:'/img/frames/m15/regular/m15MaskFrame.png', name:'Frame'}, {src:'/img/frames/m15/regular/m15MaskBorder.png', name:'Border'}]; +var bounds = {x:0.3267, y:0.6491, width:0.3474, height:0.2496} //defines available frames availableFrames = [ {name:'White Frame', src:'/img/frames/m15/regular/lw.png', masks:masks}, @@ -8,7 +9,13 @@ availableFrames = [ {name:'Red Frame', src:'/img/frames/m15/regular/lr.png', masks:masks}, {name:'Green Frame', src:'/img/frames/m15/regular/lg.png', masks:masks}, {name:'Multicolored Frame', src:'/img/frames/m15/regular/lm.png', masks:masks}, - {name:'Colorless Frame', src:'/img/frames/m15/regular/ll.png', masks:masks} + {name:'Colorless Frame', src:'/img/frames/m15/regular/ll.png', masks:masks}, + {name:'Plains Watermark', src:'/img/frames/m15/basics/w.png', bounds:bounds}, + {name:'Island Watermark', src:'/img/frames/m15/basics/u.png', bounds:bounds}, + {name:'Swamp Watermark', src:'/img/frames/m15/basics/b.png', bounds:bounds}, + {name:'Mountain Watermark', src:'/img/frames/m15/basics/r.png', bounds:bounds}, + {name:'Forest Watermark', src:'/img/frames/m15/basics/g.png', bounds:bounds}, + {name:'Wastes Watermark', src:'/img/frames/m15/basics/c.png', bounds:bounds} ]; //disables/enables the "Load Frame Version" button document.querySelector('#loadFrameVersion').disabled = true; diff --git a/js/frames/packSimpleInventions.js b/js/frames/packSimpleInventions.js new file mode 100644 index 00000000..4fd9641d --- /dev/null +++ b/js/frames/packSimpleInventions.js @@ -0,0 +1,48 @@ +//Create objects for common properties across available frames +var masks = [{src:'/img/frames/m15/regular/m15MaskPinline.png', name:'Pinline'}, {src:'/img/frames/m15/regular/m15MaskTitle.png', name:'Title'}, {src:'/img/frames/m15/regular/m15MaskType.png', name:'Type'}, {src:'/img/frames/m15/regular/m15MaskRules.png', name:'Rules'}, {src:'/img/frames/m15/regular/m15MaskFrame.png', name:'Frame'}, {src:'/img/frames/m15/regular/m15MaskBorder.png', name:'Border'}]; +var bounds = {x:0.7573, y:0.8848, width:0.188, height:0.0733}; +//defines available frames +availableFrames = [ + {name:'White Frame', src:'/img/frames/custom/simpleInvention/w.png', masks:masks}, + {name:'Blue Frame', src:'/img/frames/custom/simpleInvention/u.png', masks:masks}, + {name:'Black Frame', src:'/img/frames/custom/simpleInvention/b.png', masks:masks}, + {name:'Red Frame', src:'/img/frames/custom/simpleInvention/r.png', masks:masks}, + {name:'Green Frame', src:'/img/frames/custom/simpleInvention/g.png', masks:masks}, + {name:'Multicolored Frame', src:'/img/frames/custom/simpleInvention/m.png', masks:masks}, + {name:'Artifact Frame', src:'/img/frames/custom/simpleInvention/a.png', masks:masks}, + {name:'White Power/Toughness', src:'/img/frames/m15/regular/m15PTW.png', bounds:bounds}, + {name:'Blue Power/Toughness', src:'/img/frames/m15/regular/m15PTU.png', bounds:bounds}, + {name:'Black Power/Toughness', src:'/img/frames/m15/regular/m15PTB.png', bounds:bounds}, + {name:'Red Power/Toughness', src:'/img/frames/m15/regular/m15PTR.png', bounds:bounds}, + {name:'Green Power/Toughness', src:'/img/frames/m15/regular/m15PTG.png', bounds:bounds}, + {name:'Multicolored Power/Toughness', src:'/img/frames/m15/regular/m15PTM.png', bounds:bounds}, + {name:'Artifact Power/Toughness', src:'/img/frames/m15/regular/m15PTA.png', bounds:bounds} +]; +//disables/enables the "Load Frame Version" button +document.querySelector('#loadFrameVersion').disabled = false; +//defines process for loading this version, if applicable +document.querySelector('#loadFrameVersion').onclick = async function() { + //resets things so that every frame doesn't have to + await resetCardIrregularities(); + //sets card version + card.version = 'simpleInventions'; + //art bounds + card.artBounds = {x:0.0767, y:0.1129, width:0.8476, height:0.4429}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:0.9213, y:0.5910, width:0.12, height:0.0410, vertical:'center', horizontal: 'right'}; + resetSetSymbol(); + //watermark bounds + card.watermarkBounds = {x:0.5, y:0.7762, width:0.75, height:0.2305}; + resetWatermark(); + //text + loadTextOptions({ + mana: {name:'Mana Cost', text:'', y:0.0613, width:0.9292, height:71/2100, oneLine:true, size:71/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0}, + title: {name:'Title', text:'', x:0.0854, y:0.0522, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0381}, + type: {name:'Type', text:'', x:0.0854, y:0.5664, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324}, + rules: {name:'Rules Text', text:'', x:0.086, y:0.6303, width:0.828, height:0.2875, size:0.0362}, + pt: {name:'Power/Toughness', text:'', x:0.7928, y:0.902, width:0.1367, height:0.0372, size:0.0372, font:'belerenbsc', oneLine:true, align:'center'} + }); +} +//loads available frames +loadFramePack(); \ No newline at end of file