diff --git a/img/frames/m15/signatureSpellbook/gideon.png b/img/frames/m15/signatureSpellbook/gideon.png new file mode 100644 index 00000000..73a82707 Binary files /dev/null and b/img/frames/m15/signatureSpellbook/gideon.png differ diff --git a/img/frames/m15/signatureSpellbook/gideonPT.png b/img/frames/m15/signatureSpellbook/gideonPT.png new file mode 100644 index 00000000..59a214f5 Binary files /dev/null and b/img/frames/m15/signatureSpellbook/gideonPT.png differ diff --git a/img/frames/m15/signatureSpellbook/gideonPTThumb.png b/img/frames/m15/signatureSpellbook/gideonPTThumb.png new file mode 100644 index 00000000..c3c43477 Binary files /dev/null and b/img/frames/m15/signatureSpellbook/gideonPTThumb.png differ diff --git a/img/frames/m15/signatureSpellbook/gideonThumb.png b/img/frames/m15/signatureSpellbook/gideonThumb.png new file mode 100644 index 00000000..5d90c4c0 Binary files /dev/null and b/img/frames/m15/signatureSpellbook/gideonThumb.png differ diff --git a/img/frames/m15/signatureSpellbook/jace.png b/img/frames/m15/signatureSpellbook/jace.png new file mode 100644 index 00000000..5ede9ac1 Binary files /dev/null and b/img/frames/m15/signatureSpellbook/jace.png differ diff --git a/img/frames/m15/signatureSpellbook/jacePT.png b/img/frames/m15/signatureSpellbook/jacePT.png new file mode 100644 index 00000000..b47e4c6b Binary files /dev/null and b/img/frames/m15/signatureSpellbook/jacePT.png differ diff --git a/img/frames/m15/signatureSpellbook/jacePTThumb.png b/img/frames/m15/signatureSpellbook/jacePTThumb.png new file mode 100644 index 00000000..bbb60782 Binary files /dev/null and b/img/frames/m15/signatureSpellbook/jacePTThumb.png differ diff --git a/img/frames/m15/signatureSpellbook/jaceThumb.png b/img/frames/m15/signatureSpellbook/jaceThumb.png new file mode 100644 index 00000000..d5a8c09f Binary files /dev/null and b/img/frames/m15/signatureSpellbook/jaceThumb.png differ diff --git a/img/frames/mysticalArchive/jp/horizontal/a.svg b/img/frames/mysticalArchive/jp/horizontal/a.svg new file mode 100644 index 00000000..bc395717 --- /dev/null +++ b/img/frames/mysticalArchive/jp/horizontal/a.svg @@ -0,0 +1,16 @@ + + + diff --git a/img/frames/mysticalArchive/jp/horizontal/aThumb.png b/img/frames/mysticalArchive/jp/horizontal/aThumb.png new file mode 100644 index 00000000..db404ee9 Binary files /dev/null and b/img/frames/mysticalArchive/jp/horizontal/aThumb.png differ diff --git a/img/frames/mysticalArchive/jp/horizontal/b.svg b/img/frames/mysticalArchive/jp/horizontal/b.svg new file mode 100644 index 00000000..7b79f05c --- /dev/null +++ b/img/frames/mysticalArchive/jp/horizontal/b.svg @@ -0,0 +1,16 @@ + + + diff --git a/img/frames/mysticalArchive/jp/horizontal/bThumb.png b/img/frames/mysticalArchive/jp/horizontal/bThumb.png new file mode 100644 index 00000000..d47491fa Binary files /dev/null and b/img/frames/mysticalArchive/jp/horizontal/bThumb.png differ diff --git a/img/frames/mysticalArchive/jp/horizontal/g.svg b/img/frames/mysticalArchive/jp/horizontal/g.svg new file mode 100644 index 00000000..99e0d6de --- /dev/null +++ b/img/frames/mysticalArchive/jp/horizontal/g.svg @@ -0,0 +1,16 @@ + + + diff --git a/img/frames/mysticalArchive/jp/horizontal/gThumb.png b/img/frames/mysticalArchive/jp/horizontal/gThumb.png new file mode 100644 index 00000000..a79c3b7c Binary files /dev/null and b/img/frames/mysticalArchive/jp/horizontal/gThumb.png differ diff --git a/img/frames/mysticalArchive/jp/horizontal/l.svg b/img/frames/mysticalArchive/jp/horizontal/l.svg new file mode 100644 index 00000000..6a124d72 --- /dev/null +++ b/img/frames/mysticalArchive/jp/horizontal/l.svg @@ -0,0 +1,16 @@ + + + diff --git a/img/frames/mysticalArchive/jp/horizontal/lThumb.png b/img/frames/mysticalArchive/jp/horizontal/lThumb.png new file mode 100644 index 00000000..206ca3fb Binary files /dev/null and b/img/frames/mysticalArchive/jp/horizontal/lThumb.png differ diff --git a/img/frames/mysticalArchive/jp/horizontal/m.svg b/img/frames/mysticalArchive/jp/horizontal/m.svg new file mode 100644 index 00000000..97de8d20 --- /dev/null +++ b/img/frames/mysticalArchive/jp/horizontal/m.svg @@ -0,0 +1,16 @@ + + + diff --git a/img/frames/mysticalArchive/jp/horizontal/mThumb.png b/img/frames/mysticalArchive/jp/horizontal/mThumb.png new file mode 100644 index 00000000..35cc3c2d Binary files /dev/null and b/img/frames/mysticalArchive/jp/horizontal/mThumb.png differ diff --git a/img/frames/mysticalArchive/jp/horizontal/r.svg b/img/frames/mysticalArchive/jp/horizontal/r.svg new file mode 100644 index 00000000..0eba4db1 --- /dev/null +++ b/img/frames/mysticalArchive/jp/horizontal/r.svg @@ -0,0 +1,16 @@ + + + diff --git a/img/frames/mysticalArchive/jp/horizontal/rThumb.png b/img/frames/mysticalArchive/jp/horizontal/rThumb.png new file mode 100644 index 00000000..b6745810 Binary files /dev/null and b/img/frames/mysticalArchive/jp/horizontal/rThumb.png differ diff --git a/img/frames/mysticalArchive/jp/horizontal/u.svg b/img/frames/mysticalArchive/jp/horizontal/u.svg new file mode 100644 index 00000000..2540faac --- /dev/null +++ b/img/frames/mysticalArchive/jp/horizontal/u.svg @@ -0,0 +1,16 @@ + + + diff --git a/img/frames/mysticalArchive/jp/horizontal/uThumb.png b/img/frames/mysticalArchive/jp/horizontal/uThumb.png new file mode 100644 index 00000000..c27f20a3 Binary files /dev/null and b/img/frames/mysticalArchive/jp/horizontal/uThumb.png differ diff --git a/img/frames/mysticalArchive/jp/horizontal/w.svg b/img/frames/mysticalArchive/jp/horizontal/w.svg new file mode 100644 index 00000000..038bedd7 --- /dev/null +++ b/img/frames/mysticalArchive/jp/horizontal/w.svg @@ -0,0 +1,16 @@ + + + diff --git a/img/frames/mysticalArchive/jp/horizontal/wThumb.png b/img/frames/mysticalArchive/jp/horizontal/wThumb.png new file mode 100644 index 00000000..866585e1 Binary files /dev/null and b/img/frames/mysticalArchive/jp/horizontal/wThumb.png differ diff --git a/img/frames/token/m15/regular/a.png b/img/frames/token/m15/regular/a.png new file mode 100644 index 00000000..1715739c Binary files /dev/null and b/img/frames/token/m15/regular/a.png differ diff --git a/img/frames/token/m15/regular/aThumb.png b/img/frames/token/m15/regular/aThumb.png new file mode 100644 index 00000000..8daeb79e Binary files /dev/null and b/img/frames/token/m15/regular/aThumb.png differ diff --git a/img/frames/token/m15/regular/b.png b/img/frames/token/m15/regular/b.png new file mode 100644 index 00000000..c3a8a5c2 Binary files /dev/null and b/img/frames/token/m15/regular/b.png differ diff --git a/img/frames/token/m15/regular/bThumb.png b/img/frames/token/m15/regular/bThumb.png new file mode 100644 index 00000000..3abd7e72 Binary files /dev/null and b/img/frames/token/m15/regular/bThumb.png differ diff --git a/img/frames/token/m15/regular/frame.svg b/img/frames/token/m15/regular/frame.svg new file mode 100644 index 00000000..fc937ff9 --- /dev/null +++ b/img/frames/token/m15/regular/frame.svg @@ -0,0 +1,8 @@ + + + diff --git a/img/frames/token/m15/regular/frameThumb.png b/img/frames/token/m15/regular/frameThumb.png new file mode 100644 index 00000000..730ba7e1 Binary files /dev/null and b/img/frames/token/m15/regular/frameThumb.png differ diff --git a/img/frames/token/m15/regular/g.png b/img/frames/token/m15/regular/g.png new file mode 100644 index 00000000..2e03f73c Binary files /dev/null and b/img/frames/token/m15/regular/g.png differ diff --git a/img/frames/token/m15/regular/gThumb.png b/img/frames/token/m15/regular/gThumb.png new file mode 100644 index 00000000..5bfd3396 Binary files /dev/null and b/img/frames/token/m15/regular/gThumb.png differ diff --git a/img/frames/token/m15/regular/l.png b/img/frames/token/m15/regular/l.png new file mode 100644 index 00000000..69fbe8a0 Binary files /dev/null and b/img/frames/token/m15/regular/l.png differ diff --git a/img/frames/token/m15/regular/lThumb.png b/img/frames/token/m15/regular/lThumb.png new file mode 100644 index 00000000..39e8baad Binary files /dev/null and b/img/frames/token/m15/regular/lThumb.png differ diff --git a/img/frames/token/m15/regular/m.png b/img/frames/token/m15/regular/m.png new file mode 100644 index 00000000..3c0f5b70 Binary files /dev/null and b/img/frames/token/m15/regular/m.png differ diff --git a/img/frames/token/m15/regular/mThumb.png b/img/frames/token/m15/regular/mThumb.png new file mode 100644 index 00000000..0244aece Binary files /dev/null and b/img/frames/token/m15/regular/mThumb.png differ diff --git a/img/frames/token/m15/regular/pinline.svg b/img/frames/token/m15/regular/pinline.svg new file mode 100644 index 00000000..6561c9d3 --- /dev/null +++ b/img/frames/token/m15/regular/pinline.svg @@ -0,0 +1,8 @@ + + + diff --git a/img/frames/token/m15/regular/pinlineThumb.png b/img/frames/token/m15/regular/pinlineThumb.png new file mode 100644 index 00000000..14599aad Binary files /dev/null and b/img/frames/token/m15/regular/pinlineThumb.png differ diff --git a/img/frames/token/m15/regular/r.png b/img/frames/token/m15/regular/r.png new file mode 100644 index 00000000..301bba51 Binary files /dev/null and b/img/frames/token/m15/regular/r.png differ diff --git a/img/frames/token/m15/regular/rThumb.png b/img/frames/token/m15/regular/rThumb.png new file mode 100644 index 00000000..91d152c4 Binary files /dev/null and b/img/frames/token/m15/regular/rThumb.png differ diff --git a/img/frames/token/m15/regular/u.png b/img/frames/token/m15/regular/u.png new file mode 100644 index 00000000..fb22eed1 Binary files /dev/null and b/img/frames/token/m15/regular/u.png differ diff --git a/img/frames/token/m15/regular/uThumb.png b/img/frames/token/m15/regular/uThumb.png new file mode 100644 index 00000000..be2ea915 Binary files /dev/null and b/img/frames/token/m15/regular/uThumb.png differ diff --git a/img/frames/token/m15/regular/w.png b/img/frames/token/m15/regular/w.png new file mode 100644 index 00000000..a38d4d3c Binary files /dev/null and b/img/frames/token/m15/regular/w.png differ diff --git a/img/frames/token/m15/regular/wThumb.png b/img/frames/token/m15/regular/wThumb.png new file mode 100644 index 00000000..35aef7e5 Binary files /dev/null and b/img/frames/token/m15/regular/wThumb.png differ diff --git a/img/frames/token/m15/textless/a.png b/img/frames/token/m15/textless/a.png new file mode 100644 index 00000000..954ecc81 Binary files /dev/null and b/img/frames/token/m15/textless/a.png differ diff --git a/img/frames/token/m15/textless/aThumb.png b/img/frames/token/m15/textless/aThumb.png new file mode 100644 index 00000000..2b6c8878 Binary files /dev/null and b/img/frames/token/m15/textless/aThumb.png differ diff --git a/img/frames/token/m15/textless/b.png b/img/frames/token/m15/textless/b.png new file mode 100644 index 00000000..8bdcab42 Binary files /dev/null and b/img/frames/token/m15/textless/b.png differ diff --git a/img/frames/token/m15/textless/bThumb.png b/img/frames/token/m15/textless/bThumb.png new file mode 100644 index 00000000..f70cb151 Binary files /dev/null and b/img/frames/token/m15/textless/bThumb.png differ diff --git a/img/frames/token/m15/textless/frame.svg b/img/frames/token/m15/textless/frame.svg new file mode 100644 index 00000000..f6997d93 --- /dev/null +++ b/img/frames/token/m15/textless/frame.svg @@ -0,0 +1,8 @@ + + + diff --git a/img/frames/token/m15/textless/frameThumb.png b/img/frames/token/m15/textless/frameThumb.png new file mode 100644 index 00000000..04310aea Binary files /dev/null and b/img/frames/token/m15/textless/frameThumb.png differ diff --git a/img/frames/token/m15/textless/g.png b/img/frames/token/m15/textless/g.png new file mode 100644 index 00000000..20c26df1 Binary files /dev/null and b/img/frames/token/m15/textless/g.png differ diff --git a/img/frames/token/m15/textless/gThumb.png b/img/frames/token/m15/textless/gThumb.png new file mode 100644 index 00000000..b5814781 Binary files /dev/null and b/img/frames/token/m15/textless/gThumb.png differ diff --git a/img/frames/token/m15/textless/l.png b/img/frames/token/m15/textless/l.png new file mode 100644 index 00000000..195a6aea Binary files /dev/null and b/img/frames/token/m15/textless/l.png differ diff --git a/img/frames/token/m15/textless/lThumb.png b/img/frames/token/m15/textless/lThumb.png new file mode 100644 index 00000000..eb286a54 Binary files /dev/null and b/img/frames/token/m15/textless/lThumb.png differ diff --git a/img/frames/token/m15/textless/m.png b/img/frames/token/m15/textless/m.png new file mode 100644 index 00000000..20ff65bf Binary files /dev/null and b/img/frames/token/m15/textless/m.png differ diff --git a/img/frames/token/m15/textless/mThumb.png b/img/frames/token/m15/textless/mThumb.png new file mode 100644 index 00000000..70a84545 Binary files /dev/null and b/img/frames/token/m15/textless/mThumb.png differ diff --git a/img/frames/token/m15/textless/pinline.svg b/img/frames/token/m15/textless/pinline.svg new file mode 100644 index 00000000..745ffd95 --- /dev/null +++ b/img/frames/token/m15/textless/pinline.svg @@ -0,0 +1,8 @@ + + + diff --git a/img/frames/token/m15/textless/pinlineThumb.png b/img/frames/token/m15/textless/pinlineThumb.png new file mode 100644 index 00000000..dbd621a5 Binary files /dev/null and b/img/frames/token/m15/textless/pinlineThumb.png differ diff --git a/img/frames/token/m15/textless/r.png b/img/frames/token/m15/textless/r.png new file mode 100644 index 00000000..ec6b0874 Binary files /dev/null and b/img/frames/token/m15/textless/r.png differ diff --git a/img/frames/token/m15/textless/rThumb.png b/img/frames/token/m15/textless/rThumb.png new file mode 100644 index 00000000..31b9bf07 Binary files /dev/null and b/img/frames/token/m15/textless/rThumb.png differ diff --git a/img/frames/token/m15/textless/u.png b/img/frames/token/m15/textless/u.png new file mode 100644 index 00000000..768eaf13 Binary files /dev/null and b/img/frames/token/m15/textless/u.png differ diff --git a/img/frames/token/m15/textless/uThumb.png b/img/frames/token/m15/textless/uThumb.png new file mode 100644 index 00000000..fc1a7143 Binary files /dev/null and b/img/frames/token/m15/textless/uThumb.png differ diff --git a/img/frames/token/m15/textless/w.png b/img/frames/token/m15/textless/w.png new file mode 100644 index 00000000..c568d125 Binary files /dev/null and b/img/frames/token/m15/textless/w.png differ diff --git a/img/frames/token/m15/textless/wThumb.png b/img/frames/token/m15/textless/wThumb.png new file mode 100644 index 00000000..56a76844 Binary files /dev/null and b/img/frames/token/m15/textless/wThumb.png differ diff --git a/img/frames/token/regular/snow.png b/img/frames/token/regular/snow.png new file mode 100644 index 00000000..d7cfce79 Binary files /dev/null and b/img/frames/token/regular/snow.png differ diff --git a/img/frames/token/regular/snowThumb.png b/img/frames/token/regular/snowThumb.png new file mode 100644 index 00000000..b850aa87 Binary files /dev/null and b/img/frames/token/regular/snowThumb.png differ diff --git a/img/frames/token/tall/snow.png b/img/frames/token/tall/snow.png new file mode 100644 index 00000000..54714e67 Binary files /dev/null and b/img/frames/token/tall/snow.png differ diff --git a/img/frames/token/tall/snowThumb.png b/img/frames/token/tall/snowThumb.png new file mode 100644 index 00000000..ff8bde9a Binary files /dev/null and b/img/frames/token/tall/snowThumb.png differ diff --git a/img/frames/token/textless/snow.png b/img/frames/token/textless/snow.png new file mode 100644 index 00000000..801aad00 Binary files /dev/null and b/img/frames/token/textless/snow.png differ diff --git a/img/frames/token/textless/snowThumb.png b/img/frames/token/textless/snowThumb.png new file mode 100644 index 00000000..a9e0b88b Binary files /dev/null and b/img/frames/token/textless/snowThumb.png differ diff --git a/js/creator-23.js b/js/creator-23.js index 61f43659..1d4f6f8e 100644 --- a/js/creator-23.js +++ b/js/creator-23.js @@ -1222,22 +1222,25 @@ function autoFitArt() { artEdited(); } function artFromScryfall(scryfallResponse) { - scryfallArt = scryfallResponse; + scryfallArt = [] const artIndex = document.querySelector('#art-index'); artIndex.innerHTML = null; var optionIndex = 0; scryfallResponse.forEach(card => { - var option = document.createElement('option'); - option.innerHTML = `${card.name} (${card.set.toUpperCase()} - ${card.artist})`; - option.value = optionIndex; - artIndex.appendChild(option); - optionIndex ++; + if (card.image_uris && (card.object == 'card' || card.type_line != 'Card')) { + scryfallArt.push(card); + var option = document.createElement('option'); + option.innerHTML = `${card.name} (${card.set.toUpperCase()} - ${card.artist})`; + option.value = optionIndex; + artIndex.appendChild(option); + optionIndex ++; + } }); changeArtIndex(); } function changeArtIndex() { const artIndexValue = document.querySelector('#art-index').value; - if (scryfallArt[artIndexValue].image_uris) { + if (artIndexValue != 0 || artIndexValue == '0') { uploadArt(scryfallArt[artIndexValue].image_uris.art_crop, 'autoFit'); artistEdited(scryfallArt[artIndexValue].artist); } @@ -1406,7 +1409,6 @@ function resetWatermark() { } //svg cropper function getSetSymbolWatermark(url, targetImage = watermark) { - console.log(url); if (!url.includes('/')) { url = 'https://cdn.jsdelivr.net/npm/keyrune/svg/' + url + '.svg'; } diff --git a/js/frames/groupShowcase-5.js b/js/frames/groupShowcase-5.js index e0ebce57..c5a08c68 100644 --- a/js/frames/groupShowcase-5.js +++ b/js/frames/groupShowcase-5.js @@ -2,8 +2,9 @@ loadFramePacks([ {name:'D&D Sourcebook', value:'DNDSourcebook'}, {name:'D&D Module', value:'DNDModule'}, {name:'Sketch Cards (MH2)', value:'MH2'}, - {name:'Mystical Archive (Japanese)', value:'MysticalArchiveJP'}, {name:'Mystical Archive', value:'MysticalArchive'}, + {name:'Mystical Archive (Japanese)', value:'MysticalArchiveJP'}, + {name:'Mystical Archive (Japanese, Horizontal)', value:'MysticalArchiveJPHorizontal'}, {name:'Praetors', value:'Praetors'}, {name:'Kaldheim', value:'Kaldheim-2'}, {name:'Kaldheim (Nonlegendary)', value:'KaldheimNonleg'}, @@ -17,6 +18,7 @@ loadFramePacks([ {name:'Nickname', value:'M15Nickname'}, {name:'Extended Art (Box Topper)', value:'M15BoxTopper'}, {name:'ZNR Expeditions (2020)', value:'ExpeditionZNR-1'}, + {name:'Signature Spellbook (Jace/Gideon)', value:'SignatureSpellbook'}, {name:'Ixalan Maps', value:'Ixalan'}, {name:'Amonkhet Invocations (u/Smyris)', value:'Invocation'}, {name:'Kaladesh Inventions', value:'Invention'}, diff --git a/js/frames/groupToken-2.js b/js/frames/groupToken-2.js index 6796fc05..03de5b47 100644 --- a/js/frames/groupToken-2.js +++ b/js/frames/groupToken-2.js @@ -3,6 +3,9 @@ loadFramePacks([ {name:'Textless', value:'TokenTextless-1'}, {name:'Tall', value:'TokenTall-1'}, {name:'Jumpstart Front Cards', value:'JMPFront'}, + {name:'Old Tokens (Bordered M15)', value:'disabled'}, + {name:'Regular (Bordered M15)', value:'TokenRegularM15'}, + {name:'Textless (Bordered M15)', value:'TokenTextlessM15'}, {name:'Addons', value:'disabled'}, {name:'Floating Legend Crowns', value:'M15LegendCrownsFloating'}, {name:'Inner Crowns', value:'M15InnerCrowns'}, diff --git a/js/frames/packM21.js b/js/frames/packM21.js index 466812c9..3ba5bee4 100644 --- a/js/frames/packM21.js +++ b/js/frames/packM21.js @@ -2,11 +2,11 @@ var bounds = {x:0.7573, y:0.8848, width:0.188, height:0.0733}; //defines available frames availableFrames = [ - {name:'White Frame', src:'/img/frames/m15/m21/m15M21FrameW.png'}, - {name:'Blue Frame', src:'/img/frames/m15/m21/m15M21FrameU.png'}, - {name:'Black Frame', src:'/img/frames/m15/m21/m15M21FrameB.png'}, - {name:'Red Frame', src:'/img/frames/m15/m21/m15M21FrameR.png'}, - {name:'Green Frame', src:'/img/frames/m15/m21/m15M21FrameG.png'}, + {name:'White Frame (Basri)', src:'/img/frames/m15/m21/m15M21FrameW.png'}, + {name:'Blue Frame (Teferi)', src:'/img/frames/m15/m21/m15M21FrameU.png'}, + {name:'Black Frame (Liliana)', src:'/img/frames/m15/m21/m15M21FrameB.png'}, + {name:'Red Frame (Chandra)', src:'/img/frames/m15/m21/m15M21FrameR.png'}, + {name:'Green Frame (Garruk)', src:'/img/frames/m15/m21/m15M21FrameG.png'}, {name:'White Basic Land', src:'/img/frames/m15/m21/m15M21FrameWL.png'}, {name:'Blue Basic Land', src:'/img/frames/m15/m21/m15M21FrameUL.png'}, {name:'Black Basic Land', src:'/img/frames/m15/m21/m15M21FrameBL.png'}, diff --git a/js/frames/packMysticalArchiveJPHorizontal.js b/js/frames/packMysticalArchiveJPHorizontal.js new file mode 100644 index 00000000..88bf2601 --- /dev/null +++ b/js/frames/packMysticalArchiveJPHorizontal.js @@ -0,0 +1,65 @@ +//Create objects for common properties across available frames +var masks = [{src:'/img/frames/mysticalArchive/jp/pinline.svg', name:'Pinline'}, {src:'/img/frames/mysticalArchive/jp/rightHalf.svg', name:'Right Half'}]; +var masks2 = [{src:'/img/frames/mysticalArchive/jp/rightHalf.svg', name:'Right Half'}]; +var stretch = [ + {name:'adjustableHorizontal', targets: [0, 1, 6, 7, 8, 10, 11, 16, 17, 18, 20, 21, 22, 27, 28], change:[0, 0]}, + {name:'typePinline', targets: [0, 1, 2, 3, 4, 5, 6, 12, 14, 18, 19, 20, 21, 22, 23], change:[0, 0]}, + {name:'type', targets: [0, 1, 2], change:[0, 0]} +]; +var bounds = {x:0.8027, y:0.5381, width:0.116, height:0.0829} +var bounds2 = {x:0.7767, y:0.8881, width:0.1687, height:0.0591} +// Notification +notify('When you load the Japanese Mystical Archive frame version, a "Mystical Archive" tab will appear. This tab allows you to control the height of the title bar.', 15); +//defines available frames +availableFrames = [ + {name:'White Frame', src:'/img/frames/mysticalArchive/jp/horizontal/w.svg', stretch:stretch, masks:masks}, + {name:'Blue Frame', src:'/img/frames/mysticalArchive/jp/horizontal/u.svg', stretch:stretch, masks:masks}, + {name:'Black Frame', src:'/img/frames/mysticalArchive/jp/horizontal/b.svg', stretch:stretch, masks:masks}, + {name:'Red Frame', src:'/img/frames/mysticalArchive/jp/horizontal/r.svg', stretch:stretch, masks:masks}, + {name:'Green Frame', src:'/img/frames/mysticalArchive/jp/horizontal/g.svg', stretch:stretch, masks:masks}, + {name:'Multicolored Frame', src:'/img/frames/mysticalArchive/jp/horizontal/m.svg', stretch:stretch, masks:masks}, + {name:'Artifact Frame', src:'/img/frames/mysticalArchive/jp/horizontal/a.svg', stretch:stretch, masks:masks}, + {name:'Land Frame', src:'/img/frames/mysticalArchive/jp/horizontal/l.svg', stretch:stretch, masks:masks}, + {name:'Uncommon', src:'/img/frames/mysticalArchive/jp/uncommon.png', bounds:bounds}, + {name:'Rare', src:'/img/frames/mysticalArchive/jp/rare.png', bounds:bounds}, + {name:'Mythic', src:'/img/frames/mysticalArchive/jp/mythic.png', bounds:bounds}, + {name:'White Power/Toughness', src:'/img/frames/mysticalArchive/jp/pt/w.svg', bounds:bounds2, complementary:19}, + {name:'Blue Power/Toughness', src:'/img/frames/mysticalArchive/jp/pt/u.svg', bounds:bounds2, complementary:19}, + {name:'Black Power/Toughness', src:'/img/frames/mysticalArchive/jp/pt/b.svg', bounds:bounds2, complementary:19}, + {name:'Red Power/Toughness', src:'/img/frames/mysticalArchive/jp/pt/r.svg', bounds:bounds2, complementary:19}, + {name:'Green Power/Toughness', src:'/img/frames/mysticalArchive/jp/pt/g.svg', bounds:bounds2, complementary:19}, + {name:'Multicolored Power/Toughness', src:'/img/frames/mysticalArchive/jp/pt/m.svg', bounds:bounds2, complementary:19}, + {name:'Artifact Power/Toughness', src:'/img/frames/mysticalArchive/jp/pt/a.svg', bounds:bounds2, complementary:19}, + {name:'Land Power/Toughness', src:'/img/frames/mysticalArchive/jp/pt/l.svg', bounds:bounds2, complementary:19}, + {name:'Power/Toughness Cutout', src:'/img/frames/mysticalArchive/jp/pt/cutout.svg', bounds:bounds2, erase:true} +]; +//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 = 'MAJPHorizontal'; + card.onload = '/js/frames/versionMysticalArchiveJPHorizontal.js'; + loadScript('/js/frames/versionMysticalArchiveJPHorizontal.js'); + //art bounds + card.artBounds = {x:0, y:0, width:1, height:0.9286}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:0.8607, y:0.5796, width:0.116, height:0.0829, vertical:'center', horizontal: 'center'}; + resetSetSymbol(); + //watermark bounds + card.watermarkBounds = {x:0.5, y:0.7705, width:0.75, height:0.2362}; + resetWatermark(); + //text + loadTextOptions({ + mana: {name:'Mana Cost', text:'', y:0.0505, width:0.9414, height:100/2100, oneLine:true, size:100/1638, align:'right', manaCost:true, manaSpacing:-0.0015, manaPrefix:'majp'}, + title: {name:'Title', text:'', x:0.0514, y:0.0522, width:0.18, height:0.0543, oneLine:true, font:'belerenb', size:0.0381, color:'white', align:'center'}, + type: {name:'Type', text:'', x:0.08, y:0.5548, width:0.2867, height:0.0543, oneLine:true, font:'belerenb', size:0.0324, align:'center'}, + rules: {name:'Rules Text', text:'', x:0.0934, y:0.6248, width:0.8134, height:0.2934, 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 diff --git a/js/frames/packSignatureSpellbook.js b/js/frames/packSignatureSpellbook.js new file mode 100644 index 00000000..eab386d0 --- /dev/null +++ b/js/frames/packSignatureSpellbook.js @@ -0,0 +1,40 @@ +//Create objects for common properties across available frames +var bounds = {x:0.7573, y:0.8848, width:0.188, height:0.0733}; +//defines available frames +availableFrames = [ + {name:'White Frame (Gideon)', src:'/img/frames/m15/signatureSpellbook/gideon.png'}, + {name:'Blue Frame (Jace)', src:'/img/frames/m15/signatureSpellbook/jace.png'}, + {name:'White Power/Toughness', src:'/img/frames/m15/signatureSpellbook/gideonPT.png', bounds:bounds}, + {name:'Blue Power/Toughness', src:'/img/frames/m15/signatureSpellbook/jacePT.png', bounds:bounds}, + {name:'Holo Stamp', src:'/img/frames/m15/m21/m15M21Stamp.png', bounds:{x:0.4727, y:0.892, width:0.0547, height:0.0391}}, +]; +//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 = 'signatureSpellbook'; + loadScript('/js/frames/manaSymbolsM21.js'); + // notify('To use the darker mana symbols on white cards, place a "DM21" (for "Dark M21") before the following mana symbols: wubrg, 0-9, and x.'); + //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', manaCost:true, manaSpacing:0, manaPrefix:'m21'}, + title: {name:'Title', text:'', x:0.0854, y:0.0522, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0381, color:'white', shadowX:0.0014, shadowY:0.001}, + type: {name:'Type', text:'', x:0.0854, y:0.5664, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324, color:'white', shadowX:0.0014, shadowY:0.001}, + rules: {name:'Rules Text', text:'', x:0.0967, y:0.6453, width:0.8067, height:0.2381, 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', color:'white'} + }); +} +//loads available frames +loadFramePack(); \ No newline at end of file diff --git a/js/frames/packTokenRegular-1.js b/js/frames/packTokenRegular-1.js index 5d31553d..a82a5945 100644 --- a/js/frames/packTokenRegular-1.js +++ b/js/frames/packTokenRegular-1.js @@ -12,6 +12,7 @@ availableFrames = [ {name:'Artifact Frame', src:'/img/frames/token/regular/tokenFrameARegular.png', masks:masks}, {name:'Land Frame', src:'/img/frames/token/regular/tokenFrameLRegular.png', masks:masks}, {name:'Colorless Frame', src:'/img/frames/token/regular/frameC.png', masks:masks}, + {name:'Snow Frame', src:'/img/frames/token/regular/snow.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}, @@ -28,7 +29,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() { //resets things so that every frame doesn't have to await resetCardIrregularities(); //sets card version - card.version = 'promoRegular'; + card.version = 'tokenRegular'; //art bounds card.artBounds = {x:0.04, y:0.0286, width:0.92, height:0.8953}; autoFitArt(); diff --git a/js/frames/packTokenRegularM15.js b/js/frames/packTokenRegularM15.js new file mode 100644 index 00000000..e09cae63 --- /dev/null +++ b/js/frames/packTokenRegularM15.js @@ -0,0 +1,50 @@ +//Create objects for common properties across available frames +var masks = [{src:'/img/frames/token/m15/regular/pinline.svg', name:'Pinline'}, {src:'/img/frames/token/m15/regular/frame.svg', name:'Frame'}, {src:'/img/frames/m15/regular/m15MaskTitle.png', name:'Title'}, {src:'/img/frames/token/tokenMaskRegularType.png', name:'Type'}, {src:'/img/frames/token/tokenMaskRegularRules.png', name:'Rules'}, {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/token/m15/regular/w.png', masks:masks}, + {name:'Blue Frame', src:'/img/frames/token/m15/regular/u.png', masks:masks}, + {name:'Black Frame', src:'/img/frames/token/m15/regular/b.png', masks:masks}, + {name:'Red Frame', src:'/img/frames/token/m15/regular/r.png', masks:masks}, + {name:'Green Frame', src:'/img/frames/token/m15/regular/g.png', masks:masks}, + {name:'Multicolored Frame', src:'/img/frames/token/m15/regular/m.png', masks:masks}, + {name:'Artifact Frame', src:'/img/frames/token/m15/regular/a.png', masks:masks}, + {name:'Land Frame', src:'/img/frames/token/m15/regular/l.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}, + {name:'Colorless Power/Toughness', src:'/img/frames/m15/regular/m15PTC.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 = 'tokenRegularM15'; + //art bounds + card.artBounds = {x:0.04, y:0.0286, width:0.92, height:0.8953}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:0.9213, y:0.6743, width:0.12, height:0.0410, vertical:'center', horizontal: 'right'}; + resetSetSymbol(); + //watermark bounds + card.watermarkBounds = {x:0.5, y:0.8177, width:0.75, height:0.1472}; + 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:'belerenbsc', size:0.0381, color:'#fde367', align:'center'}, + type: {name:'Type', text:'', x:0.0854, y:0.65, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324}, + rules: {name:'Rules Text', text:'', x:0.086, y:0.7143, width:0.828, height:0.2048, 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 diff --git a/js/frames/packTokenTall-1.js b/js/frames/packTokenTall-1.js index 99d07bd9..fc478a68 100644 --- a/js/frames/packTokenTall-1.js +++ b/js/frames/packTokenTall-1.js @@ -12,6 +12,7 @@ availableFrames = [ {name:'Artifact Frame', src:'/img/frames/token/tall/tokenFrameATall.png', masks:masks}, {name:'Land Frame', src:'/img/frames/token/tall/tokenFrameLTall.png', masks:masks}, {name:'Colorless Frame', src:'/img/frames/token/tall/frameC.png', masks:masks}, + {name:'Snow Frame', src:'/img/frames/token/tall/snow.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}, @@ -28,7 +29,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() { //resets things so that every frame doesn't have to await resetCardIrregularities(); //sets card version - card.version = 'promoTall'; + card.version = 'tokenTall'; //art bounds card.artBounds = {x:0.04, y:0.0286, width:0.92, height:0.8953}; autoFitArt(); diff --git a/js/frames/packTokenTextless-1.js b/js/frames/packTokenTextless-1.js index 9ff7561c..aa463d57 100644 --- a/js/frames/packTokenTextless-1.js +++ b/js/frames/packTokenTextless-1.js @@ -12,6 +12,7 @@ availableFrames = [ {name:'Artifact Frame', src:'/img/frames/token/textless/tokenFrameATextless.png', masks:masks}, {name:'Land Frame', src:'/img/frames/token/textless/tokenFrameLTextless.png', masks:masks}, {name:'Colorless Frame', src:'/img/frames/token/textless/frameC.png', masks:masks}, + {name:'Snow Frame', src:'/img/frames/token/textless/snow.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}, @@ -28,7 +29,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() { //resets things so that every frame doesn't have to await resetCardIrregularities(); //sets card version - card.version = 'promoTextless'; + card.version = 'tokenTextless'; //art bounds card.artBounds = {x:0.04, y:0.0286, width:0.92, height:0.8953}; autoFitArt(); diff --git a/js/frames/packTokenTextlessM15.js b/js/frames/packTokenTextlessM15.js new file mode 100644 index 00000000..045c2c40 --- /dev/null +++ b/js/frames/packTokenTextlessM15.js @@ -0,0 +1,49 @@ +//Create objects for common properties across available frames +var masks = [{src:'/img/frames/token/m15/textless/pinline.svg', name:'Pinline'}, {src:'/img/frames/token/m15/textless/frame.svg', name:'Frame'}, {src:'/img/frames/m15/regular/m15MaskTitle.png', name:'Title'}, {src:'/img/frames/token/tokenMaskTextlessType.png', name:'Type'}, {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/token/m15/textless/w.png', masks:masks}, + {name:'Blue Frame', src:'/img/frames/token/m15/textless/u.png', masks:masks}, + {name:'Black Frame', src:'/img/frames/token/m15/textless/b.png', masks:masks}, + {name:'Red Frame', src:'/img/frames/token/m15/textless/r.png', masks:masks}, + {name:'Green Frame', src:'/img/frames/token/m15/textless/g.png', masks:masks}, + {name:'Multicolored Frame', src:'/img/frames/token/m15/textless/m.png', masks:masks}, + {name:'Artifact Frame', src:'/img/frames/token/m15/textless/a.png', masks:masks}, + {name:'Land Frame', src:'/img/frames/token/m15/textless/l.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}, + {name:'Colorless Power/Toughness', src:'/img/frames/m15/regular/m15PTC.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 = 'tokenTextlessM15'; + //art bounds + card.artBounds = {x:0.04, y:0.0286, width:0.92, height:0.8953}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:0.9213, y:0.8439, width:0.12, height:0.0410, vertical:'center', horizontal: 'right'}; + resetSetSymbol(); + //watermark bounds + card.watermarkBounds = {x:-1, y:-1, width:0.0007, height:0.0005}; + 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:'belerenbsc', size:0.0381, color:'#fde367', align:'center'}, + type: {name:'Type', text:'', x:0.0854, y:0.8196, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324}, + 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 diff --git a/js/frames/versionMysticalArchiveJPHorizontal.js b/js/frames/versionMysticalArchiveJPHorizontal.js new file mode 100644 index 00000000..116bbd71 --- /dev/null +++ b/js/frames/versionMysticalArchiveJPHorizontal.js @@ -0,0 +1,42 @@ +//checks to see if it needs to run +if (!loadedVersions.includes('/js/frames/versionMysticalArchiveJPHorizontal.js')) { + loadedVersions.push('/js/frames/versionMysticalArchiveJPHorizontal.js'); + document.querySelector('#creator-menu-tabs').innerHTML += '