Add WOE Adventure showcase frame

This commit is contained in:
Josh birnholz
2023-10-04 01:10:54 -04:00
parent 9eaeb4392f
commit 8e4505c03a
19 changed files with 70 additions and 0 deletions

View File

@@ -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'},

View File

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