Add transform Double Feature Planeswalker frame

This commit is contained in:
Josh birnholz
2023-11-05 12:32:10 -05:00
parent 616d144f48
commit fb34aa894a
28 changed files with 93 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 672 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 644 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 693 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 640 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 685 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 675 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 665 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 712 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 535 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 566 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View File

@@ -110,6 +110,8 @@ const frameNames = new Map ([
['Planeswalker MDFC', 'PlaneswalkerMDFC'], ['Planeswalker MDFC', 'PlaneswalkerMDFC'],
['Planeswalker Transform (Front)', 'PlaneswalkerTransformFront'], ['Planeswalker Transform (Front)', 'PlaneswalkerTransformFront'],
['Planeswalker Transform (Back)', 'PlaneswalkerTransformBack'], ['Planeswalker Transform (Back)', 'PlaneswalkerTransformBack'],
['Double Feature Planeswalker Transform (Front)', 'PlaneswalkerTransformFrontDBL'],
['Double Feature Planeswalker Transform (Back)', 'PlaneswalkerTransformBackDBL'],
['Planeswalker Transform Icons', 'PlaneswalkerTransformIcons'], ['Planeswalker Transform Icons', 'PlaneswalkerTransformIcons'],
//saga //saga
['Sagas', 'SagaRegular'], ['Sagas', 'SagaRegular'],

View File

@@ -16,6 +16,8 @@ loadFramePacks([
{name:'MDFC', value:'PlaneswalkerMDFC'}, {name:'MDFC', value:'PlaneswalkerMDFC'},
{name:'Transform (Front)', value:'PlaneswalkerTransformFront'}, {name:'Transform (Front)', value:'PlaneswalkerTransformFront'},
{name:'Transform (Back)', value:'PlaneswalkerTransformBack'}, {name:'Transform (Back)', value:'PlaneswalkerTransformBack'},
{name:'Innistrad: Double Feature: Transform (Front)', value:'PlaneswalkerTransformFrontDBL'},
{name:'Innistrad: Double Feature: Transform (Back)', value:'PlaneswalkerTransformBackDBL'},
{name:'Color Identity Pips', value:'M15CIPips'}, {name:'Color Identity Pips', value:'M15CIPips'},
{name:'Transform Icons', value:'PlaneswalkerTransformIcons'} {name:'Transform Icons', value:'PlaneswalkerTransformIcons'}
]) ])

View File

@@ -0,0 +1,45 @@
//Create objects for common properties across available frames
var masks = [{src:'/img/frames/planeswalker/transform/pinline.svg', name:'Pinline'}, {src:'/img/frames/planeswalker/transform/title.svg', name:'Title'}, {src:'/img/frames/planeswalker/regular/planeswalkerMaskType.png', name:'Type'}, {src:'/img/frames/planeswalker/transform/frame.svg', name:'Frame'}, {src:'/img/frames/planeswalker/regular/planeswalkerMaskBorder.png', name:'Border'}];
//defines available frames
availableFrames = [
{name:'White Frame (Back)', src:'/img/frames/planeswalker/transform/dbl/wb.png', masks:masks},
{name:'Blue Frame (Back)', src:'/img/frames/planeswalker/transform/dbl/ub.png', masks:masks},
{name:'Black Frame (Back)', src:'/img/frames/planeswalker/transform/dbl/bb.png', masks:masks},
{name:'Red Frame (Back)', src:'/img/frames/planeswalker/transform/dbl/rb.png', masks:masks},
{name:'Green Frame (Back)', src:'/img/frames/planeswalker/transform/dbl/gb.png', masks:masks},
{name:'Multicolored Frame (Back)', src:'/img/frames/planeswalker/transform/dbl/mb.png', masks:masks},
{name:'Loyalty Box', src:'/img/frames/planeswalker/transform/loyalty.png', bounds:{x:0.8, y:0.8796, width:0.152, height:0.0677}}
];
//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();
//sets card version
card.version = 'planeswalkerTransformBackDBL';
card.onload = '/js/frames/versionPlaneswalker.js';
loadScript('/js/frames/versionPlaneswalker.js');
//art bounds
card.artBounds = {x:0.068, y:0.101, width:0.864, height:0.8143};
autoFitArt();
//set symbol bounds
card.setSymbolBounds = {x:0.9227, y:0.5891, width:0.12, height:0.0381, vertical:'center', horizontal: 'right'};
resetSetSymbol();
//watermark bounds
card.watermarkBounds = {x:0.5, y:0.7762, width:0.75, height:0.2305};
resetWatermark();
//text
loadTextOptions({
mana: {name:'Mana Cost', text:'', y:0.0481, 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.16, y:0.0372, width:0.8292, height:0.0548, oneLine:true, font:'belerenb', size:0.0381, color:'white'},
type: {name:'Type', text:'', x:0.1307, y:0.5625, width:0.7827, height:0.0548, oneLine:true, font:'belerenb', size:0.0324, color:'white'},
ability0: {name:'Ability 1', text:'', x:0.18, y:0.6239, width:0.7467, height:0.0972, size:0.0353},
ability1: {name:'Ability 2', text:'', x:0.18, y:0, width:0.7467, height:0.0972, size:0.0353},
ability2: {name:'Ability 3', text:'', x:0.18, y:0, width:0.7467, height:0.0972, size:0.0353},
ability3: {name:'Ability 4', text:'', x:0.18, y:0, width:0.7467, height:0, size:0.0353},
loyalty: {name:'Loyalty', text:'', x:0.806, y:0.902, width:0.14, height:0.0372, size:0.0372, font:'belerenbsc', oneLine:true, align:'center', color:'white'}
});
}
//loads available frames
loadFramePack();

