diff --git a/img/frames/storybook/mul/b.png b/img/frames/storybook/mul/b.png new file mode 100644 index 00000000..c1555799 Binary files /dev/null and b/img/frames/storybook/mul/b.png differ diff --git a/img/frames/storybook/mul/bThumb.png b/img/frames/storybook/mul/bThumb.png new file mode 100644 index 00000000..314d0800 Binary files /dev/null and b/img/frames/storybook/mul/bThumb.png differ diff --git a/img/frames/storybook/mul/crowns/b.png b/img/frames/storybook/mul/crowns/b.png new file mode 100644 index 00000000..f7bcce21 Binary files /dev/null and b/img/frames/storybook/mul/crowns/b.png differ diff --git a/img/frames/storybook/mul/crowns/bThumb.png b/img/frames/storybook/mul/crowns/bThumb.png new file mode 100644 index 00000000..bdf01bf4 Binary files /dev/null and b/img/frames/storybook/mul/crowns/bThumb.png differ diff --git a/img/frames/storybook/mul/crowns/g.png b/img/frames/storybook/mul/crowns/g.png new file mode 100644 index 00000000..d33886b1 Binary files /dev/null and b/img/frames/storybook/mul/crowns/g.png differ diff --git a/img/frames/storybook/mul/crowns/gThumb.png b/img/frames/storybook/mul/crowns/gThumb.png new file mode 100644 index 00000000..d8f6430d Binary files /dev/null and b/img/frames/storybook/mul/crowns/gThumb.png differ diff --git a/img/frames/storybook/mul/crowns/m.png b/img/frames/storybook/mul/crowns/m.png new file mode 100644 index 00000000..6804294f Binary files /dev/null and b/img/frames/storybook/mul/crowns/m.png differ diff --git a/img/frames/storybook/mul/crowns/mThumb.png b/img/frames/storybook/mul/crowns/mThumb.png new file mode 100644 index 00000000..e8de88e8 Binary files /dev/null and b/img/frames/storybook/mul/crowns/mThumb.png differ diff --git a/img/frames/storybook/mul/crowns/r.png b/img/frames/storybook/mul/crowns/r.png new file mode 100644 index 00000000..b4be734c Binary files /dev/null and b/img/frames/storybook/mul/crowns/r.png differ diff --git a/img/frames/storybook/mul/crowns/rThumb.png b/img/frames/storybook/mul/crowns/rThumb.png new file mode 100644 index 00000000..66063559 Binary files /dev/null and b/img/frames/storybook/mul/crowns/rThumb.png differ diff --git a/img/frames/storybook/mul/crowns/u.png b/img/frames/storybook/mul/crowns/u.png new file mode 100644 index 00000000..6fc78cb9 Binary files /dev/null and b/img/frames/storybook/mul/crowns/u.png differ diff --git a/img/frames/storybook/mul/crowns/uThumb.png b/img/frames/storybook/mul/crowns/uThumb.png new file mode 100644 index 00000000..9dcf9918 Binary files /dev/null and b/img/frames/storybook/mul/crowns/uThumb.png differ diff --git a/img/frames/storybook/mul/crowns/w.png b/img/frames/storybook/mul/crowns/w.png new file mode 100644 index 00000000..7fd7b154 Binary files /dev/null and b/img/frames/storybook/mul/crowns/w.png differ diff --git a/img/frames/storybook/mul/crowns/wThumb.png b/img/frames/storybook/mul/crowns/wThumb.png new file mode 100644 index 00000000..2ef8eec5 Binary files /dev/null and b/img/frames/storybook/mul/crowns/wThumb.png differ diff --git a/img/frames/storybook/mul/g.png b/img/frames/storybook/mul/g.png new file mode 100644 index 00000000..e9c5e386 Binary files /dev/null and b/img/frames/storybook/mul/g.png differ diff --git a/img/frames/storybook/mul/gThumb.png b/img/frames/storybook/mul/gThumb.png new file mode 100644 index 00000000..cb71d7a0 Binary files /dev/null and b/img/frames/storybook/mul/gThumb.png differ diff --git a/img/frames/storybook/mul/m.png b/img/frames/storybook/mul/m.png new file mode 100644 index 00000000..ecfab5e5 Binary files /dev/null and b/img/frames/storybook/mul/m.png differ diff --git a/img/frames/storybook/mul/mThumb.png b/img/frames/storybook/mul/mThumb.png new file mode 100644 index 00000000..e08050a8 Binary files /dev/null and b/img/frames/storybook/mul/mThumb.png differ diff --git a/img/frames/storybook/mul/pinline.png b/img/frames/storybook/mul/pinline.png new file mode 100644 index 00000000..9df290a1 Binary files /dev/null and b/img/frames/storybook/mul/pinline.png differ diff --git a/img/frames/storybook/mul/pinlineThumb.png b/img/frames/storybook/mul/pinlineThumb.png new file mode 100644 index 00000000..61506c7f Binary files /dev/null and b/img/frames/storybook/mul/pinlineThumb.png differ diff --git a/img/frames/storybook/mul/pt/b.png b/img/frames/storybook/mul/pt/b.png new file mode 100644 index 00000000..7e590428 Binary files /dev/null and b/img/frames/storybook/mul/pt/b.png differ diff --git a/img/frames/storybook/mul/pt/bThumb.png b/img/frames/storybook/mul/pt/bThumb.png new file mode 100644 index 00000000..20f8ea89 Binary files /dev/null and b/img/frames/storybook/mul/pt/bThumb.png differ diff --git a/img/frames/storybook/mul/pt/cover.png b/img/frames/storybook/mul/pt/cover.png new file mode 100644 index 00000000..e31c4c99 Binary files /dev/null and b/img/frames/storybook/mul/pt/cover.png differ diff --git a/img/frames/storybook/mul/pt/coverThumb.png b/img/frames/storybook/mul/pt/coverThumb.png new file mode 100644 index 00000000..5fa0ea31 Binary files /dev/null and b/img/frames/storybook/mul/pt/coverThumb.png differ diff --git a/img/frames/storybook/mul/pt/g.png b/img/frames/storybook/mul/pt/g.png new file mode 100644 index 00000000..62829370 Binary files /dev/null and b/img/frames/storybook/mul/pt/g.png differ diff --git a/img/frames/storybook/mul/pt/gThumb.png b/img/frames/storybook/mul/pt/gThumb.png new file mode 100644 index 00000000..8dd6034f Binary files /dev/null and b/img/frames/storybook/mul/pt/gThumb.png differ diff --git a/img/frames/storybook/mul/pt/m.png b/img/frames/storybook/mul/pt/m.png new file mode 100644 index 00000000..971787f8 Binary files /dev/null and b/img/frames/storybook/mul/pt/m.png differ diff --git a/img/frames/storybook/mul/pt/mThumb.png b/img/frames/storybook/mul/pt/mThumb.png new file mode 100644 index 00000000..088ef06d Binary files /dev/null and b/img/frames/storybook/mul/pt/mThumb.png differ diff --git a/img/frames/storybook/mul/pt/r.png b/img/frames/storybook/mul/pt/r.png new file mode 100644 index 00000000..3c6d389d Binary files /dev/null and b/img/frames/storybook/mul/pt/r.png differ diff --git a/img/frames/storybook/mul/pt/rThumb.png b/img/frames/storybook/mul/pt/rThumb.png new file mode 100644 index 00000000..ac1e6a4d Binary files /dev/null and b/img/frames/storybook/mul/pt/rThumb.png differ diff --git a/img/frames/storybook/mul/pt/u.png b/img/frames/storybook/mul/pt/u.png new file mode 100644 index 00000000..c39efb3f Binary files /dev/null and b/img/frames/storybook/mul/pt/u.png differ diff --git a/img/frames/storybook/mul/pt/uThumb.png b/img/frames/storybook/mul/pt/uThumb.png new file mode 100644 index 00000000..1b5ac617 Binary files /dev/null and b/img/frames/storybook/mul/pt/uThumb.png differ diff --git a/img/frames/storybook/mul/pt/w.png b/img/frames/storybook/mul/pt/w.png new file mode 100644 index 00000000..53730550 Binary files /dev/null and b/img/frames/storybook/mul/pt/w.png differ diff --git a/img/frames/storybook/mul/pt/wThumb.png b/img/frames/storybook/mul/pt/wThumb.png new file mode 100644 index 00000000..8a834f7d Binary files /dev/null and b/img/frames/storybook/mul/pt/wThumb.png differ diff --git a/img/frames/storybook/mul/r.png b/img/frames/storybook/mul/r.png new file mode 100644 index 00000000..d5628588 Binary files /dev/null and b/img/frames/storybook/mul/r.png differ diff --git a/img/frames/storybook/mul/rThumb.png b/img/frames/storybook/mul/rThumb.png new file mode 100644 index 00000000..dcf97541 Binary files /dev/null and b/img/frames/storybook/mul/rThumb.png differ diff --git a/img/frames/storybook/mul/rightHalf.png b/img/frames/storybook/mul/rightHalf.png new file mode 100644 index 00000000..89e0d1db Binary files /dev/null and b/img/frames/storybook/mul/rightHalf.png differ diff --git a/img/frames/storybook/mul/u.png b/img/frames/storybook/mul/u.png new file mode 100644 index 00000000..f715f705 Binary files /dev/null and b/img/frames/storybook/mul/u.png differ diff --git a/img/frames/storybook/mul/uThumb.png b/img/frames/storybook/mul/uThumb.png new file mode 100644 index 00000000..6052eae1 Binary files /dev/null and b/img/frames/storybook/mul/uThumb.png differ diff --git a/img/frames/storybook/mul/w.png b/img/frames/storybook/mul/w.png new file mode 100644 index 00000000..52f5ffcd Binary files /dev/null and b/img/frames/storybook/mul/w.png differ diff --git a/img/frames/storybook/mul/wThumb.png b/img/frames/storybook/mul/wThumb.png new file mode 100644 index 00000000..b52b0688 Binary files /dev/null and b/img/frames/storybook/mul/wThumb.png differ diff --git a/js/creator-23.js b/js/creator-23.js index b6bbae2e..82932cf0 100644 --- a/js/creator-23.js +++ b/js/creator-23.js @@ -2544,7 +2544,7 @@ function writeText(textObject, targetContext) { } if (card.version == 'pokemon') { rawText = rawText.replace(/{flavor}/g, '{oldflavor}{fontsize-20}{fontgillsansbolditalic}'); - } else if (autoFramePack == 'Seventh' || autoFramePack == '8th' || card.version == 'invocation') { + } else if (autoFramePack == 'Seventh' || autoFramePack == '8th' || card.version == 'invocation' || card.version == "storybook_mul") { rawText = rawText.replace(/{flavor}/g, '{oldflavor}'); } rawText = rawText.replace(/ - /g, ' — '); diff --git a/js/frameSearch.js b/js/frameSearch.js index b1df0a42..22ba067e 100644 --- a/js/frameSearch.js +++ b/js/frameSearch.js @@ -60,7 +60,8 @@ const frameNames = new Map ([ ['Zendikar Rising (ZNR)', 'ZendikarRising'], ['M21 Signature Spellbooks (M21)', 'M21'], ['Theros Beyond Death (THB)', 'M15NyxShowcase'], - ['Eldraine Storybooks (ELD)', 'Storybook'], + ['Eldraine Storybooks: Adventures (ELD)', 'Storybook'], + ['Eldraine Storybooks (MOM)', 'StorybookMUL'], ['Borderless', 'GenericShowcase'], ['Borderless (Alt)', 'Borderless'], ['Fullart', 'M15ClearTextboxes'], diff --git a/js/frames/groupShowcase-5.js b/js/frames/groupShowcase-5.js index e715e918..84443956 100644 --- a/js/frames/groupShowcase-5.js +++ b/js/frames/groupShowcase-5.js @@ -1,6 +1,7 @@ loadFramePacks([ {name:'Set Showcase Frames (Chronological)', value:'disabled'}, {name:'Ring (LTR)', value:'Ring'}, + {name:'Eldraine Storybooks (MOM)', value:'StorybookMUL'}, {name:'Ixalan Coin (MOM)', value:'IxalanCoin'}, {name:'Tarkir Sketch (MOM)', value:'Tarkir'}, {name:'Ikoria Crystal (MOM)', value:'Crystal'}, @@ -30,7 +31,7 @@ loadFramePacks([ {name:'Zendikar Rising (ZNR)', value:'ZendikarRising'}, {name:'M21 Signature Spellbooks (M21)', value:'M21'}, {name:'Theros Beyond Death (THB)', value:'M15NyxShowcase'}, - {name:'Eldraine Storybooks (ELD)', value:'Storybook'}, + {name:'Eldraine Storybooks: Adventures (ELD)', value:'Storybook'}, {name:'Generic Showcase Frames', value:'disabled'}, {name:'Borderless', value:'GenericShowcase'}, {name:'Borderless (Alt)', value:'Borderless'}, diff --git a/js/frames/packStorybookMUL.js b/js/frames/packStorybookMUL.js new file mode 100644 index 00000000..fd41a30a --- /dev/null +++ b/js/frames/packStorybookMUL.js @@ -0,0 +1,65 @@ +//Create objects for common properties across available frames +var masks = [{src:'/img/frames/storybook/mul/pinline.png', name:'Pinline'}]; +//Create objects for common properties across available frames +var bounds = {x:1165/1500, y:1860/2100, width:266/1500, height:134/2100}; +var crownBounds = {x:80/1500, y:41/2100, width:1341/1500, height:73/2100}; +//defines available frames +availableFrames = [ + {name:'White Frame', src:'/img/frames/storybook/mul/w.png', masks:masks}, + {name:'Blue Frame', src:'/img/frames/storybook/mul/u.png', masks:masks}, + {name:'Black Frame', src:'/img/frames/storybook/mul/b.png', masks:masks}, + {name:'Red Frame', src:'/img/frames/storybook/mul/r.png', masks:masks}, + {name:'Green Frame', src:'/img/frames/storybook/mul/g.png', masks:masks}, + {name:'Multicolored Frame', src:'/img/frames/storybook/mul/m.png', masks:masks}, + // {name:'Colorless Frame', src:'/img/frames/storybook/c.png', masks:masks}, + {name:'White Power/Toughness', src:'/img/frames/storybook/mul/pt/w.png', bounds:bounds, complementary: 19}, + {name:'Blue Power/Toughness', src:'/img/frames/storybook/mul/pt/u.png', bounds:bounds, complementary: 19}, + {name:'Black Power/Toughness', src:'/img/frames/storybook/mul/pt/b.png', bounds:bounds, complementary: 19}, + {name:'Red Power/Toughness', src:'/img/frames/storybook/mul/pt/r.png', bounds:bounds, complementary: 19}, + {name:'Green Power/Toughness', src:'/img/frames/storybook/mul/pt/g.png', bounds:bounds, complementary: 19}, + {name:'Multicolored Power/Toughness', src:'/img/frames/storybook/mul/pt/m.png', bounds:bounds, complementary: 19}, + // {name:'Colorless Power/Toughness', src:'/img/frames/storybook/cpt.png', bounds:bounds}, + + {name:'White Legend Crown', src:'/img/frames/storybook/mul/crowns/w.png', bounds:crownBounds}, + {name:'Blue Legend Crown', src:'/img/frames/storybook/mul/crowns/u.png', bounds:crownBounds}, + {name:'Black Legend Crown', src:'/img/frames/storybook/mul/crowns/b.png', bounds:crownBounds}, + {name:'Red Legend Crown', src:'/img/frames/storybook/mul/crowns/r.png', bounds:crownBounds}, + {name:'Green Legend Crown', src:'/img/frames/storybook/mul/crowns/g.png', bounds:crownBounds}, + {name:'Multicolored Legend Crown', src:'/img/frames/storybook/mul/crowns/m.png', bounds:crownBounds}, + + {name:'Holo Stamp', src:'/img/frames/storybook/holo.png', bounds:{x:679/1500, y:0.9129, width:0.0987, height:0.0386}}, + {name:'Power/Toughness Cover', src:'/img/frames/storybook/mul/pt/cover.png', bounds: {x:1404/1500, y:1817/2100, width:91/1500, height:177/2100}} +]; +//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(); + replacementMasks = {'Right Half':'img/frames/storybook/mul/rightHalf.png'}; + //sets card version + card.version = 'storybook_mul'; + //art bounds + card.artBounds = {x:54/1500, y:62/2100, width:1398/1500, height:1157/2100}; + 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.72, y:0.7681, width:0.3867, height:0.2358}; + 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.5667, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324}, + rules: {name:'Rules Text', text:'', x:129/1500, y:1356/2100, width:1245/1500, height:536/2100, size:0.0362}, + pt: {name:'Power/Toughness', text:'', x:0.7934, y:0.9029, width:0.14, height:0.0372, size:0.0372, font:'belerenbsc', oneLine:true, align:'center'}, + }); +} +//loads available frames +loadFramePack(); +//Only for the main version as the webpage loads: +if (!card.text) { + document.querySelector('#loadFrameVersion').click(); +} \ No newline at end of file