diff --git a/css/style-8.css b/css/style-8.css index 624fc0a2..417fd9f6 100644 --- a/css/style-8.css +++ b/css/style-8.css @@ -55,6 +55,10 @@ font-family: Acme-Regular; src: url("/fonts/Acme-Regular.ttf"); } +@font-face { + font-family: fritz-quadrata; + src: url("/fonts/fritz-quadrata.ttf"); +} /*Variables*/ :root { --site-background: url('/img/lowpolyBackground.svg'); diff --git a/fonts/fritz-quadrata.ttf b/fonts/fritz-quadrata.ttf new file mode 100644 index 00000000..3335bb47 Binary files /dev/null and b/fonts/fritz-quadrata.ttf differ diff --git a/img/frames/vanguard/vanguard.png b/img/frames/vanguard/vanguard.png new file mode 100644 index 00000000..d763ef55 Binary files /dev/null and b/img/frames/vanguard/vanguard.png differ diff --git a/img/frames/vanguard/vanguardThumb.png b/img/frames/vanguard/vanguardThumb.png new file mode 100644 index 00000000..0092785a Binary files /dev/null and b/img/frames/vanguard/vanguardThumb.png differ diff --git a/js/frames/groupMisc-1.js b/js/frames/groupMisc-1.js index d3a75786..73098ecd 100644 --- a/js/frames/groupMisc-1.js +++ b/js/frames/groupMisc-1.js @@ -3,5 +3,6 @@ loadFramePacks([ {name:'Seventh Edition', value:'Seventh'}, {name:'Legends Multicolored', value:'Legends'}, {name:'Misc', value:'disabled'}, - {name:'Planechase', value:'Planechase'} + {name:'Planechase', value:'Planechase'}, + {name:'Vanguard', value:'Vanguard'} ]) \ No newline at end of file diff --git a/js/frames/packMysticalArchive.js b/js/frames/packMysticalArchive.js index ec7c5348..8065beb5 100644 --- a/js/frames/packMysticalArchive.js +++ b/js/frames/packMysticalArchive.js @@ -40,8 +40,4 @@ document.querySelector('#loadFrameVersion').onclick = async function() { }); } //loads available frames -loadFramePack(); -//Only for the main version as the webpage loads: -if (!card.text) { - document.querySelector('#loadFrameVersion').click(); -} \ No newline at end of file +loadFramePack(); \ No newline at end of file diff --git a/js/frames/packVanguard.js b/js/frames/packVanguard.js new file mode 100644 index 00000000..b30381e7 --- /dev/null +++ b/js/frames/packVanguard.js @@ -0,0 +1,42 @@ +//defines available frames +availableFrames = [ + {name:'Vanguard Frame', src:'/img/frames/vanguard/vanguard.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 = 'm15Regular'; + //art bounds + card.artBounds = {x:0.1214, y:0.0991, width:0.7567, height:0.4767}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:0.5, y:0.9458, width:0.0307, height:0.022, vertical:'center', horizontal: 'center'}; + resetSetSymbol(); + //watermark bounds + card.watermarkBounds = {x:0.5, y:0.7762, width:0.75, height:0.2305}; + resetWatermark(); + //text + loadTextOptions({ + title: {name:'Title', text:'', x:0.1767, y:0.0472, width:0.6467, height:0.0543, oneLine:true, font:'fritz-quadrata', size:0.0377, align:'center'}, + type: {name:'Type', text:'Character', x:0.1767, y:0.5762, width:0.6467, height:0.0543, oneLine:true, font:'fritz-quadrata', size:0.0262, align:'center'}, + rules: {name:'Rules Text', text:'', x:0.12, y:0.6286, width:0.76, height:0.1167, size:0.0267, align:'center'}, + flavor: {name:'Flavor Text', text:'', x:0.2067, y:0.7643, width:0.5867, height:0.1239, size:0.0172, font:'mplantini'}, + leftval: {name:'Left Mod Value', text:'+0', x:0.1094, y:0.8386, width:0.0667, height:0.0524, size:0.0267, oneLine:true, align:'center'}, + rightval: {name:'Right Mod Value', text:'+0', x:0.824, y:0.8386, width:0.0667, height:0.0524, size:0.0267, oneLine:true, align:'center'}, + left: {name:'Left Mod Desc.', text:'Starting & Max. Hand Size', x:0.1114, y:0.7762, width:0.0667, height:0.0596, size:0.0124, align:'center'}, + right: {name:'Right Mod Desc.', text:'Starting Life', x:0.826, y:0.7762, width:0.0667, height:0.0596, size:0.0124, align:'center'} + }); + //bottom info + await loadBottomInfo({ + illus: {text:'Illus. {elemidinfo-artist}', x:0.0647, y:0.8977, width:0.8707, height:0.0171, font:'mplantin', size:0.0167, align:'center'}, + wizards: {name:'wizards', text:'\u2122 & \u00a9 1993—' + date.getFullYear() + ' Wizards of the Coast, Inc.', x:0.0647, y:0.9134, width:0.8707, height:0.0167, font:'mplantin', size:0.0124, align:'center'}, + bottomLeft: {text:'NOT FOR SALE', x:0.0647, y:0.9719, width:0.8707, height:0.0143, oneLine:true, font:'mplantin', 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} + }); +} +//loads available frames +loadFramePack(); \ No newline at end of file