Jumpstart Front Card

This commit is contained in:
Kyle
2021-05-22 12:45:00 -07:00
parent c1da85660d
commit bf56af8137
4 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
<?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;">
<rect id="Card" x="0" y="0" width="1500" height="2100" style="fill:none;"/>
<g id="Card1" serif:id="Card">
<g transform="matrix(150,0,0,1,-111750,0)">
<rect x="745" y="1392" width="10" height="266" style="fill:url(#_Linear1);"/>
</g>
<path d="M1500,0L0,0L0,2100L1500,2100L1500,0ZM1428,75L72,75L72,1761C373.762,2019.04 964.657,2027.21 1428,2025L1428,75Z"/>
</g>
<defs>
<linearGradient id="_Linear1" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(10,0,0,1500,745,1525)"><stop offset="0" style="stop-color:black;stop-opacity:0"/><stop offset="0.26" style="stop-color:black;stop-opacity:0.44"/><stop offset="0.5" style="stop-color:black;stop-opacity:0.6"/><stop offset="0.74" style="stop-color:black;stop-opacity:0.44"/><stop offset="1" style="stop-color:black;stop-opacity:0"/></linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -2,6 +2,7 @@ loadFramePacks([
{name:'Regular', value:'TokenRegular-1'},
{name:'Textless', value:'TokenTextless-1'},
{name:'Tall', value:'TokenTall-1'},
{name:'Jumpstart Front Cards', value:'JMPFront'},
{name:'Addons', value:'disabled'},
{name:'Floating Legend Crowns', value:'M15LegendCrownsFloating'},
{name:'Inner Crowns', value:'M15InnerCrowns'},

37
js/frames/packJMPFront.js Normal file
View File

@@ -0,0 +1,37 @@
//defines available frames
availableFrames = [
{name:'Frame', src:'/img/frames/token/jmpFront/frame.svg'}
];
//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 = 'jmpFront';
//art bounds
card.artBounds = {x:0.0474, y:0.0353, width:0.9054, height:0.9296};
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:0.5, y:0.7762, width:0.75, height:0.2305};
resetWatermark();
//text
loadTextOptions({
mana: {name:'Color Identity', text:'', y:0.9167, width:0.9292, height:83/2100, oneLine:true, size:83/1638, align:'right', manaCost:true, manaSpacing:0},
title: {name:'Title', text:'', x:0.0474, y:0.7039, width:0.9054, height:0.0534, oneLine:true, font:'gothammedium', size:0.0534, color:'white', align:'center'},
});
//bottom info
await loadBottomInfo({
midLeft: {text:'{elemidinfo-set}*{elemidinfo-language} {savex}', x:0.0647, y:0.9548, width:0.8707, height:0.0171, oneLine:true, font:'gothammedium', size:0.0171, color:'white', outlineWidth:0.003},
topLeft: {text:'{elemidinfo-number} {loadx}{elemidinfo-rarity}', x:0.0647, y:0.9377, width:0.8707, height:0.0171, oneLine:true, font:'gothammedium', size:0.0171, color:'white', outlineWidth:0.003},
bottomLeft: {text:'NOT FOR SALE', x:0.0647, y:0.9719, width:0.8707, height:0.0143, oneLine:true, font:'gothammedium', size:0.0143, color:'white', outlineWidth:0.003},
bottomRight: {text:'CardConjurer.com', x:0.0647, y:0.972, width:0.8707, height:0.0143, oneLine:true, font:'mplantin', size:0.0143, color:'white', align:'right', outlineWidth:0.003},
wizards: {name:'wizards', text:'{ptshift0,0.0172}\u2122 & \u00a9 ' + date.getFullYear() + ' Wizards of the Coast. Illus. {elemidinfo-artist}', x:0.91, y:0.9762, width:1.3014, height:0.0153, oneLine:true, font:'mplantin', size:0.0153, color:'white', align:'right', rotation:270}
});
}
//loads available frames
loadFramePack();