planeswalker mdfc

This commit is contained in:
Kyle
2021-04-06 20:32:24 -07:00
parent 19f435b246
commit b500ed922f
34 changed files with 98 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

View File

@@ -0,0 +1,8 @@
<?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;">
<rect id="Card" x="0" y="0" width="1500" height="2100" style="fill:none;"/>
<g id="Card1" serif:id="Card">
<path id="type--short-" serif:id="type (short)" d="M94.8,1870.37C92.434,1862.57 91.091,1853.53 91,1843L91,1330C90.53,1316.05 86.247,1308.65 80.124,1300.23C74.407,1294.27 71.038,1286.37 71,1278.79C71,1278.77 71,1278.74 71,1278.71C71,1278.71 71,1236.98 71.001,1237.12C70.798,1214.08 81.035,1192.81 95.347,1179.36C106.044,1169.31 118.996,1163.6 131.762,1163.41C131.841,1163.41 131.921,1163.41 132,1163.41C132,1163.41 1368,1163.41 1368.24,1163.41C1381,1163.6 1393.96,1169.31 1404.65,1179.36C1418.96,1192.81 1429.2,1214.08 1429,1236.98C1429,1236.98 1429,1278.71 1429,1278.79C1428.96,1286.37 1425.59,1294.26 1419.88,1300.22C1413.75,1308.65 1409.47,1316.05 1409,1330L1409,1843C1408.51,1899.1 1372.48,1913.09 1335.05,1922.87C1278.98,1937.53 1240.46,1946.63 1113,1957C1100.15,1944.05 1077.13,1937.61 1045,1937L661.852,1937C665.116,1932.95 668.66,1929.28 672.476,1926L1221,1926C1300.97,1919.81 1363.02,1915.93 1388.6,1879L1388.6,1333C1386.81,1320.47 1379.41,1312.83 1366,1310.41L198,1310.41L197.687,1310.46C184.478,1312.95 177.173,1320.57 175.406,1333L175.406,1870L95,1870L94.8,1870.37ZM103,1294.41C94.852,1294.4 87.038,1286.4 87,1278.71L87,1236.98C86.731,1206.44 109.361,1179.74 132,1179.41L1368,1179.41C1390.64,1179.74 1413.27,1206.44 1413,1236.98L1413,1278.71C1412.96,1286.4 1405.15,1294.4 1397,1294.41L103,1294.41ZM140,208C139.376,208 138.753,208.005 138.133,207.96C115.877,206.349 95.922,195.181 80.139,182.025C67.339,171.355 57.345,159.495 51.107,151.248C46.957,145.784 43.292,140.259 39.9,134.7L43.876,128.061L43.874,128.057C45.22,125.863 59.352,103.844 81.552,85.797C97.113,73.147 116.546,62.603 138.133,61.04C138.753,60.995 139.376,61 140,61L140,61C245.925,61 1368.01,61 1368.24,61.002C1381,61.192 1393.96,66.906 1404.65,76.956C1418.96,90.404 1429.2,111.674 1429,134.571C1429,134.571 1429,176.307 1429,176.386C1428.96,184.204 1425.38,192.36 1419.33,198.38C1413.35,204.325 1405.19,207.996 1397.01,208C1397.01,208 1397,208 1397,208L140,208L140,208ZM140.182,196L140,196C139.666,196 139.332,196.016 139,195.992C89.794,192.428 54,134.5 54,134.5L54.101,134.334C56.185,130.938 91.329,76.461 139,73.008C139.332,72.984 139.666,73 140,73C147.629,73 154.932,74.415 161.67,77L161.67,77C161.725,77.021 161.78,77.042 161.833,77.063L161.939,77.104L162,77.128L162,77.128C184.807,86.032 201,108.375 201,134.5L200.999,134.897C200.836,160.852 184.691,183.013 162,191.872L162,191.872C155.224,194.518 147.869,195.977 140.182,196ZM185.452,77C202.233,90.468 213,111.22 213,134.5L212.999,134.973C212.853,158.063 202.116,178.628 185.451,192L1397,192C1405.15,191.996 1412.96,183.999 1413,176.307L1413,134.571C1413.27,104.037 1390.64,77.337 1368,77L185.452,77Z" style="fill:rgb(246,210,98);"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

View File

@@ -0,0 +1,11 @@
<?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;">
<rect id="Card" x="0" y="0" width="1500" height="2100" style="fill:none;"/>
<g id="Card1" serif:id="Card">
<g id="reminder">
<path d="M652,1952C662.732,1931.89 678.23,1918.45 698,1911C678.23,1903.55 662.732,1890.11 652,1870L95,1870C84.268,1890.11 68.77,1903.55 49,1911C68.77,1918.45 84.268,1931.89 95,1952L652,1952Z" style="fill:rgb(239,56,39);"/>
<path d="M652,1956C653.477,1956 654.834,1955.19 655.529,1953.88C665.77,1934.69 680.545,1921.86 699.411,1914.74C700.969,1914.15 702,1912.66 702,1911C702,1909.34 700.969,1907.85 699.411,1907.26C680.545,1900.14 665.77,1887.31 655.529,1868.12C654.834,1866.81 653.477,1866 652,1866L95,1866C93.523,1866 92.166,1866.81 91.471,1868.12C81.23,1887.31 66.455,1900.14 47.589,1907.26C46.031,1907.85 45,1909.34 45,1911C45,1912.66 46.031,1914.15 47.589,1914.74C66.455,1921.86 81.23,1934.69 91.471,1953.88C92.166,1955.19 93.523,1956 95,1956L652,1956ZM652,1952C662.732,1931.89 678.23,1918.45 698,1911C678.23,1903.55 662.732,1890.11 652,1870L95,1870C84.268,1890.11 68.77,1903.55 49,1911C68.77,1918.45 84.268,1931.89 95,1952L652,1952Z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 844 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

