diff --git a/img/frames/kaldheim/frameR.png b/img/frames/kaldheim/frameR.png new file mode 100644 index 00000000..1b55b502 Binary files /dev/null and b/img/frames/kaldheim/frameR.png differ diff --git a/img/frames/kaldheim/frameRThumb.png b/img/frames/kaldheim/frameRThumb.png new file mode 100644 index 00000000..9b606cd7 Binary files /dev/null and b/img/frames/kaldheim/frameRThumb.png differ diff --git a/img/frames/kaldheim/frameU.png b/img/frames/kaldheim/frameU.png new file mode 100644 index 00000000..2431b953 Binary files /dev/null and b/img/frames/kaldheim/frameU.png differ diff --git a/img/frames/kaldheim/frameUThumb.png b/img/frames/kaldheim/frameUThumb.png new file mode 100644 index 00000000..4e8cfa10 Binary files /dev/null and b/img/frames/kaldheim/frameUThumb.png differ diff --git a/img/frames/kaldheim/frameW.png b/img/frames/kaldheim/frameW.png new file mode 100644 index 00000000..fd6feee9 Binary files /dev/null and b/img/frames/kaldheim/frameW.png differ diff --git a/img/frames/kaldheim/frameWThumb.png b/img/frames/kaldheim/frameWThumb.png new file mode 100644 index 00000000..fb8cc138 Binary files /dev/null and b/img/frames/kaldheim/frameWThumb.png differ diff --git a/img/frames/kaldheim/ptR.png b/img/frames/kaldheim/ptR.png new file mode 100644 index 00000000..0ab63dea Binary files /dev/null and b/img/frames/kaldheim/ptR.png differ diff --git a/img/frames/kaldheim/ptRThumb.png b/img/frames/kaldheim/ptRThumb.png new file mode 100644 index 00000000..d37e61b9 Binary files /dev/null and b/img/frames/kaldheim/ptRThumb.png differ diff --git a/img/frames/kaldheim/ptU.png b/img/frames/kaldheim/ptU.png new file mode 100644 index 00000000..43ce9406 Binary files /dev/null and b/img/frames/kaldheim/ptU.png differ diff --git a/img/frames/kaldheim/ptUThumb.png b/img/frames/kaldheim/ptUThumb.png new file mode 100644 index 00000000..9afe3f5e Binary files /dev/null and b/img/frames/kaldheim/ptUThumb.png differ diff --git a/img/frames/kaldheim/ptW.png b/img/frames/kaldheim/ptW.png new file mode 100644 index 00000000..90f3281e Binary files /dev/null and b/img/frames/kaldheim/ptW.png differ diff --git a/img/frames/kaldheim/ptWThumb.png b/img/frames/kaldheim/ptWThumb.png new file mode 100644 index 00000000..39080a4e Binary files /dev/null and b/img/frames/kaldheim/ptWThumb.png differ diff --git a/js/frames/packExpeditionBFZ.js b/js/frames/packExpeditionBFZ.js index a1a2935c..183c7ea3 100644 --- a/js/frames/packExpeditionBFZ.js +++ b/js/frames/packExpeditionBFZ.js @@ -30,6 +30,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() { resetWatermark(); //text loadTextOptions({ + mana: {name:'Mana Cost', text:'', y:0.0613, width:0.9292, height:71/2100, oneLine:true, size:71/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0}, title: {name:'Title', text:'', x:0.0854, y:0.0522, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0381}, type: {name:'Type', text:'', x:0.0854, y:0.8196, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324}, rules: {name:'Rules Text', text:'', x:0.09, y:0.5996, width:0.82, height:0.2072, size:0.0362}, diff --git a/js/frames/packExpeditionZNR.js b/js/frames/packExpeditionZNR.js index 26d258da..b56c1b7a 100644 --- a/js/frames/packExpeditionZNR.js +++ b/js/frames/packExpeditionZNR.js @@ -30,6 +30,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() { resetWatermark(); //text loadTextOptions({ + mana: {name:'Mana Cost', text:'', y:0.0613, width:0.9292, height:71/2100, oneLine:true, size:71/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0}, title: {name:'Title', text:'', x:0.0854, y:0.0522, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0381}, type: {name:'Type', text:'', x:0.0854, y:0.8196, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324}, rules: {name:'Rules Text', text:'', x:0.1, y:0.5648, width:0.8, height:0.2505, size:0.0362}, diff --git a/js/frames/packKaldheim.js b/js/frames/packKaldheim.js new file mode 100644 index 00000000..c8568bb4 --- /dev/null +++ b/js/frames/packKaldheim.js @@ -0,0 +1,40 @@ +//Create objects for common properties across available frames +var masks = [{src:'/img/frames/m15/regular/m15MaskPinline.png', name:'Pinline'}]; +var bounds = {x:0.7627, y:0.8853, width:0.192, height:0.0753}; +//defines available frames +availableFrames = [ + {name:'White Frame', src:'/img/frames/kaldheim/frameW.png', masks:masks}, + {name:'Blue Frame', src:'/img/frames/kaldheim/frameU.png', masks:masks}, + {name:'Red Frame', src:'/img/frames/kaldheim/frameR.png', masks:masks}, + {name:'White Power/Toughness', src:'/img/frames/kaldheim/ptW.png', bounds:bounds}, + {name:'Blue Power/Toughness', src:'/img/frames/kaldheim/ptU.png', bounds:bounds}, + {name:'Red Power/Toughness', src:'/img/frames/kaldheim/ptR.png', bounds:bounds} +]; +//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.1047, y:0.1158, width:0.7907, height:0.462}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:0.9213, y:0.6081, 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', text:'', y:0.0691, width:0.9292, height:71/2100, oneLine:true, size:71/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0}, + title: {name:'Title', text:'', x:0.0667, y:0.0591, width:0.8667, height:0.0543, oneLine:true, font:'belerenb', color:'white', size:0.0381, shadowX:0.0027, shadowY:0.002}, + type: {name:'Type', text:'', x:0.0734, y:0.5829, width:0.8534, height:0.0543, oneLine:true, font:'belerenb', color:'white', size:0.0324, shadowX:0.0027, shadowY:0.002}, + rules: {name:'Rules Text', text:'', x:0.086, y:0.6405, width:0.828, height:0.2739, size:0.0362}, + pt: {name:'Power/Toughness', text:'', x:0.798, y:0.9039, width:0.1367, height:0.0372, size:0.0372, font:'belerenbsc', oneLine:true, align:'center'} + }); +} +//loads available frames +loadFramePack(); \ No newline at end of file diff --git a/js/frames/packTokenRegular.js b/js/frames/packTokenRegular.js index 3d765116..6e6593c4 100644 --- a/js/frames/packTokenRegular.js +++ b/js/frames/packTokenRegular.js @@ -40,6 +40,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() { resetWatermark(); //text loadTextOptions({ + mana: {name:'Mana Cost', text:'', y:0.0613, width:0.9292, height:71/2100, oneLine:true, size:71/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0}, title: {name:'Title', text:'', x:0.0854, y:0.0522, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0381, color:'white', align:'center'}, type: {name:'Type', text:'', x:0.0854, y:0.65, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324}, rules: {name:'Rules Text', text:'', x:0.086, y:0.7143, width:0.828, height:0.2048, size:0.0362}, diff --git a/js/frames/packTokenTall.js b/js/frames/packTokenTall.js index 3c4e47c4..c64db78a 100644 --- a/js/frames/packTokenTall.js +++ b/js/frames/packTokenTall.js @@ -40,6 +40,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() { resetWatermark(); //text loadTextOptions({ + mana: {name:'Mana Cost', text:'', y:0.0613, width:0.9292, height:71/2100, oneLine:true, size:71/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0}, title: {name:'Title', text:'', x:0.0854, y:0.0522, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0381, color:'white', align:'center'}, type: {name:'Type', text:'', x:0.0854, y:0.5664, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324}, rules: {name:'Rules Text', text:'', x:0.086, y:0.6303, width:0.828, height:0.2875, size:0.0362}, diff --git a/js/frames/packTokenTextless.js b/js/frames/packTokenTextless.js index c35f4b79..14cc44da 100644 --- a/js/frames/packTokenTextless.js +++ b/js/frames/packTokenTextless.js @@ -40,6 +40,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() { resetWatermark(); //text loadTextOptions({ + mana: {name:'Mana Cost', text:'', y:0.0613, width:0.9292, height:71/2100, oneLine:true, size:71/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0}, title: {name:'Title', text:'', x:0.0854, y:0.0522, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0381, color:'white', align:'center'}, type: {name:'Type', text:'', x:0.0854, y:0.8196, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324}, pt: {name:'Power/Toughness', text:'', x:0.7928, y:0.902, width:0.1367, height:0.0372, size:0.0372, font:'belerenbsc', oneLine:true, align:'center'}