diff --git a/img/frames/old/fourth/a.png b/img/frames/old/fourth/a.png new file mode 100644 index 00000000..e21f121a Binary files /dev/null and b/img/frames/old/fourth/a.png differ diff --git a/img/frames/old/fourth/aThumb.png b/img/frames/old/fourth/aThumb.png new file mode 100644 index 00000000..3212e812 Binary files /dev/null and b/img/frames/old/fourth/aThumb.png differ diff --git a/img/frames/old/fourth/b.png b/img/frames/old/fourth/b.png new file mode 100644 index 00000000..8424a57b Binary files /dev/null and b/img/frames/old/fourth/b.png differ diff --git a/img/frames/old/fourth/bThumb.png b/img/frames/old/fourth/bThumb.png new file mode 100644 index 00000000..947e1f74 Binary files /dev/null and b/img/frames/old/fourth/bThumb.png differ diff --git a/img/frames/old/fourth/borderBlack.png b/img/frames/old/fourth/borderBlack.png new file mode 100644 index 00000000..7b2af7d7 Binary files /dev/null and b/img/frames/old/fourth/borderBlack.png differ diff --git a/img/frames/old/fourth/borderBlackThumb.png b/img/frames/old/fourth/borderBlackThumb.png new file mode 100644 index 00000000..ce0d9721 Binary files /dev/null and b/img/frames/old/fourth/borderBlackThumb.png differ diff --git a/img/frames/old/fourth/borderWhite.png b/img/frames/old/fourth/borderWhite.png new file mode 100644 index 00000000..ea2a5201 Binary files /dev/null and b/img/frames/old/fourth/borderWhite.png differ diff --git a/img/frames/old/fourth/borderWhiteThumb.png b/img/frames/old/fourth/borderWhiteThumb.png new file mode 100644 index 00000000..43789375 Binary files /dev/null and b/img/frames/old/fourth/borderWhiteThumb.png differ diff --git a/img/frames/old/fourth/g.png b/img/frames/old/fourth/g.png new file mode 100644 index 00000000..6a382707 Binary files /dev/null and b/img/frames/old/fourth/g.png differ diff --git a/img/frames/old/fourth/gThumb.png b/img/frames/old/fourth/gThumb.png new file mode 100644 index 00000000..10dea14e Binary files /dev/null and b/img/frames/old/fourth/gThumb.png differ diff --git a/img/frames/old/fourth/l.png b/img/frames/old/fourth/l.png new file mode 100644 index 00000000..bafd10d1 Binary files /dev/null and b/img/frames/old/fourth/l.png differ diff --git a/img/frames/old/fourth/lThumb.png b/img/frames/old/fourth/lThumb.png new file mode 100644 index 00000000..f539a790 Binary files /dev/null and b/img/frames/old/fourth/lThumb.png differ diff --git a/img/frames/old/fourth/m.png b/img/frames/old/fourth/m.png new file mode 100644 index 00000000..24844e86 Binary files /dev/null and b/img/frames/old/fourth/m.png differ diff --git a/img/frames/old/fourth/mThumb.png b/img/frames/old/fourth/mThumb.png new file mode 100644 index 00000000..86a98d42 Binary files /dev/null and b/img/frames/old/fourth/mThumb.png differ diff --git a/img/frames/old/fourth/r.png b/img/frames/old/fourth/r.png new file mode 100644 index 00000000..ad3374e6 Binary files /dev/null and b/img/frames/old/fourth/r.png differ diff --git a/img/frames/old/fourth/rThumb.png b/img/frames/old/fourth/rThumb.png new file mode 100644 index 00000000..5ce52f5c Binary files /dev/null and b/img/frames/old/fourth/rThumb.png differ diff --git a/img/frames/old/fourth/u.png b/img/frames/old/fourth/u.png new file mode 100644 index 00000000..6126873a Binary files /dev/null and b/img/frames/old/fourth/u.png differ diff --git a/img/frames/old/fourth/uThumb.png b/img/frames/old/fourth/uThumb.png new file mode 100644 index 00000000..9d1218b3 Binary files /dev/null and b/img/frames/old/fourth/uThumb.png differ diff --git a/img/frames/old/fourth/w.png b/img/frames/old/fourth/w.png new file mode 100644 index 00000000..cc5205c2 Binary files /dev/null and b/img/frames/old/fourth/w.png differ diff --git a/img/frames/old/fourth/wThumb.png b/img/frames/old/fourth/wThumb.png new file mode 100644 index 00000000..7e219409 Binary files /dev/null and b/img/frames/old/fourth/wThumb.png differ diff --git a/js/frames/groupMisc-2.js b/js/frames/groupMisc-2.js index 125f8c38..c85e6136 100644 --- a/js/frames/groupMisc-2.js +++ b/js/frames/groupMisc-2.js @@ -3,6 +3,7 @@ loadFramePacks([ {name:'Future Shifted', value:'FutureRegular'}, {name:'Seventh Edition', value:'Seventh'}, {name:'Fifth Edition', value:'SeventhButFifth'}, + {name:'Fourth Edition', value:'Fourth'}, {name:'Legends Multicolored', value:'Legends'}, {name:'Alpha/Beta/Unlimited', value:'ABU'}, {name:'Misc', value:'disabled'}, diff --git a/js/frames/packFourth.js b/js/frames/packFourth.js new file mode 100644 index 00000000..5b421b36 --- /dev/null +++ b/js/frames/packFourth.js @@ -0,0 +1,48 @@ +//Create objects for common properties across available frames +//defines available frames +availableFrames = [ + {name:'White Frame', src:'/img/frames/old/fourth/w.png'}, + {name:'Blue Frame', src:'/img/frames/old/fourth/u.png'}, + {name:'Black Frame', src:'/img/frames/old/fourth/b.png'}, + {name:'Red Frame', src:'/img/frames/old/fourth/r.png'}, + {name:'Green Frame', src:'/img/frames/old/fourth/g.png'}, + {name:'Multicolored Frame', src:'/img/frames/old/fourth/m.png'}, + {name:'Artifact Frame', src:'/img/frames/old/fourth/a.png'}, + {name:'Land Frame', src:'/img/frames/old/fourth/l.png'}, + {name:'Black Border', src:'/img/frames/old/fourth/borderBlack.png'}, + {name:'White Border', src:'/img/frames/old/fourth/borderWhite.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 = 'fourth'; + //art bounds + card.artBounds = {x:0.1054, y:0.0896, width:0.7667, height:0.792}; + autoFitArt(); + //set symbol bounds + card.setSymbolBounds = {x:0.9, y:0.5758, width:0.12, height:0.0362, 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.0362, width:0.8174, height:72/2100, oneLine:true, size:72/1638, align:'right', manaCost:true}, + title: {name:'Title', text:'', x:0.0827, y:0.031, width:0.8347, height:0.041, oneLine:true, font:'goudymedieval', size:0.041, color:'white', shadowX:0.002, shadowY:0.0015}, + type: {name:'Type', text:'', x:0.0827, y:0.5486, width:0.8347, 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, justify:'center'}, + pt: {name:'Power/Toughness', text:'', x:0.82, y:0.9058, 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:1894/2100, width:0.8, height:0.0267, oneLine:true, size:0.0267, shadowX:0.0021, shadowY:0.0015, color:'white'}, + wizards: {name:'wizards', text:'\u2122 & \u00a9 ' + date.getFullYear() + ' Wizards of the Coast, Inc. {elemidinfo-number}', x:0.1, y:1955/2100, width:0.8, height:0.0172, oneLine:true, size:0.0172, shadowX:0.0014, shadowY:0.001, color:'white'}, + bottom: {text:'NOT FOR SALE CardConjurer.com', x:0.1, y:1995/2100, width:0.8, height:26/2100, oneLine:true, size:26/2100, shadowX:0.0014, shadowY:0.001, color:'white'} + }); +} +//loads available frames +loadFramePack(); \ No newline at end of file