old tokens

This commit is contained in:
Kyle
2021-10-31 16:50:49 -07:00
parent 3afd52c0df
commit 3bd794f31f
30 changed files with 103 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

BIN
img/frames/token/old/a.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
img/frames/token/old/b.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 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="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;">
<path id="Border" d="M1500,0L0,0L0,2100L1500,2100L1500,0ZM1425,2018L75,2018L75,82L1425,82L1425,2018L1425,2018Z"/>
</svg>

After

Width:  |  Height:  |  Size: 572 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 786 B

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="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;">
<path id="Textures" d="M1425,83L75,83L75,2018L1425,2018L1425,83ZM1345,1366L155,1366L155,1956L1345,1956L1345,1366ZM1347,212L153,212L153,1323L1347,1323L1347,212Z" style="fill:rgb(0,135,180);"/>
</svg>

After

Width:  |  Height:  |  Size: 650 B

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="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;">
<path id="Color" d="M1345,1366L155,1366L155,1956L1345,1956L1345,1366ZM1265,1474L235,1474L235,1807L1265,1807L1265,1474ZM1347,212L153,212L153,1323L1347,1323L1347,212ZM1326,233L1326,1302L174,1302L174,233L1326,233Z" style="fill:rgb(0,114,71);"/>
</svg>

After

Width:  |  Height:  |  Size: 700 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
img/frames/token/old/g.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
img/frames/token/old/l.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
img/frames/token/old/m.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
img/frames/token/old/r.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 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="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 id="Trim" transform="matrix(1,0,0,1,2,10)">
<rect x="233" y="1464" width="1030" height="333" style="fill:rgb(239,56,39);"/>
<path d="M1265,1464C1265,1462.89 1264.11,1462 1263,1462L233,1462C231.895,1462 231,1462.89 231,1464L231,1797C231,1798.11 231.895,1799 233,1799L1263,1799C1264.11,1799 1265,1798.11 1265,1797L1265,1464ZM1263,1464L233,1464L233,1797L1263,1797L1263,1464Z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 861 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 868 B

