promo generic showcase

This commit is contained in:
Kyle
2021-02-18 17:51:00 -08:00
parent 2073ea48d8
commit 4dbfe7aaf9
31 changed files with 69 additions and 3 deletions

View File

@@ -93,7 +93,7 @@ include('../globalHTML/header-1.php');
<option value='DFC'>Transform</option>
<option disabled>Special Frames</option>
<option value='Showcase-5'>Showcase Frames</option>
<option value='Promo-1'>Promos (Tall Art)</option>
<option value='Promo-2'>Promos (Tall Art)</option>
<option value='Textless-3'>Textless/Fullart</option>
<option value='Modal-1'>Short Modal DFC's</option>
<option disabled>Other Frames</option>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 MiB

After

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 MiB

After

Width:  |  Height:  |  Size: 2.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 MiB

After

Width:  |  Height:  |  Size: 2.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 MiB

After

Width:  |  Height:  |  Size: 2.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 MiB

After

Width:  |  Height:  |  Size: 2.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 MiB

After

Width:  |  Height:  |  Size: 2.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 MiB

After

Width:  |  Height:  |  Size: 2.5 MiB

BIN
img/frames/promo/bevel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="100%" height="100%" viewBox="0 0 1500 2100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<path d="M96,1850.31L96,1484.68C84.325,1470.54 74.417,1445.65 74,1417.06C74,1417.02 74,1416.98 74,1416.94C74.503,1382.42 88.904,1353.33 103.531,1341.85C104.236,1341.3 105.105,1341 106,1341L1394,1341C1394.89,1341 1395.76,1341.3 1396.47,1341.85C1411.1,1353.33 1425.5,1382.42 1426,1416.94C1426,1416.98 1426,1417.02 1426,1417.06C1425.58,1445.65 1415.67,1470.54 1404,1484.68L1404,1850.31C1402.69,1851.22 1401.35,1852.12 1400,1853L1400,1483.21C1411.64,1469.83 1421.59,1445.28 1422,1417C1421.52,1383.95 1408,1355.98 1394,1345L106,1345C91.996,1355.98 78.481,1383.95 78,1417C78.412,1445.28 88.362,1469.83 100,1483.21L100,1853C98.647,1852.12 97.312,1851.22 96,1850.31ZM106,237C105.105,237 104.236,236.7 103.531,236.147C88.904,224.675 74.503,195.58 74,161.058C74,161.019 74,160.981 74,160.942C74.503,126.42 88.904,97.325 103.531,85.853C104.236,85.3 105.105,85 106,85L1394,85C1394.89,85 1395.76,85.3 1396.47,85.853C1411.1,97.325 1425.5,126.42 1426,160.942C1426,160.981 1426,161.019 1426,161.058C1425.5,195.58 1411.1,224.675 1396.47,236.147C1395.76,236.7 1394.89,237 1394,237L106,237ZM1394,233C1408,222.016 1421.52,194.052 1422,161C1421.52,127.948 1408,99.984 1394,89L106,89C91.996,99.984 78.481,127.948 78,161C78.481,194.052 91.996,222.016 106,233L1394,233Z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="100%" height="100%" viewBox="0 0 1500 2100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<path d="M87,1843.59L87,1487.79C75.238,1472.1 65.428,1446.47 65.001,1417.19C65,1417.06 65,1416.94 65.001,1416.81C65.552,1378.98 81.949,1347.34 97.977,1334.77C100.266,1332.98 103.091,1332 106,1332L1394,1332C1396.91,1332 1399.73,1332.98 1402.02,1334.77C1418.05,1347.34 1434.45,1378.98 1435,1416.81C1435,1416.94 1435,1417.06 1435,1417.19C1434.57,1446.47 1424.76,1472.1 1413,1487.79L1413,1843.59C1408.87,1846.9 1404.54,1850.05 1400,1853L1400,1483.21C1411.64,1469.83 1421.59,1445.28 1422,1417C1421.52,1383.95 1408,1355.98 1394,1345L106,1345C91.996,1355.98 78.481,1383.95 78,1417C78.412,1445.28 88.362,1469.83 100,1483.21L100,1853C95.461,1850.05 91.13,1846.9 87,1843.59ZM106,246C103.091,246 100.266,245.024 97.977,243.229C81.949,230.658 65.552,199.019 65.001,161.189C65,161.063 65,160.937 65.001,160.811C65.552,122.981 81.949,91.342 97.977,78.771C100.266,76.976 103.091,76 106,76L1394,76C1396.91,76 1399.73,76.976 1402.02,78.771C1418.05,91.342 1434.45,122.981 1435,160.811C1435,160.937 1435,161.063 1435,161.189C1434.45,199.019 1418.05,230.658 1402.02,243.229C1399.73,245.024 1396.91,246 1394,246L106,246ZM1394,233C1408,222.016 1421.52,194.052 1422,161C1421.52,127.948 1408,99.984 1394,89L106,89C91.996,99.984 78.481,127.948 78,161C78.481,194.052 91.996,222.016 106,233L1394,233Z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 836 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 823 B

View File

