planeswalker box topper

This commit is contained in:
Kyle
2021-04-23 09:19:44 -07:00
parent ac1a97ccda
commit 5299b8e7f0
24 changed files with 57 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

View File

@@ -2,8 +2,9 @@ loadFramePacks([
{name:'Standard 1/8 Inch Margin', value:'Margin-1'}, {name:'Standard 1/8 Inch Margin', value:'Margin-1'},
{name:'Mystical Archive 1/8 Inch Margin', value:'MarginMysticalArchive'} {name:'Mystical Archive 1/8 Inch Margin', value:'MarginMysticalArchive'}
]) ])
//For multiple Margin packs //For multiple Margin packs
const loadMarginVersion = async () => { var loadMarginVersion = async () => {
//resets things so that every frame doesn't have to //resets things so that every frame doesn't have to
await resetCardIrregularities({canvas:[1500, 2100, 0.044, 1/35], resetOthers:false}); await resetCardIrregularities({canvas:[1500, 2100, 0.044, 1/35], resetOthers:false});
//sets card version //sets card version
@@ -43,4 +44,4 @@ const loadMarginVersion = async () => {
drawFrames(); drawFrames();
bottomInfoEdited(); bottomInfoEdited();
watermarkEdited(); watermarkEdited();
} }

View File

@@ -1,6 +1,7 @@
loadFramePacks([ loadFramePacks([
{name:'Regular Frames', value:'PlaneswalkerRegular'}, {name:'Regular Frames', value:'PlaneswalkerRegular'},
{name:'Borderless Frames', value:'PlaneswalkerBorderless'}, {name:'Borderless Frames', value:'PlaneswalkerBorderless'},
{name:'Extended Art Frames', value:'PlaneswalkerBoxTopper'},
{name:'Nickname Frames', value:'PlaneswalkerNickname'}, {name:'Nickname Frames', value:'PlaneswalkerNickname'},
{name:'Tall Frames', value:'PlaneswalkerTall'}, {name:'Tall Frames', value:'PlaneswalkerTall'},
{name:'MDFC Frames', value:'PlaneswalkerMDFC'} {name:'MDFC Frames', value:'PlaneswalkerMDFC'}

View File

@@ -11,7 +11,7 @@ loadFramePacks([
{name:'Generic Showcase', value:'GenericShowcase'}, {name:'Generic Showcase', value:'GenericShowcase'},
{name:'Masterpieces/Other', value:'disabled'}, {name:'Masterpieces/Other', value:'disabled'},
{name:'Nickname', value:'M15Nickname'}, {name:'Nickname', value:'M15Nickname'},
{name:'Box Toppers', value:'M15BoxTopper'}, {name:'Extended Art (Box Topper)', value:'M15BoxTopper'},
{name:'ZNR Expeditions (2020)', value:'ExpeditionZNR-1'}, {name:'ZNR Expeditions (2020)', value:'ExpeditionZNR-1'},
{name:'Ixalan Maps', value:'Ixalan'}, {name:'Ixalan Maps', value:'Ixalan'},
{name:'Kaladesh Inventions', value:'Invention'}, {name:'Kaladesh Inventions', value:'Invention'},

View File

@@ -14,7 +14,7 @@ loadFramePacks([
{name:'Devoid', value:'M15Devoid'}, {name:'Devoid', value:'M15Devoid'},
{name:'Special', value:'disabled'}, {name:'Special', value:'disabled'},
{name:'Nickname', value:'M15Nickname'}, {name:'Nickname', value:'M15Nickname'},
{name:'Box Toppers', value:'M15BoxTopper'}, {name:'Extended Art (Box Topper)', value:'M15BoxTopper'},
{name:'Custom Addons', value:'disabled'}, {name:'Custom Addons', value:'disabled'},
{name:'Brawl Legend Crowns', value:'Brawl'} {name:'Brawl Legend Crowns', value:'Brawl'}
]) ])

View File

@@ -4,10 +4,11 @@ var ogBounds = {x:0, y:0, width:1, height:1};
var masks = [{name:'Border Extension', src:'/img/frames/margins/blackBorderExtension.png'}, {name:'Borderless Border Extension', src:'/img/frames/margins/borderlessBorderExtension.png'}, {name:'Box Topper Border Extension', src:'/img/frames/margins/boxTopperBorderExtension.png'}, {name:'Cornered Border Extension', src:'/img/frames/margins/blackCorners.png'}]; var masks = [{name:'Border Extension', src:'/img/frames/margins/blackBorderExtension.png'}, {name:'Borderless Border Extension', src:'/img/frames/margins/borderlessBorderExtension.png'}, {name:'Box Topper Border Extension', src:'/img/frames/margins/boxTopperBorderExtension.png'}, {name:'Cornered Border Extension', src:'/img/frames/margins/blackCorners.png'}];
//defines available frames //defines available frames
availableFrames = [ availableFrames = [
{name:'Black Border Extension', src:'/img/frames/margins/blackBorderExtension.png', bounds:bounds}, {name:'Black Extension', src:'/img/frames/margins/blackBorderExtension.png', bounds:bounds},
{name:'Borderless Border Extension', src:'/img/frames/margins/borderlessBorderExtension.png', bounds:bounds}, {name:'Borderless Extension', src:'/img/frames/margins/borderlessBorderExtension.png', bounds:bounds},
{name:'Box Topper Border Extension', src:'/img/frames/margins/boxTopperBorderExtension.png', bounds:bounds}, {name:'Box Topper Extension', src:'/img/frames/margins/boxTopperBorderExtension.png', bounds:bounds},
{name:'Black Corners', src:'/img/frames/margins/blackCorners.png', bounds:bounds}, {name:'Box Topper Extension (Planeswalker)', src:'/img/frames/planeswalker/boxTopper/margin.png', bounds:bounds},
{name:'Black Extension (Cornered)', src:'/img/frames/margins/blackCorners.png', bounds:bounds},
{name:'White Border Extension', src:'/img/frames/white.png', ogBounds:ogBounds, bounds:bounds, masks:masks, noDefaultMask:true}, {name:'White Border Extension', src:'/img/frames/white.png', ogBounds:ogBounds, bounds:bounds, masks:masks, noDefaultMask:true},
{name:'Silver Border Extension', src:'/img/frames/silver.png', ogBounds:ogBounds, bounds:bounds, masks:masks, noDefaultMask:true}, {name:'Silver Border Extension', src:'/img/frames/silver.png', ogBounds:ogBounds, bounds:bounds, masks:masks, noDefaultMask:true},
{name:'Gold Border Extension', src:'/img/frames/gold.png', ogBounds:ogBounds, bounds:bounds, masks:masks, noDefaultMask:true} {name:'Gold Border Extension', src:'/img/frames/gold.png', ogBounds:ogBounds, bounds:bounds, masks:masks, noDefaultMask:true}

View File

@@ -0,0 +1,46 @@
//Create objects for common properties across available frames
var masks = [{src:'/img/frames/planeswalker/regular/planeswalkerMaskPinline.png', name:'Pinline'}, {src:'/img/frames/planeswalker/regular/planeswalkerMaskTitle.png', name:'Title'}, {src:'/img/frames/planeswalker/regular/planeswalkerMaskType.png', name:'Type'}, {src:'/img/frames/planeswalker/regular/planeswalkerMaskBorder.png', name:'Border'}, {src:'/img/frames/planeswalker/maskLoyalty.png', name:'Loyalty'}];
//defines available frames
availableFrames = [
{name:'White Frame', src:'/img/frames/planeswalker/boxTopper/w.png', masks:masks},
{name:'Blue Frame', src:'/img/frames/planeswalker/boxTopper/u.png', masks:masks},
{name:'Black Frame', src:'/img/frames/planeswalker/boxTopper/b.png', masks:masks},
{name:'Red Frame', src:'/img/frames/planeswalker/boxTopper/r.png', masks:masks},
{name:'Green Frame', src:'/img/frames/planeswalker/boxTopper/g.png', masks:masks},
{name:'Multicolored Frame', src:'/img/frames/planeswalker/boxTopper/m.png', masks:masks},
{name:'Artifact Frame', src:'/img/frames/planeswalker/boxTopper/a.png', masks:masks},
{name:'Colorless Frame', src:'/img/frames/planeswalker/boxTopper/l.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 = 'planeswalkerRegular';
card.onload = '/js/frames/versionPlaneswalkerBoxTopper.js';
loadScript('/js/frames/versionPlaneswalker.js');
//art bounds
card.artBounds = {x:0, y:0.0362, width:1, height:0.88};
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.0867, y:0.0372, width:0.8267, height:0.0548, oneLine:true, font:'belerenb', size:0.0381},
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', shadowX:0.0014, shadowY:0.001},
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();