mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-26 21:04:58 -05:00
vanguard
This commit is contained in:
@@ -55,6 +55,10 @@
|
|||||||
font-family: Acme-Regular;
|
font-family: Acme-Regular;
|
||||||
src: url("/fonts/Acme-Regular.ttf");
|
src: url("/fonts/Acme-Regular.ttf");
|
||||||
}
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: fritz-quadrata;
|
||||||
|
src: url("/fonts/fritz-quadrata.ttf");
|
||||||
|
}
|
||||||
/*Variables*/
|
/*Variables*/
|
||||||
:root {
|
:root {
|
||||||
--site-background: url('/img/lowpolyBackground.svg');
|
--site-background: url('/img/lowpolyBackground.svg');
|
||||||
|
BIN
fonts/fritz-quadrata.ttf
Normal file
BIN
fonts/fritz-quadrata.ttf
Normal file
Binary file not shown.
BIN
img/frames/vanguard/vanguard.png
Normal file
BIN
img/frames/vanguard/vanguard.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 MiB |
BIN
img/frames/vanguard/vanguardThumb.png
Normal file
BIN
img/frames/vanguard/vanguardThumb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
@@ -3,5 +3,6 @@ loadFramePacks([
|
|||||||
{name:'Seventh Edition', value:'Seventh'},
|
{name:'Seventh Edition', value:'Seventh'},
|
||||||
{name:'Legends Multicolored', value:'Legends'},
|
{name:'Legends Multicolored', value:'Legends'},
|
||||||
{name:'Misc', value:'disabled'},
|
{name:'Misc', value:'disabled'},
|
||||||
{name:'Planechase', value:'Planechase'}
|
{name:'Planechase', value:'Planechase'},
|
||||||
|
{name:'Vanguard', value:'Vanguard'}
|
||||||
])
|
])
|
@@ -41,7 +41,3 @@ document.querySelector('#loadFrameVersion').onclick = async function() {
|
|||||||
}
|
}
|
||||||
//loads available frames
|
//loads available frames
|
||||||
loadFramePack();
|
loadFramePack();
|
||||||
//Only for the main version as the webpage loads:
|
|
||||||
if (!card.text) {
|
|
||||||
document.querySelector('#loadFrameVersion').click();
|
|
||||||
}
|
|
42
js/frames/packVanguard.js
Normal file
42
js/frames/packVanguard.js
Normal file
@@ -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();
|
Reference in New Issue
Block a user