@@ -1,6 +1,7 @@
loadFramePacks([
{name:'Regular Frames', value:'PromoRegular'},
{name:'Regular Frames', value:'PromoRegular-1'},
{name:'Nickname Frames', value:'PromoNickname'},
{name:'Generic Showcase', value:'PromoGenericShowcase'},
{name:'Addons', value:'disabled'},
{name:'Legend Crowns', value:'M15LegendCrowns'},
{name:'Floating Legend Crowns', value:'M15LegendCrownsFloating'},

View File

@@ -0,0 +1,52 @@
//Create objects for common properties across available frames
var masks = [{src:'/img/frames/promo/m15PromoMaskPinline.png', name:'Pinline'}, {src:'/img/frames/m15/regular/m15MaskTitle.png', name:'Title'}, {src:'/img/frames/promo/m15PromoMaskType.png', name:'Type'}, {src:'/img/frames/promo/m15PromoMaskRules.png', name:'Rules'}, {src:'/img/frames/m15/regular/m15MaskBorder.png', name:'Border'}];
var bounds = {x:0.7573, y:0.8848, width:0.188, height:0.0733};
//defines available frames
availableFrames = [
{name:'White Frame', src:'/img/frames/promo/genericShowcase/w.png', masks:masks},
{name:'Blue Frame', src:'/img/frames/promo/genericShowcase/u.png', masks:masks},
{name:'Black Frame', src:'/img/frames/promo/genericShowcase/b.png', masks:masks},
{name:'Red Frame', src:'/img/frames/promo/genericShowcase/r.png', masks:masks},
{name:'Green Frame', src:'/img/frames/promo/genericShowcase/g.png', masks:masks},
{name:'Multicolored Frame', src:'/img/frames/promo/genericShowcase/m.png', masks:masks},
{name:'Artifact Frame', src:'/img/frames/promo/genericShowcase/a.png', masks:masks},
{name:'White Power/Toughness', src:'/img/frames/m15/nickname/m15NicknamePTW.png', bounds:bounds},
{name:'Blue Power/Toughness', src:'/img/frames/m15/nickname/m15NicknamePTU.png', bounds:bounds},
{name:'Black Power/Toughness', src:'/img/frames/m15/nickname/m15NicknamePTB.png', bounds:bounds},
{name:'Red Power/Toughness', src:'/img/frames/m15/nickname/m15NicknamePTR.png', bounds:bounds},
{name:'Green Power/Toughness', src:'/img/frames/m15/nickname/m15NicknamePTG.png', bounds:bounds},
{name:'Multicolored Power/Toughness', src:'/img/frames/m15/nickname/m15NicknamePTM.png', bounds:bounds},
{name:'Artifact Power/Toughness', src:'/img/frames/m15/nickname/m15NicknamePTA.png', bounds:bounds},
{name:'Colorless Power/Toughness', src:'/img/frames/m15/nickname/m15NicknamePTC.png', bounds:bounds},
{name:'Outline Cutout', src:'/img/frames/promo/outlineCutout.svg', erase:true},
{name:'Outline (Solid)', src:'/img/frames/promo/outline.svg'},
{name:'Outline (Bevel)', src:'/img/frames/promo/bevel.png'}
];
//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 = 'promoGenericShowcase';
//art bounds
card.artBounds = {x:0, y:0, width:1, height:0.9224};
autoFitArt();
//set symbol bounds
card.setSymbolBounds = {x:0.9213, y:0.6743, width:0.12, height:0.0410, vertical:'center', horizontal: 'right'};
resetSetSymbol();
//watermark bounds
card.watermarkBounds = {x:0.5, y:0.8177, width:0.75, height:0.1472};
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, color:'white', shadowX:0.0014, shadowY:0.001},
type: {name:'Type', text:'', x:0.0854, y:0.65, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324, color:'white', shadowX:0.0014, shadowY:0.001},
rules: {name:'Rules Text', text:'', x:0.086, y:0.7143, width:0.828, height:0.2048, size:0.0362, color:'white', shadowX:0.0014, shadowY:0.001},
pt: {name:'Power/Toughness', text:'', x:0.7928, y:0.902, width:0.1367, height:0.0372, size:0.0372, font:'belerenbsc', oneLine:true, align:'center', color:'white'}
});
}
//loads available frames
loadFramePack();

View File

@@ -18,7 +18,10 @@ availableFrames = [
{name:'Green Power/Toughness', src:'/img/frames/m15/regular/m15PTG.png', bounds:bounds},
{name:'Multicolored Power/Toughness', src:'/img/frames/m15/regular/m15PTM.png', bounds:bounds},
{name:'Artifact Power/Toughness', src:'/img/frames/m15/regular/m15PTA.png', bounds:bounds},
{name:'Colorless Power/Toughness', src:'/img/frames/m15/regular/m15PTC.png', bounds:bounds}
{name:'Colorless Power/Toughness', src:'/img/frames/m15/regular/m15PTC.png', bounds:bounds},
{name:'Outline Cutout', src:'/img/frames/promo/outlineCutout.svg', erase:true},
{name:'Outline (Solid)', src:'/img/frames/promo/outline.svg'},
{name:'Outline (Bevel)', src:'/img/frames/promo/bevel.png'}
];
//disables/enables the "Load Frame Version" button
document.querySelector('#loadFrameVersion').disabled = false;