View File

@@ -0,0 +1,8 @@
<?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;">
<rect id="Card" x="0" y="0" width="1500" height="2100" style="fill:none;"/>
<g id="Card1" serif:id="Card">
<path d="M179.406,1866L179.406,1333.29C180.98,1322.86 187.236,1316.52 198.369,1314.41L1365.63,1314.41C1376.76,1316.52 1383.02,1322.86 1384.59,1333.29L1384.6,1861.12L1346,1847C1339.44,1860.56 1328.08,1868.16 1314.33,1868.98L1314,1869C1300.1,1868.28 1288.61,1860.66 1282,1847L1200,1877C1210.65,1891.31 1217.66,1906.17 1220.23,1922L684.661,1922C689.256,1919.13 694.176,1916.72 699.411,1914.74C700.969,1914.15 702,1912.66 702,1911C702,1909.34 700.969,1907.85 699.411,1907.26C680.545,1900.14 665.77,1887.31 655.529,1868.12C654.834,1866.81 653.477,1866 652,1866L179.406,1866Z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -0,0 +1,13 @@
<?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;">
<rect id="Card" x="0" y="0" width="1500" height="2100" style="fill:none;"/>
<g id="Card1" serif:id="Card">
<g id="Twins">
<path id="Title" d="M185.452,77L1368,77C1390.64,77.337 1413.27,104.037 1413,134.571L1413,176.307C1412.96,183.999 1405.15,191.996 1397,192L185.451,192C202.116,178.628 212.853,158.063 212.999,134.973L213,134.5C213,111.22 202.233,90.468 185.452,77Z" style="fill:rgb(0,123,67);"/>
<g id="Icon" transform="matrix(1,0,0,1.0082,0,-27.8196)">
<path d="M54.101,160.835C56.185,157.467 91.329,103.433 139,100.008C139.332,99.984 139.666,100 140,100C173.667,100 201,127.333 201,161L200.999,161.394C200.787,194.88 173.536,222 140,222C139.666,222 139.332,222.016 139,221.992C89.794,218.457 54,161 54,161L54.101,160.835Z" style="fill:rgb(0,123,67);"/>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 948 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

@@ -0,0 +1,52 @@
//Create objects for common properties across available frames
var masks = [{src:'/img/frames/planeswalker/mdfc/pinline.svg', name:'Pinline'}, {src:'/img/frames/modal/modalMaskReminder.png', name:'Reminder'}, {src:'/img/frames/planeswalker/mdfc/title.svg', 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/mdfc/wf.png', masks:masks},
{name:'Blue Frame', src:'/img/frames/planeswalker/mdfc/uf.png', masks:masks},
{name:'Black Frame', src:'/img/frames/planeswalker/mdfc/bf.png', masks:masks},
{name:'Red Frame', src:'/img/frames/planeswalker/mdfc/rf.png', masks:masks},
{name:'Green Frame', src:'/img/frames/planeswalker/mdfc/gf.png', masks:masks},
{name:'Multicolored Frame', src:'/img/frames/planeswalker/mdfc/mf.png', masks:masks},
{name:'White Frame', src:'/img/frames/planeswalker/mdfc/wb.png', masks:masks},
{name:'Blue Frame', src:'/img/frames/planeswalker/mdfc/ub.png', masks:masks},
{name:'Black Frame', src:'/img/frames/planeswalker/mdfc/bb.png', masks:masks},
{name:'Red Frame', src:'/img/frames/planeswalker/mdfc/rb.png', masks:masks},
{name:'Green Frame', src:'/img/frames/planeswalker/mdfc/gb.png', masks:masks},
{name:'Multicolored Frame', src:'/img/frames/planeswalker/mdfc/mb.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 = 'planeswalkerMDFC';
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.1614, y:0.0372, width:0.7534, 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},
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'},
flipsideType: {name:'Flipside Type', text:'', x:0.068, y:0.892, width:0.364, height:0.0391, size:0.0234, color:'white', oneLine:true, font:'belerenb'},
flipSideReminder: {name:'Flipside Text', text:'', x:0.068, y:0.892, width:0.364, height:0.0391, size:0.0258, color:'white', oneLine:true, align:'right'}
});
}
//loads available frames
loadFramePack();

View File

@@ -59,11 +59,15 @@ function planeswalkerEdited() {
var planeswalkerTall = 0; var planeswalkerTall = 0;
if (card.version == 'planeswalkerTall') { if (card.version == 'planeswalkerTall') {
planeswalkerTall = 1; planeswalkerTall = 1;
if (!planeswalkerTextMask.src.includes('Tall')) { if (!planeswalkerTextMask.src.includes('tall')) {
planeswalkerTextMask.src = '/img/frames/planeswalker/tall/planeswalkerTallMaskRules.png'; planeswalkerTextMask.src = '/img/frames/planeswalker/tall/planeswalkerTallMaskRules.png';
} }
} else if (card.version == 'planeswalkerMDFC') {
if (!planeswalkerTextMask.src.includes('mdfc')) {
planeswalkerTextMask.src = '/img/frames/planeswalker/mdfc/text.svg';
}
} else { } else {
if (planeswalkerTextMask.src.includes('Tall')) { if (planeswalkerTextMask.src.includes('tall') || planeswalkerTextMask.includes('mdfc')) {
planeswalkerTextMask.src = '/img/frames/planeswalker/planeswalkerMaskText.png'; planeswalkerTextMask.src = '/img/frames/planeswalker/planeswalkerMaskText.png';
} }
} }