4e
							
								
								
									
										
											BIN
										
									
								
								img/frames/old/fourth/a.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.3 MiB | 
							
								
								
									
										
											BIN
										
									
								
								img/frames/old/fourth/aThumb.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 24 KiB | 
							
								
								
									
										
											BIN
										
									
								
								img/frames/old/fourth/b.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.0 MiB | 
							
								
								
									
										
											BIN
										
									
								
								img/frames/old/fourth/bThumb.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 24 KiB | 
							
								
								
									
										
											BIN
										
									
								
								img/frames/old/fourth/borderBlack.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 28 KiB | 
							
								
								
									
										
											BIN
										
									
								
								img/frames/old/fourth/borderBlackThumb.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 7.1 KiB | 
							
								
								
									
										
											BIN
										
									
								
								img/frames/old/fourth/borderWhite.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 19 KiB | 
							
								
								
									
										
											BIN
										
									
								
								img/frames/old/fourth/borderWhiteThumb.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 6.1 KiB | 
							
								
								
									
										
											BIN
										
									
								
								img/frames/old/fourth/g.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.3 MiB | 
							
								
								
									
										
											BIN
										
									
								
								img/frames/old/fourth/gThumb.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 23 KiB | 
							
								
								
									
										
											BIN
										
									
								
								img/frames/old/fourth/l.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.3 MiB | 
							
								
								
									
										
											BIN
										
									
								
								img/frames/old/fourth/lThumb.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 22 KiB | 
							
								
								
									
										
											BIN
										
									
								
								img/frames/old/fourth/m.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.6 MiB | 
							
								
								
									
										
											BIN
										
									
								
								img/frames/old/fourth/mThumb.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 24 KiB | 
							
								
								
									
										
											BIN
										
									
								
								img/frames/old/fourth/r.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.3 MiB | 
							
								
								
									
										
											BIN
										
									
								
								img/frames/old/fourth/rThumb.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 21 KiB | 
							
								
								
									
										
											BIN
										
									
								
								img/frames/old/fourth/u.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.1 MiB | 
							
								
								
									
										
											BIN
										
									
								
								img/frames/old/fourth/uThumb.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 25 KiB | 
							
								
								
									
										
											BIN
										
									
								
								img/frames/old/fourth/w.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.2 MiB | 
							
								
								
									
										
											BIN
										
									
								
								img/frames/old/fourth/wThumb.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 22 KiB | 
| @@ -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'}, | ||||
|   | ||||
							
								
								
									
										48
									
								
								js/frames/packFourth.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -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(); | ||||
 Kyle
					Kyle