View File

@@ -0,0 +1,44 @@
//Create objects for common properties across available frames
var masks = [{src:'/img/frames/planeswalker/transform/pinlineFront.svg', name:'Pinline'}, {src:'/img/frames/planeswalker/transform/title.svg', name:'Title'}, {src:'/img/frames/planeswalker/regular/planeswalkerMaskType.png', name:'Type'}, {src:'/img/frames/planeswalker/transform/frameFront.svg', name:'Frame'}, {src:'/img/frames/planeswalker/regular/planeswalkerMaskBorder.png', name:'Border'}, {src:'/img/frames/planeswalker/maskLoyalty.png', name:'Loyalty'}];
//defines available frames
availableFrames = [
{name:'White Frame (Front)', src:'/img/frames/planeswalker/transform/dbl/wf.png', masks:masks},
{name:'Blue Frame (Front)', src:'/img/frames/planeswalker/transform/dbl/uf.png', masks:masks},
{name:'Black Frame (Front)', src:'/img/frames/planeswalker/transform/dbl/bf.png', masks:masks},
{name:'Red Frame (Front)', src:'/img/frames/planeswalker/transform/dbl/rf.png', masks:masks},
{name:'Green Frame (Front)', src:'/img/frames/planeswalker/transform/dbl/gf.png', masks:masks},
{name:'Multicolored Frame (Front)', src:'/img/frames/planeswalker/transform/dbl/mf.png', masks:masks}
];
//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();
//sets card version
card.version = 'planeswalkerTransformFrontDBL';
card.onload = '/js/frames/versionPlaneswalker.js';
loadScript('/js/frames/versionPlaneswalker.js');
//art bounds
card.artBounds = {x:0.068, y:0.101, width:0.864, height:0.8143};
autoFitArt();
//set symbol bounds
card.setSymbolBounds = {x:0.9227, y:0.5891, width:0.12, height:0.0381, vertical:'center', horizontal: 'right'};
resetSetSymbol();
//watermark bounds
card.watermarkBounds = {x:0.5, y:0.7762, width:0.75, height:0.2305};
resetWatermark();
//text
loadTextOptions({
mana: {name:'Mana Cost', text:'', y:0.0481, 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.16, y:0.0372, width:0.8292, height:0.0548, oneLine:true, font:'belerenb', size:0.0381, color:'white'},
type: {name:'Type', text:'', x:0.0867, y:0.5625, width:0.8267, height:0.0548, oneLine:true, font:'belerenb', size:0.0324, color:'white'},
ability0: {name:'Ability 1', text:'', x:0.18, y:0.6239, width:0.7467, height:0.0972, size:0.0353},
ability1: {name:'Ability 2', text:'', x:0.18, y:0, width:0.7467, height:0.0972, size:0.0353},
ability2: {name:'Ability 3', text:'', x:0.18, y:0, width:0.7467, height:0.0972, size:0.0353},
ability3: {name:'Ability 4', text:'', x:0.18, y:0, width:0.7467, height:0, size:0.0353},
loyalty: {name:'Loyalty', text:'', x:0.806, y:0.902, width:0.14, height:0.0372, size:0.0372, font:'belerenbsc', oneLine:true, align:'center', color:'white'}
});
}
//loads available frames
loadFramePack();