Add Eldraine Storybook frame (non-Adventure)

This commit is contained in:
Josh birnholz
2023-07-14 20:12:38 -04:00
parent 8845ba5dd0
commit 87a26f1e1d
45 changed files with 70 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -2544,7 +2544,7 @@ function writeText(textObject, targetContext) {
} }
if (card.version == 'pokemon') { if (card.version == 'pokemon') {
rawText = rawText.replace(/{flavor}/g, '{oldflavor}{fontsize-20}{fontgillsansbolditalic}'); 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(/{flavor}/g, '{oldflavor}');
} }
rawText = rawText.replace(/ - /g, ' — '); rawText = rawText.replace(/ - /g, ' — ');

View File

@@ -60,7 +60,8 @@ const frameNames = new Map ([
['Zendikar Rising (ZNR)', 'ZendikarRising'], ['Zendikar Rising (ZNR)', 'ZendikarRising'],
['M21 Signature Spellbooks (M21)', 'M21'], ['M21 Signature Spellbooks (M21)', 'M21'],
['Theros Beyond Death (THB)', 'M15NyxShowcase'], ['Theros Beyond Death (THB)', 'M15NyxShowcase'],
['Eldraine Storybooks (ELD)', 'Storybook'], ['Eldraine Storybooks: Adventures (ELD)', 'Storybook'],
['Eldraine Storybooks (MOM)', 'StorybookMUL'],
['Borderless', 'GenericShowcase'], ['Borderless', 'GenericShowcase'],
['Borderless (Alt)', 'Borderless'], ['Borderless (Alt)', 'Borderless'],
['Fullart', 'M15ClearTextboxes'], ['Fullart', 'M15ClearTextboxes'],

View File

@@ -1,6 +1,7 @@
loadFramePacks([ loadFramePacks([
{name:'Set Showcase Frames (Chronological)', value:'disabled'}, {name:'Set Showcase Frames (Chronological)', value:'disabled'},
{name:'Ring (LTR)', value:'Ring'}, {name:'Ring (LTR)', value:'Ring'},
{name:'Eldraine Storybooks (MOM)', value:'StorybookMUL'},
{name:'Ixalan Coin (MOM)', value:'IxalanCoin'}, {name:'Ixalan Coin (MOM)', value:'IxalanCoin'},
{name:'Tarkir Sketch (MOM)', value:'Tarkir'}, {name:'Tarkir Sketch (MOM)', value:'Tarkir'},
{name:'Ikoria Crystal (MOM)', value:'Crystal'}, {name:'Ikoria Crystal (MOM)', value:'Crystal'},
@@ -30,7 +31,7 @@ loadFramePacks([
{name:'Zendikar Rising (ZNR)', value:'ZendikarRising'}, {name:'Zendikar Rising (ZNR)', value:'ZendikarRising'},
{name:'M21 Signature Spellbooks (M21)', value:'M21'}, {name:'M21 Signature Spellbooks (M21)', value:'M21'},
{name:'Theros Beyond Death (THB)', value:'M15NyxShowcase'}, {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:'Generic Showcase Frames', value:'disabled'},
{name:'Borderless', value:'GenericShowcase'}, {name:'Borderless', value:'GenericShowcase'},
{name:'Borderless (Alt)', value:'Borderless'}, {name:'Borderless (Alt)', value:'Borderless'},

View File

@@ -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();
}