BIN
img/frames/token/old/u.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
img/frames/token/old/w.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@@ -821,7 +821,7 @@ function writeText(textObject, targetContext) {
//Finish prepping canvases
paragraphContext.clearRect(0, 0, paragraphCanvas.width, paragraphCanvas.height);
lineContext.clearRect(0, 0, lineCanvas.width, lineCanvas.height);
lineCanvas.style.letterSpacing = textObject.kerning || '0px';
lineCanvas.style.letterSpacing = (scaleWidth(textObject.kerning) || 0) + 'px';
// if (textFont == 'goudymedieval') {
// lineCanvas.style.letterSpacing = '3.5px';
// }

View File

@@ -2,11 +2,13 @@ loadFramePacks([
{name:'Regular', value:'TokenRegular-1'},
{name:'Textless', value:'TokenTextless-1'},
{name:'Tall', value:'TokenTall-1'},
{name:'Day/Night Marker', value:'TokenDayNight'},
{name:'Jumpstart Front Cards', value:'JMPFront'},
{name:'Planeswalker Emblems', value:'Emblem'},
{name:'Old Tokens (Bordered M15)', value:'disabled'},
{name:'Older Tokens', value:'disabled'},
{name:'Regular (Bordered M15)', value:'TokenRegularM15'},
{name:'Textless (Bordered M15)', value:'TokenTextlessM15'},
{name:'Original (Old Bordered)', value:'TokenOld'},
{name:'Addons', value:'disabled'},
{name:'Floating Legend Crowns', value:'M15LegendCrownsFloating'},
{name:'Inner Crowns', value:'M15InnerCrowns'},

View File

@@ -0,0 +1,30 @@
//defines available frames
availableFrames = [
{name:'White Frame', src:'/img/frames/token/dayNight/dayNight.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 = 'tokenDayNight';
//art bounds
card.artBounds = {x:0.04, y:0.0286, width:0.92, height:0.8905};
autoFitArt();
//set symbol bounds
card.setSymbolBounds = {x:0.5, y:0.9524, width:0.12, height:0.0410, vertical:'center', horizontal: 'center'};
resetSetSymbol();
//watermark bounds
card.watermarkBounds = {x:-1, y:-1, width:0.0007, height:0.0005};
resetWatermark();
//text
loadTextOptions({
title: {name:'Title', text:'', x:0.0854, y:0.0522, width:0.8292, height:0.0543, oneLine:true, font:'belerenbsc', size:0.0381, color:'white', align:'center'},
reminder: {name:'Reminder Text', text:'', x:0.06, y:0.1267, width:0.88, height:0.3733, size:0.0343, align:'center', color:'white', noVerticalCenter:true, font:'mplantini'},
rules: {name:'Rules Text', text:'', x:0.06, y:0.6191, width:0.88, height:0.3, size:0.0362, align:'center', color:'white'}
});
}
//loads available frames
loadFramePack();

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

@@ -0,0 +1,46 @@
//Create objects for common properties across available frames
var masks = [{src:'/img/frames/token/old/frame2.svg', name:'Colored Frame'}, {src:'/img/frames/token/old/text.svg', name:'Rules'}, {src:'/img/frames/token/old/frame.svg', name:'Generic Frame'}, {src:'/img/frames/token/old/border.svg', name:'Border'}];
//defines available frames
availableFrames = [
{name:'White Frame', src:'/img/frames/token/old/w.png', masks:masks},
{name:'Blue Frame', src:'/img/frames/token/old/u.png', masks:masks},
{name:'Black Frame', src:'/img/frames/token/old/b.png', masks:masks},
{name:'Red Frame', src:'/img/frames/token/old/r.png', masks:masks},
{name:'Green Frame', src:'/img/frames/token/old/g.png', masks:masks},
{name:'Multicolored Frame', src:'/img/frames/token/old/m.png', masks:masks},
{name:'Artifact Frame', src:'/img/frames/token/old/a.png', masks:masks},
{name:'Land Frame', src:'/img/frames/token/old/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 = 'tokenOld';
//art bounds
card.artBounds = {x:0.1154, y:0.1105, width:0.7694, height:0.51};
autoFitArt();
//set symbol bounds
card.setSymbolBounds = {x:0.8494, y:0.6781, width:0.12, height:0.0372, vertical:'center', horizontal: 'right'};
resetSetSymbol();
//watermark bounds
card.watermarkBounds = {x:0.18, y:0.64, width:0.64, height:0.24};
resetWatermark();
//text
loadTextOptions({
title: {name:'Title', text:'', x:0.1134, y:0.0505, width:0.7734, height:0.0477, oneLine:true, font:'mplantin', size:0.0477, color:'white', shadowX:0.002, shadowY:0.0015, kerning:0.0134, align:'center'},
type: {name:'Type', text:'', x:0.156, y:0.6539, width:0.688, height:0.0543, oneLine:true, size:0.032, color:'white', shadowX:0.002, shadowY:0.0015},
rules: {name:'Rules Text', text:'', x:0.18, y:0.7124, width:0.64, height:0.14, size:0.0358},
pt: {name:'Power/Toughness', text:'', x:0.75, y:0.8753, width:0.1367, height:0.0429, size:0.0429, oneLine:true, align:'center', color:'white', shadowX:0.002, shadowY:0.0015}
});
//bottom info
loadBottomInfo({
top: {text:'Illus: {elemidinfo-artist}', x:0.1, y:0.8648, width:0.8, height:0.0267, oneLine:true, size:0.0267, align:'center', shadowX:0.0021, shadowY:0.0015, color:'white'},
wizards: {name:'wizards', text:'\u2122 & \u00a9 ' + date.getFullYear() + ' Wizards of the Coast, Inc. {elemidinfo-number}', x:0.1, y:0.8929, width:0.8, height:0.0172, oneLine:true, size:0.0172, align:'center', shadowX:0.0014, shadowY:0.001, color:'white'},
bottom: {text:'NOT FOR SALE CardConjurer.com', x:0.1, y:0.912, width:0.8, height:26/2100, oneLine:true, size:26/2100, align:'center', shadowX:0.0014, shadowY:0.001, color:'white'}
});
}
//loads available frames
loadFramePack();