diff --git a/img/frames/storybook/mul/adventure/b.png b/img/frames/storybook/mul/adventure/b.png new file mode 100644 index 00000000..4d57e100 Binary files /dev/null and b/img/frames/storybook/mul/adventure/b.png differ diff --git a/img/frames/storybook/mul/adventure/bThumb.png b/img/frames/storybook/mul/adventure/bThumb.png new file mode 100644 index 00000000..21f7bd04 Binary files /dev/null and b/img/frames/storybook/mul/adventure/bThumb.png differ diff --git a/img/frames/storybook/mul/adventure/g.png b/img/frames/storybook/mul/adventure/g.png new file mode 100644 index 00000000..7ff2e121 Binary files /dev/null and b/img/frames/storybook/mul/adventure/g.png differ diff --git a/img/frames/storybook/mul/adventure/gThumb.png b/img/frames/storybook/mul/adventure/gThumb.png new file mode 100644 index 00000000..66428bd1 Binary files /dev/null and b/img/frames/storybook/mul/adventure/gThumb.png differ diff --git a/img/frames/storybook/mul/adventure/m.png b/img/frames/storybook/mul/adventure/m.png new file mode 100644 index 00000000..2c329283 Binary files /dev/null and b/img/frames/storybook/mul/adventure/m.png differ diff --git a/img/frames/storybook/mul/adventure/mThumb.png b/img/frames/storybook/mul/adventure/mThumb.png new file mode 100644 index 00000000..db933c53 Binary files /dev/null and b/img/frames/storybook/mul/adventure/mThumb.png differ diff --git a/img/frames/storybook/mul/adventure/pinline.png b/img/frames/storybook/mul/adventure/pinline.png new file mode 100644 index 00000000..e052569e Binary files /dev/null and b/img/frames/storybook/mul/adventure/pinline.png differ diff --git a/img/frames/storybook/mul/adventure/pinlineThumb.png b/img/frames/storybook/mul/adventure/pinlineThumb.png new file mode 100644 index 00000000..086f3757 Binary files /dev/null and b/img/frames/storybook/mul/adventure/pinlineThumb.png differ diff --git a/img/frames/storybook/mul/adventure/r.png b/img/frames/storybook/mul/adventure/r.png new file mode 100644 index 00000000..54e9f7c7 Binary files /dev/null and b/img/frames/storybook/mul/adventure/r.png differ diff --git a/img/frames/storybook/mul/adventure/rThumb.png b/img/frames/storybook/mul/adventure/rThumb.png new file mode 100644 index 00000000..6d8e1696 Binary files /dev/null and b/img/frames/storybook/mul/adventure/rThumb.png differ diff --git a/img/frames/storybook/mul/adventure/rules-left.png b/img/frames/storybook/mul/adventure/rules-left.png new file mode 100644 index 00000000..1a80ac95 Binary files /dev/null and b/img/frames/storybook/mul/adventure/rules-left.png differ diff --git a/img/frames/storybook/mul/adventure/rules-leftThumb.png b/img/frames/storybook/mul/adventure/rules-leftThumb.png new file mode 100644 index 00000000..c4bf6503 Binary files /dev/null and b/img/frames/storybook/mul/adventure/rules-leftThumb.png differ diff --git a/img/frames/storybook/mul/adventure/u.png b/img/frames/storybook/mul/adventure/u.png new file mode 100644 index 00000000..67b8d2de Binary files /dev/null and b/img/frames/storybook/mul/adventure/u.png differ diff --git a/img/frames/storybook/mul/adventure/uThumb.png b/img/frames/storybook/mul/adventure/uThumb.png new file mode 100644 index 00000000..bbed45bf Binary files /dev/null and b/img/frames/storybook/mul/adventure/uThumb.png differ diff --git a/img/frames/storybook/mul/adventure/w.png b/img/frames/storybook/mul/adventure/w.png new file mode 100644 index 00000000..e32b1835 Binary files /dev/null and b/img/frames/storybook/mul/adventure/w.png differ diff --git a/img/frames/storybook/mul/adventure/wThumb.png b/img/frames/storybook/mul/adventure/wThumb.png new file mode 100644 index 00000000..8152060e Binary files /dev/null and b/img/frames/storybook/mul/adventure/wThumb.png differ diff --git a/js/frameSearch.js b/js/frameSearch.js index 7185e87b..35b1ab34 100644 --- a/js/frameSearch.js +++ b/js/frameSearch.js @@ -68,6 +68,7 @@ const frameNames = new Map ([ ['M21 Signature Spellbooks (M21)', 'M21'], ['Theros Beyond Death (THB)', 'M15NyxShowcase'], ['Eldraine Storybooks: Adventures (ELD)', 'Storybook'], + ['Eldraine Storybooks: Adventures (WOE)', 'StorybookWOE'], ['Eldraine Storybooks (MOM)', 'StorybookMUL'], ['Borderless', 'GenericShowcase'], ['Borderless (Alt)', 'Borderless'], diff --git a/js/frames/groupShowcase-5.js b/js/frames/groupShowcase-5.js index d908dd8e..364b24dd 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:'Enchanting Tales (WOT)', value:'EnchantingTales'}, + {name:'Eldraine Storybooks: Adventures (WOE)', value:'StorybookWOE'}, {name:'TARDIS (WHO)', value:'TARDIS'}, {name:'Ring (LTR)', value:'Ring'}, {name:'Eldraine Storybooks (MOM)', value:'StorybookMUL'}, diff --git a/js/frames/packStorybookWOE.js b/js/frames/packStorybookWOE.js new file mode 100644 index 00000000..fadea8e7 --- /dev/null +++ b/js/frames/packStorybookWOE.js @@ -0,0 +1,68 @@ +//Create objects for common properties across available frames +var masks = [{src:'/img/frames/storybook/mul/adventure/pinline.png', name:'Pinline'}, {src:'/img/frames/storybook/mul/adventure/rules-left.png', name:'Rules (Left)'}]; +//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/adventure/w.png', masks:masks}, + {name:'Blue Frame', src:'/img/frames/storybook/mul/adventure/u.png', masks:masks}, + {name:'Black Frame', src:'/img/frames/storybook/mul/adventure/b.png', masks:masks}, + {name:'Red Frame', src:'/img/frames/storybook/mul/adventure/r.png', masks:masks}, + {name:'Green Frame', src:'/img/frames/storybook/mul/adventure/g.png', masks:masks}, + {name:'Multicolored Frame', src:'/img/frames/storybook/mul/adventure/m.png', masks:masks}, + + {name:'White Power/Toughness', src:'/img/frames/storybook/mul/pt/w.png', bounds:bounds}, + {name:'Blue Power/Toughness', src:'/img/frames/storybook/mul/pt/u.png', bounds:bounds}, + {name:'Black Power/Toughness', src:'/img/frames/storybook/mul/pt/b.png', bounds:bounds}, + {name:'Red Power/Toughness', src:'/img/frames/storybook/mul/pt/r.png', bounds:bounds}, + {name:'Green Power/Toughness', src:'/img/frames/storybook/mul/pt/g.png', bounds:bounds}, + {name:'Multicolored Power/Toughness', src:'/img/frames/storybook/mul/pt/m.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}}, +]; +//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_woe'; + card.showsFlavorBar = false; + //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:172/2010, y:2088/2814, width:813/2010, height:447/2814, size:0.0353}, + rules2: {name:'Rules Text (Right)', text:'', x:1069/2010, y:1829/2814, width:767/2010, height:724/2814, size:0.0353}, + 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'}, + mana2: {name:'Adventure Mana Cost', text:'', x:0.0814, y:0.6391, width:0.4, height:60/2100, oneLine:true, size:60/1638, color:'white', shadowX:-0.001, shadowY:0.0029, align:'right', manaCost:true}, + title2: {name:'Adventure Title', text:'', x:0.0814, y:0.6391, width:0.4, height:0.0296, size:0.0296, color:'white', oneLine:true, font:'belerenb'}, + type2: {name:'Adventure Type', text:'', x:0.0814, y:0.6839, width:0.4, height:0.0296, size:0.0296, color:'white', oneLine:true, font:'belerenb'}, + }); +} +//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