Add Eldraine Storybook frame (non-Adventure)
BIN
img/frames/storybook/mul/b.png
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
img/frames/storybook/mul/bThumb.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
img/frames/storybook/mul/crowns/b.png
Normal file
After Width: | Height: | Size: 51 KiB |
BIN
img/frames/storybook/mul/crowns/bThumb.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
img/frames/storybook/mul/crowns/g.png
Normal file
After Width: | Height: | Size: 54 KiB |
BIN
img/frames/storybook/mul/crowns/gThumb.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
img/frames/storybook/mul/crowns/m.png
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
img/frames/storybook/mul/crowns/mThumb.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
img/frames/storybook/mul/crowns/r.png
Normal file
After Width: | Height: | Size: 54 KiB |
BIN
img/frames/storybook/mul/crowns/rThumb.png
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
img/frames/storybook/mul/crowns/u.png
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
img/frames/storybook/mul/crowns/uThumb.png
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
img/frames/storybook/mul/crowns/w.png
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
img/frames/storybook/mul/crowns/wThumb.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
img/frames/storybook/mul/g.png
Normal file
After Width: | Height: | Size: 1.6 MiB |
BIN
img/frames/storybook/mul/gThumb.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
img/frames/storybook/mul/m.png
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
img/frames/storybook/mul/mThumb.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
img/frames/storybook/mul/pinline.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
img/frames/storybook/mul/pinlineThumb.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
img/frames/storybook/mul/pt/b.png
Normal file
After Width: | Height: | Size: 41 KiB |
BIN
img/frames/storybook/mul/pt/bThumb.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
img/frames/storybook/mul/pt/cover.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
img/frames/storybook/mul/pt/coverThumb.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
img/frames/storybook/mul/pt/g.png
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
img/frames/storybook/mul/pt/gThumb.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
img/frames/storybook/mul/pt/m.png
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
img/frames/storybook/mul/pt/mThumb.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
img/frames/storybook/mul/pt/r.png
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
img/frames/storybook/mul/pt/rThumb.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
img/frames/storybook/mul/pt/u.png
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
img/frames/storybook/mul/pt/uThumb.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
img/frames/storybook/mul/pt/w.png
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
img/frames/storybook/mul/pt/wThumb.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
img/frames/storybook/mul/r.png
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
img/frames/storybook/mul/rThumb.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
img/frames/storybook/mul/rightHalf.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
img/frames/storybook/mul/u.png
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
img/frames/storybook/mul/uThumb.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
img/frames/storybook/mul/w.png
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
img/frames/storybook/mul/wThumb.png
Normal file
After Width: | Height: | Size: 14 KiB |
@@ -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, ' — ');
|
||||
|
@@ -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'],
|
||||
|
@@ -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'},
|
||||
|
65
js/frames/packStorybookMUL.js
Normal 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();
|
||||
}
|