diff --git a/img/frames/custom/feuerAmeise/kaldheim/a.png b/img/frames/custom/feuerAmeise/kaldheim/a.png new file mode 100644 index 00000000..6c6dda3c Binary files /dev/null and b/img/frames/custom/feuerAmeise/kaldheim/a.png differ diff --git a/img/frames/custom/feuerAmeise/kaldheim/aThumb.png b/img/frames/custom/feuerAmeise/kaldheim/aThumb.png new file mode 100644 index 00000000..18f875ce Binary files /dev/null and b/img/frames/custom/feuerAmeise/kaldheim/aThumb.png differ diff --git a/img/frames/custom/feuerAmeise/kaldheim/b.png b/img/frames/custom/feuerAmeise/kaldheim/b.png new file mode 100644 index 00000000..ee7a0656 Binary files /dev/null and b/img/frames/custom/feuerAmeise/kaldheim/b.png differ diff --git a/img/frames/custom/feuerAmeise/kaldheim/bThumb.png b/img/frames/custom/feuerAmeise/kaldheim/bThumb.png new file mode 100644 index 00000000..ba18feaf Binary files /dev/null and b/img/frames/custom/feuerAmeise/kaldheim/bThumb.png differ diff --git a/img/frames/custom/feuerAmeise/kaldheim/background.svg b/img/frames/custom/feuerAmeise/kaldheim/background.svg new file mode 100644 index 00000000..b77ea2ed --- /dev/null +++ b/img/frames/custom/feuerAmeise/kaldheim/background.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/img/frames/custom/feuerAmeise/kaldheim/backgroundThumb.png b/img/frames/custom/feuerAmeise/kaldheim/backgroundThumb.png new file mode 100644 index 00000000..37a7a288 Binary files /dev/null and b/img/frames/custom/feuerAmeise/kaldheim/backgroundThumb.png differ diff --git a/img/frames/custom/feuerAmeise/kaldheim/g.png b/img/frames/custom/feuerAmeise/kaldheim/g.png new file mode 100644 index 00000000..0080734e Binary files /dev/null and b/img/frames/custom/feuerAmeise/kaldheim/g.png differ diff --git a/img/frames/custom/feuerAmeise/kaldheim/gThumb.png b/img/frames/custom/feuerAmeise/kaldheim/gThumb.png new file mode 100644 index 00000000..4b28a206 Binary files /dev/null and b/img/frames/custom/feuerAmeise/kaldheim/gThumb.png differ diff --git a/img/frames/custom/feuerAmeise/kaldheim/l.png b/img/frames/custom/feuerAmeise/kaldheim/l.png new file mode 100644 index 00000000..c4374dae Binary files /dev/null and b/img/frames/custom/feuerAmeise/kaldheim/l.png differ diff --git a/img/frames/custom/feuerAmeise/kaldheim/lThumb.png b/img/frames/custom/feuerAmeise/kaldheim/lThumb.png new file mode 100644 index 00000000..24fca562 Binary files /dev/null and b/img/frames/custom/feuerAmeise/kaldheim/lThumb.png differ diff --git a/img/frames/custom/feuerAmeise/kaldheim/m.png b/img/frames/custom/feuerAmeise/kaldheim/m.png new file mode 100644 index 00000000..1a90b677 Binary files /dev/null and b/img/frames/custom/feuerAmeise/kaldheim/m.png differ diff --git a/img/frames/custom/feuerAmeise/kaldheim/mThumb.png b/img/frames/custom/feuerAmeise/kaldheim/mThumb.png new file mode 100644 index 00000000..14b1fed2 Binary files /dev/null and b/img/frames/custom/feuerAmeise/kaldheim/mThumb.png differ diff --git a/img/frames/custom/feuerAmeise/kaldheim/pinline.svg b/img/frames/custom/feuerAmeise/kaldheim/pinline.svg new file mode 100644 index 00000000..e0856d65 --- /dev/null +++ b/img/frames/custom/feuerAmeise/kaldheim/pinline.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/frames/custom/feuerAmeise/kaldheim/pinline2.svg b/img/frames/custom/feuerAmeise/kaldheim/pinline2.svg new file mode 100644 index 00000000..16868bd9 --- /dev/null +++ b/img/frames/custom/feuerAmeise/kaldheim/pinline2.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/img/frames/custom/feuerAmeise/kaldheim/pinline2Thumb.png b/img/frames/custom/feuerAmeise/kaldheim/pinline2Thumb.png new file mode 100644 index 00000000..756d232c Binary files /dev/null and b/img/frames/custom/feuerAmeise/kaldheim/pinline2Thumb.png differ diff --git a/img/frames/custom/feuerAmeise/kaldheim/pinlineThumb.png b/img/frames/custom/feuerAmeise/kaldheim/pinlineThumb.png new file mode 100644 index 00000000..5bae0f9c Binary files /dev/null and b/img/frames/custom/feuerAmeise/kaldheim/pinlineThumb.png differ diff --git a/img/frames/custom/feuerAmeise/kaldheim/r.png b/img/frames/custom/feuerAmeise/kaldheim/r.png new file mode 100644 index 00000000..2f86bda9 Binary files /dev/null and b/img/frames/custom/feuerAmeise/kaldheim/r.png differ diff --git a/img/frames/custom/feuerAmeise/kaldheim/rThumb.png b/img/frames/custom/feuerAmeise/kaldheim/rThumb.png new file mode 100644 index 00000000..a324a506 Binary files /dev/null and b/img/frames/custom/feuerAmeise/kaldheim/rThumb.png differ diff --git a/img/frames/custom/feuerAmeise/kaldheim/textbox.svg b/img/frames/custom/feuerAmeise/kaldheim/textbox.svg new file mode 100644 index 00000000..22f6065c --- /dev/null +++ b/img/frames/custom/feuerAmeise/kaldheim/textbox.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/img/frames/custom/feuerAmeise/kaldheim/textboxThumb.png b/img/frames/custom/feuerAmeise/kaldheim/textboxThumb.png new file mode 100644 index 00000000..aa971942 Binary files /dev/null and b/img/frames/custom/feuerAmeise/kaldheim/textboxThumb.png differ diff --git a/img/frames/custom/feuerAmeise/kaldheim/u.png b/img/frames/custom/feuerAmeise/kaldheim/u.png new file mode 100644 index 00000000..0fdf181d Binary files /dev/null and b/img/frames/custom/feuerAmeise/kaldheim/u.png differ diff --git a/img/frames/custom/feuerAmeise/kaldheim/uThumb.png b/img/frames/custom/feuerAmeise/kaldheim/uThumb.png new file mode 100644 index 00000000..d3da3359 Binary files /dev/null and b/img/frames/custom/feuerAmeise/kaldheim/uThumb.png differ diff --git a/img/frames/custom/feuerAmeise/kaldheim/w.png b/img/frames/custom/feuerAmeise/kaldheim/w.png new file mode 100644 index 00000000..d2ad6105 Binary files /dev/null and b/img/frames/custom/feuerAmeise/kaldheim/w.png differ diff --git a/img/frames/custom/feuerAmeise/kaldheim/wThumb.png b/img/frames/custom/feuerAmeise/kaldheim/wThumb.png new file mode 100644 index 00000000..a818524d Binary files /dev/null and b/img/frames/custom/feuerAmeise/kaldheim/wThumb.png differ diff --git a/js/creator-23.js b/js/creator-23.js index 1db152b0..b38bbfd0 100644 --- a/js/creator-23.js +++ b/js/creator-23.js @@ -966,7 +966,7 @@ function writeText(textObject, targetContext) { currentX = savedTextXPosition; } } else if (possibleCode.includes('ptshift')) { - if (card.frames.findIndex(element => element.name.toLowerCase().includes('power/toughness')) >= 0 || card.version.includes('planeswalker') || ['commanderLegends', 'm21', 'mysticalArchive', 'customDualLands'].includes(card.version)) { + if (card.frames.findIndex(element => element.name.toLowerCase().includes('power/toughness')) >= 0 || card.version.includes('planeswalker') || ['commanderLegends', 'm21', 'mysticalArchive', 'customDualLands', 'feuerAmeiseKaldheim'].includes(card.version)) { ptShift[0] = scaleWidth(parseFloat(possibleCode.replace('ptshift', '').split(',')[0])); ptShift[1] = scaleHeight(parseFloat(possibleCode.split(',')[1])); } diff --git a/js/frames/groupCustom.js b/js/frames/groupCustom.js index 1653eb81..fafc8ca2 100644 --- a/js/frames/groupCustom.js +++ b/js/frames/groupCustom.js @@ -15,5 +15,6 @@ loadFramePacks([ {name:'Custom Community Frames', value:'disabled'}, {name:'Cartoony - Sheepwave', value:'Cartoony'}, {name:'Neon - Elry', value:'CustomNeon'}, - {name:'Ixalan - @feuer_ameise', value:'FeuerAmeiseIxalan'} + {name:'Ixalan - @feuer_ameise', value:'FeuerAmeiseIxalan'}, + {name:'Kaldheim, Fullart - @feuer_ameise', value:'FeuerAmeiseKaldheim'} ]) \ No newline at end of file diff --git a/js/frames/packFeuerAmeiseKaldheim.js b/js/frames/packFeuerAmeiseKaldheim.js new file mode 100644 index 00000000..00a9330e --- /dev/null +++ b/js/frames/packFeuerAmeiseKaldheim.js @@ -0,0 +1,41 @@ +//Create objects for common properties across available frames +var masks = [{src:'/img/frames/custom/feuerAmeise/kaldheim/pinline.svg', name:'Pinline'}, {src:'/img/frames/custom/feuerAmeise/kaldheim/pinline2.svg', name:'Pinline (Light)'}, {src:'/img/frames/custom/feuerAmeise/kaldheim/background.svg', name:'Background'}]; +//defines available frames +availableFrames = [ + {name:'White Frame', src:'/img/frames/custom/feuerAmeise/kaldheim/w.png', masks:masks}, + {name:'Blue Frame', src:'/img/frames/custom/feuerAmeise/kaldheim/u.png', masks:masks}, + {name:'Black Frame', src:'/img/frames/custom/feuerAmeise/kaldheim/b.png', masks:masks}, + {name:'Red Frame', src:'/img/frames/custom/feuerAmeise/kaldheim/r.png', masks:masks}, + {name:'Green Frame', src:'/img/frames/custom/feuerAmeise/kaldheim/g.png', masks:masks}, + {name:'Multicolored Frame', src:'/img/frames/custom/feuerAmeise/kaldheim/m.png', masks:masks}, + {name:'Artifact Frame', src:'/img/frames/custom/feuerAmeise/kaldheim/a.png', masks:masks}, + {name:'Land Frame', src:'/img/frames/custom/feuerAmeise/kaldheim/l.png', masks:masks}, + {name:'Textbox', src:'/img/frames/custom/feuerAmeise/kaldheim/textbox.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 = 'feuerAmeiseKaldheim'; + //art bounds + card.artBounds = {x:0.104, y:0.1043, width:0.792, height:0.7677}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:0.9213, y:0.9, width:0.12, height:0.04, vertical:'center', horizontal: 'right'}; + resetSetSymbol(); + //watermark bounds + card.watermarkBounds = {x:-2, y:-2, width:0.75, height:0.2305}; + resetWatermark(); + //text + loadTextOptions({ + mana: {name:'Mana Cost', text:'', y:0.0591, 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.0491, 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.8762, 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.12, y:0.6158, width:0.76, height:0.24, size:0.0362, color:'white', align:'center', shadowX:0.002, shadowY:0.0015} + }); +} +//loads available frames +loadFramePack(); \ No newline at end of file