diff --git a/img/frames/seventh/snowlands/bl.png b/img/frames/seventh/snowlands/bl.png new file mode 100644 index 00000000..79d55e2b Binary files /dev/null and b/img/frames/seventh/snowlands/bl.png differ diff --git a/img/frames/seventh/snowlands/blThumb.png b/img/frames/seventh/snowlands/blThumb.png new file mode 100644 index 00000000..cf1074fd Binary files /dev/null and b/img/frames/seventh/snowlands/blThumb.png differ diff --git a/img/frames/seventh/snowlands/gl.png b/img/frames/seventh/snowlands/gl.png new file mode 100644 index 00000000..ad4ed2aa Binary files /dev/null and b/img/frames/seventh/snowlands/gl.png differ diff --git a/img/frames/seventh/snowlands/glThumb.png b/img/frames/seventh/snowlands/glThumb.png new file mode 100644 index 00000000..45441e84 Binary files /dev/null and b/img/frames/seventh/snowlands/glThumb.png differ diff --git a/img/frames/seventh/snowlands/l.png b/img/frames/seventh/snowlands/l.png new file mode 100644 index 00000000..0f812406 Binary files /dev/null and b/img/frames/seventh/snowlands/l.png differ diff --git a/img/frames/seventh/snowlands/lThumb.png b/img/frames/seventh/snowlands/lThumb.png new file mode 100644 index 00000000..adceb469 Binary files /dev/null and b/img/frames/seventh/snowlands/lThumb.png differ diff --git a/img/frames/seventh/snowlands/rl.png b/img/frames/seventh/snowlands/rl.png new file mode 100644 index 00000000..463d4b7f Binary files /dev/null and b/img/frames/seventh/snowlands/rl.png differ diff --git a/img/frames/seventh/snowlands/rlThumb.png b/img/frames/seventh/snowlands/rlThumb.png new file mode 100644 index 00000000..6b2d024c Binary files /dev/null and b/img/frames/seventh/snowlands/rlThumb.png differ diff --git a/img/frames/seventh/snowlands/ul.png b/img/frames/seventh/snowlands/ul.png new file mode 100644 index 00000000..f2beae6a Binary files /dev/null and b/img/frames/seventh/snowlands/ul.png differ diff --git a/img/frames/seventh/snowlands/ulThumb.png b/img/frames/seventh/snowlands/ulThumb.png new file mode 100644 index 00000000..3c32bcf0 Binary files /dev/null and b/img/frames/seventh/snowlands/ulThumb.png differ diff --git a/img/frames/seventh/snowlands/wl.png b/img/frames/seventh/snowlands/wl.png new file mode 100644 index 00000000..a3f4cdde Binary files /dev/null and b/img/frames/seventh/snowlands/wl.png differ diff --git a/img/frames/seventh/snowlands/wlThumb.png b/img/frames/seventh/snowlands/wlThumb.png new file mode 100644 index 00000000..a6333fb9 Binary files /dev/null and b/img/frames/seventh/snowlands/wlThumb.png differ diff --git a/js/frameSearch.js b/js/frameSearch.js index 44123d67..cc4496f7 100644 --- a/js/frameSearch.js +++ b/js/frameSearch.js @@ -187,6 +187,7 @@ const frameNames = new Map ([ ['Textless Duals', 'CustomDualLands'], ['Seventh Edition Planeswalkers', 'PlaneswalkerSeventh'], ['Seventh Edition Sagas', 'OldSaga'], + ['Seventh Edition Snow Lands', 'SeventhSnowLands'], ['Floating Old Border', 'OldFloating'], ['Floating Old Border (Short)', 'OldFloatingShort'], ['Classicshifted', 'Classicshifted'], diff --git a/js/frames/groupCustom.js b/js/frames/groupCustom.js index af77fb30..e0212519 100644 --- a/js/frames/groupCustom.js +++ b/js/frames/groupCustom.js @@ -7,6 +7,7 @@ loadFramePacks([ {name:'Textless Seventh', value:'SeventhTextless'}, {name:'Seventh Edition Planeswalkers', value:'PlaneswalkerSeventh'}, {name:'Seventh Edition Sagas', value:'OldSaga'}, + {name:'Seventh Edition Snow Lands', value:'SeventhSnowLands'}, {name:'Floating Old Border', value:'OldFloating'}, {name:'Floating Old Border (Short)', value:'OldFloatingShort'}, {name:'Classicshifted Series', value:'disabled'}, diff --git a/js/frames/packSeventhSnowLands.js b/js/frames/packSeventhSnowLands.js new file mode 100644 index 00000000..93af1e98 --- /dev/null +++ b/js/frames/packSeventhSnowLands.js @@ -0,0 +1,59 @@ +//Create objects for common properties across available frames +var masks = [{src:'/img/frames/seventh/regular/pinline.svg', name:'Pinline'}, {src:'/img/frames/seventh/regular/rules.svg', name:'Rules'}, {src:'/img/frames/seventh/regular/frame.svg', name:'Frame'}, {src:'/img/frames/seventh/regular/trim.svg', name:'Textbox Pinline'}, {src:'/img/frames/seventh/regular/dual.svg', name:'Dual Land'}, {src:'/img/frames/seventh/regular/border.svg', name:'Border'}]; +var borderMask = [{src:'/img/frames/seventh/regular/border.svg', name:'Border'}]; +var bounds = {x:0.3354, y:0.6239, width:0.33, height:0.2386}; +//defines available frames +availableFrames = [ + {name:'White Frame', src:'/img/frames/seventh/snowlands/wl.png', masks:masks}, + {name:'Blue Frame', src:'/img/frames/seventh/snowlands/ul.png', masks:masks}, + {name:'Black Frame', src:'/img/frames/seventh/snowlands/bl.png', masks:masks}, + {name:'Red Frame', src:'/img/frames/seventh/snowlands/rl.png', masks:masks}, + {name:'Green Frame', src:'/img/frames/seventh/snowlands/gl.png', masks:masks}, + {name:'Land Frame', src:'/img/frames/seventh/snowlands/l.png', masks:masks}, + {name:'Tombstone Icon', src:'/img/frames/old/icons/tombstone.svg', bounds: {x:0.0687, y:0.0491, width:0.0338, height:0.0329}}, + {name:'Plains Watermark', src:'/img/frames/m15/basics/w.png', bounds:bounds}, + {name:'Island Watermark', src:'/img/frames/m15/basics/u.png', bounds:bounds}, + {name:'Swamp Watermark', src:'/img/frames/m15/basics/b.png', bounds:bounds}, + {name:'Mountain Watermark', src:'/img/frames/m15/basics/r.png', bounds:bounds}, + {name:'Forest Watermark', src:'/img/frames/m15/basics/g.png', bounds:bounds}, + {name:'Wastes Watermark', src:'/img/frames/m15/basics/c.png', bounds:bounds}, + {name:'DCI Star', src:'/img/frames/seventh/foilStar.svg'}, + {name:'Foil Layer', src:'/img/frames/effects/foil.png', opacity:20, masks:[{src:'/img/frames/seventh/foil.svg', name:'With Star'}, {src:'/img/frames/seventh/foil2.svg', name:'Without Star'}]}, + {name:'White Border', src:'/img/frames/white.png', masks:borderMask, noDefaultMask:true}, + {name:'Silver Border', src:'/img/frames/silver.png', masks:borderMask, noDefaultMask:true}, + {name:'Gold Border', src:'/img/frames/gold.png', masks:borderMask, noDefaultMask:true} +]; +//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 = 'seventhSnowLands'; + //art bounds + card.artBounds = {x:0.12, y:0.0991, width:0.7667, height:0.4429}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:0.9, y:0.5739, width:0.12, height:0.0372, vertical:'center', horizontal: 'right'}; + resetSetSymbol(); + //watermark bounds + card.watermarkBounds = {x:0.18, y:0.64, width:0.64, height:0.24}; + resetWatermark(); + //text + loadTextOptions({ + mana: {name:'Mana Cost', text:'', x:0.1067, y:0.0539, width:0.8174, height:72/2100, oneLine:true, size:72/1638, align:'right', manaCost:true}, + title: {name:'Title', text:'', x:0.1134, y:0.0481, width:0.7734, height:0.041, oneLine:true, font:'goudymedieval', size:0.041, color:'white', shadowX:0.002, shadowY:0.0015}, + type: {name:'Type', text:'', x:0.1074, y:0.5486, width:0.7852, height:0.0543, oneLine:true, size:0.032, color:'white', shadowX:0.002, shadowY:0.0015}, + rules: {name:'Rules Text', text:'', x:0.128, y:0.6067, width:0.744, height:0.2724, size:0.0358}, + pt: {name:'Power/Toughness', text:'', x:0.8074, y:0.9043, width:0.1367, height:0.0429, size:0.0429, oneLine:true, align:'center', color:'white', shadowX:0.002, shadowY:0.0015} + }); + //bottom info + loadBottomInfo({ + top: {text:'Illus. {elemidinfo-artist}', x:0.1, y:1908/2100, width:0.8, height:0.0267, oneLine:true, size:0.0267, align:'center', shadowX:0.0021, shadowY:0.0015, color:'white'}, + wizards: {name:'wizards', text:'\u2122 & \u00a9 {elemidinfo-year} Wizards of the Coast, Inc. {elemidinfo-number}', x:0.1, y:1933/2100, width:0.8, height:0.0172, oneLine:true, size:0.0172, align:'center', shadowX:0.0014, shadowY:0.001, color:'white'}, + bottom: {text:'NOT FOR SALE CardConjurer.com', x:0.1, y:1973/2100, width:0.8, height:26/2100, oneLine:true, size:26/2100, align:'center', shadowX:0.0014, shadowY:0.001, color:'white'} + }); +} +//loads available frames +loadFramePack(); \ No newline at end of file