split cards

This commit is contained in:
Kyle
2021-11-10 20:18:42 -08:00
parent baffd56ed9
commit f1e929c622
24 changed files with 61 additions and 0 deletions

BIN
img/frames/m15/split/a.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
img/frames/m15/split/b.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@@ -0,0 +1,7 @@
<?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="1500" height="2100" 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;">
<g transform="matrix(-1,-1.18272e-16,1.46983e-16,-1.15911,1500,3434.14)">
<rect x="0" y="1151" width="1500" height="949" style="fill:rgb(0,123,67);"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 626 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 720 B

BIN
img/frames/m15/split/g.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
img/frames/m15/split/l.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
img/frames/m15/split/m.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
img/frames/m15/split/r.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@@ -0,0 +1,7 @@
<?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="1500" height="2100" 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;">
<g transform="matrix(-1,1.0752e-16,1.46983e-16,1.05374,1500,-1212.85)">
<rect x="0" y="1151" width="1500" height="949" style="fill:rgb(0,117,190);"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 625 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 718 B

BIN
img/frames/m15/split/u.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 891 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
img/frames/m15/split/v.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
img/frames/m15/split/w.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -21,6 +21,7 @@ loadFramePacks([
{name:'Aftermath (Amonkhet)', value:'Aftermath'}, {name:'Aftermath (Amonkhet)', value:'Aftermath'},
{name:'Flip (Kamigawa)', value:'Flip'}, {name:'Flip (Kamigawa)', value:'Flip'},
{name:'Levelers (Zendikar)', value:'Levelers'}, {name:'Levelers (Zendikar)', value:'Levelers'},
{name:'Split Cards', value:'Split'},
{name:'Conspiracies (Draft Matters)', value:'Conspiracy'}, {name:'Conspiracies (Draft Matters)', value:'Conspiracy'},
{name:'Colorshifted (Planar Chaos)', value:'Colorshifted'}, {name:'Colorshifted (Planar Chaos)', value:'Colorshifted'},
{name:'Custom Addons', value:'disabled'}, {name:'Custom Addons', value:'disabled'},

46
js/frames/packSplit.js Normal file
View File

@@ -0,0 +1,46 @@
//Create objects for common properties across available frames
var masks = [{src:'/img/frames/m15/split/top.svg', name:'Top Half'}, {src:'/img/frames/m15/split/bottom.svg', name:'Bottom Half'}];
//defines available frames
availableFrames = [
{name:'White Frame', src:'/img/frames/m15/split/w.png', masks:masks},
{name:'Blue Frame', src:'/img/frames/m15/split/u.png', masks:masks},
{name:'Black Frame', src:'/img/frames/m15/split/b.png', masks:masks},
{name:'Red Frame', src:'/img/frames/m15/split/r.png', masks:masks},
{name:'Green Frame', src:'/img/frames/m15/split/g.png', masks:masks},
{name:'Multicolored Frame', src:'/img/frames/m15/split/m.png', masks:masks},
{name:'Artifact Frame', src:'/img/frames/m15/split/a.png', masks:masks},
{name:'Land Frame', src:'/img/frames/m15/split/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() {
// Notification
notify('At this time, rotated set symbols and second pieces of art is not an option, unless added manually with external software. Apologies for the inconvenience!', 10);
//resets things so that every frame doesn't have to
await resetCardIrregularities();
//sets card version
card.version = 'split';
//art bounds
card.artBounds = {x:0.158, y:0.0534, width:0.3734, height:0.3886};
autoFitArt();
//set symbol bounds
card.setSymbolBounds = {x:2, y:2, width:0.12, height:0.0410, 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 (Right)', text:'', x:0.0847, y:0.4381, width:0.5367, height:71/2100, oneLine:true, size:71/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0, rotation:-90},
title: {name:'Title (Right)', text:'', x:0.072, y:0.4381, width:0.5367, height:0.0543, oneLine:true, font:'belerenb', size:0.0381, rotation:-90},
type: {name:'Type (Right)', text:'', x:0.55, y:0.4381, width:0.5367, height:0.0286, oneLine:true, font:'belerenb', size:0.0286, rotation:-90},
rules: {name:'Rules Text (Right)', text:'', x:0.6087, y:0.4334, width:0.5174, height:0.2443, size:0.0362, rotation:-90},
mana2: {name:'Mana Cost (Left)', text:'', x:0.0847, y:0.8943, width:0.5367, height:71/2100, oneLine:true, size:71/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0, rotation:-90},
title2: {name:'Title (Left)', text:'', x:0.072, y:0.8943, width:0.5367, height:0.0543, oneLine:true, font:'belerenb', size:0.0381, rotation:-90},
type2: {name:'Type (Left)', text:'', x:0.55, y:0.8943, width:0.5367, height:0.0286, oneLine:true, font:'belerenb', size:0.0286, rotation:-90},
rules2: {name:'Rules Text (Left)', text:'', x:0.6087, y:0.8896, width:0.5174, height:0.2443, size:0.0362, rotation:-90},
});
}
//loads available frames
loadFramePack();