new m15 template
| Before Width: | Height: | Size: 751 KiB After Width: | Height: | Size: 671 KiB | 
| Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 38 KiB | 
| Before Width: | Height: | Size: 4.0 MiB | 
| Before Width: | Height: | Size: 143 KiB After Width: | Height: | Size: 91 KiB | 
| Before Width: | Height: | Size: 199 KiB After Width: | Height: | Size: 111 KiB | 
| Before Width: | Height: | Size: 206 KiB | 
| Before Width: | Height: | Size: 278 KiB After Width: | Height: | Size: 110 KiB | 
| Before Width: | Height: | Size: 259 KiB | 
| Before Width: | Height: | Size: 290 KiB After Width: | Height: | Size: 122 KiB | 
| Before Width: | Height: | Size: 283 KiB After Width: | Height: | Size: 112 KiB | 
| Before Width: | Height: | Size: 282 KiB | 
| Before Width: | Height: | Size: 329 KiB After Width: | Height: | Size: 118 KiB | 
| Before Width: | Height: | Size: 258 KiB | 
| Before Width: | Height: | Size: 218 KiB After Width: | Height: | Size: 106 KiB | 
| Before Width: | Height: | Size: 267 KiB | 
| Before Width: | Height: | Size: 343 KiB After Width: | Height: | Size: 76 KiB | 
| Before Width: | Height: | Size: 248 KiB | 
| Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB | 
| Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.2 MiB | 
| Before Width: | Height: | Size: 1.0 MiB After Width: | Height: | Size: 1.5 MiB | 
| Before Width: | Height: | Size: 1006 KiB After Width: | Height: | Size: 1.5 MiB | 
| Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.5 MiB | 
| Before Width: | Height: | Size: 1.0 MiB After Width: | Height: | Size: 1.5 MiB | 
| Before Width: | Height: | Size: 891 KiB After Width: | Height: | Size: 1.3 MiB | 
| Before Width: | Height: | Size: 870 KiB After Width: | Height: | Size: 1.4 MiB | 
| Before Width: | Height: | Size: 868 KiB After Width: | Height: | Size: 1.4 MiB | 
| Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.6 MiB | 
| Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.6 MiB | 
| Before Width: | Height: | Size: 558 KiB After Width: | Height: | Size: 890 KiB | 
| Before Width: | Height: | Size: 640 KiB After Width: | Height: | Size: 1.0 MiB | 
| Before Width: | Height: | Size: 1.0 MiB After Width: | Height: | Size: 1.1 MiB | 
| Before Width: | Height: | Size: 668 KiB After Width: | Height: | Size: 1.0 MiB | 
| Before Width: | Height: | Size: 686 KiB After Width: | Height: | Size: 1.1 MiB | 
							
								
								
									
										
											BIN
										
									
								
								data/images/m15/m15InnerCrownANyx.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 35 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data/images/m15/m15InnerCrownBNyx.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 34 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data/images/m15/m15InnerCrownGNyx.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 36 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data/images/m15/m15InnerCrownMNyx.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 38 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data/images/m15/m15InnerCrownRNyx.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 37 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data/images/m15/m15InnerCrownUNyx.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 38 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data/images/m15/m15InnerCrownWNyx.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 34 KiB | 
| Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 12 KiB | 
| Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 19 KiB | 
| Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB | 
| Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 38 KiB | 
| Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 42 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data/images/m15/m15MaskNicknameLegendCrownStrokeless.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 27 KiB | 
| Before Width: | Height: | Size: 40 KiB | 
| Before Width: | Height: | Size: 16 KiB | 
| Before Width: | Height: | Size: 38 KiB | 
| Before Width: | Height: | Size: 36 KiB | 
| Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 23 KiB | 
| Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB | 
| Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 14 KiB | 
| Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 18 KiB | 
| Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB | 
| Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 29 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data/images/m15/m15NicknameCrownA.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 95 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data/images/m15/m15NicknameCrownB.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 127 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data/images/m15/m15NicknameCrownG.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 119 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data/images/m15/m15NicknameCrownL.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 134 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data/images/m15/m15NicknameCrownM.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 121 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data/images/m15/m15NicknameCrownR.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 128 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data/images/m15/m15NicknameCrownU.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 115 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data/images/m15/m15NicknameCrownW.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 74 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data/images/m15/m15NicknameFrameA.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 24 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data/images/m15/m15NicknameFrameB.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 23 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data/images/m15/m15NicknameFrameG.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 23 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data/images/m15/m15NicknameFrameL.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 24 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data/images/m15/m15NicknameFrameM.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 24 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data/images/m15/m15NicknameFrameR.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 23 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data/images/m15/m15NicknameFrameU.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 23 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data/images/m15/m15NicknameFrameW.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 24 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data/images/m15/m15NicknameTextboxes.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 26 KiB | 
| Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 28 KiB | 
| Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 35 KiB | 
| Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 40 KiB | 
| Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 31 KiB | 
| Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 35 KiB | 
| Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 32 KiB | 
| Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 29 KiB | 
| @@ -387,12 +387,12 @@ function writeText(textObjectList, targetContext) { | |||||||
| 		textParagraphCanvas.height = scaleY(textObjectList[i].height) + 2 * textCanvasBuffer | 		textParagraphCanvas.height = scaleY(textObjectList[i].height) + 2 * textCanvasBuffer | ||||||
| 		textLineContext.clearRect(0, 0, textLineCanvas.width, textLineCanvas.height) | 		textLineContext.clearRect(0, 0, textLineCanvas.width, textLineCanvas.height) | ||||||
| 		textParagraphContext.clearRect(0, 0, textParagraphCanvas.width, textParagraphCanvas.height) | 		textParagraphContext.clearRect(0, 0, textParagraphCanvas.width, textParagraphCanvas.height) | ||||||
| 		var outline, shadow = 0, oneLine = false, outlineThickness = 2, textAlign = 'left', finishLine = false, paragraphSpace = 0, permanentLineShift = 0, temporaryLineShift = 0 | 		var outline, shadow = 0, oneLine = false, outlineThickness = 2, textAlign = 'left', finishLine = false, paragraphSpace = 0, permanentLineShift = 0, temporaryLineShift = 0, fontStyle = '' | ||||||
| 		textObjectList[i].otherParameters.forEach(item => eval(item)) | 		textObjectList[i].otherParameters.forEach(item => eval(item)) | ||||||
| 		textLineContext.strokeStyle = outline | 		textLineContext.strokeStyle = outline | ||||||
| 		textLineContext.lineWidth = outlineThickness | 		textLineContext.lineWidth = outlineThickness | ||||||
| 		textFont = textObjectList[i].font | 		textFont = textObjectList[i].font | ||||||
| 		textLineContext.font = textSize + 'px ' + textFont | 		textLineContext.font = fontStyle + textSize + 'px ' + textFont | ||||||
| 		textLineContext.fillStyle = textObjectList[i].fontColor | 		textLineContext.fillStyle = textObjectList[i].fontColor | ||||||
| 		var textX = textCanvasBuffer | 		var textX = textCanvasBuffer | ||||||
| 		var textY = 0 | 		var textY = 0 | ||||||
| @@ -416,16 +416,19 @@ function writeText(textObjectList, targetContext) { | |||||||
| 						var barHeight = scaleY(0.001) | 						var barHeight = scaleY(0.001) | ||||||
| 						textLineContext.drawImage(manaSymbolImageList[63], textCanvasBuffer + (scaleX(textObjectList[i].width) - barWidth) / 2, textSize * 1.6 + textCanvasBuffer, barWidth, barHeight) | 						textLineContext.drawImage(manaSymbolImageList[63], textCanvasBuffer + (scaleX(textObjectList[i].width) - barWidth) / 2, textSize * 1.6 + textCanvasBuffer, barWidth, barHeight) | ||||||
| 						paragraphSpace += textSize * 0.8 | 						paragraphSpace += textSize * 0.8 | ||||||
| 						if (possibleCodeLower == 'flavor') { | 						if (possibleCodeLower == 'flavor' && !fontStyle.includes('italic')) { | ||||||
| 							textLineContext.font = 'italic ' + (textSize * 0.92) + 'px ' + textFont | 							fontStyle += 'italic ' | ||||||
|  | 							textLineContext.font = fontStyle + (textSize * 0.92) + 'px ' + textFont | ||||||
| 						} | 						} | ||||||
| 					} else if (possibleCodeLower == 'i') { | 					} else if (possibleCodeLower == 'i' && !fontStyle.includes('italic')) { | ||||||
| 						textLineContext.font = 'italic ' + textSize + 'px ' + textFont | 						fontStyle += 'italic ' | ||||||
|  | 						textLineContext.font = fontStyle + textSize + 'px ' + textFont | ||||||
| 					} else if (possibleCodeLower == '/i') { | 					} else if (possibleCodeLower == '/i') { | ||||||
| 						textLineContext.font = textSize + 'px ' + textFont | 						fontStyle.replace('italic ', '') | ||||||
|  | 						textLineContext.font = fontStyle + textSize + 'px ' + textFont | ||||||
| 					} else if (possibleCodeLower.includes('fontsize')) { | 					} else if (possibleCodeLower.includes('fontsize')) { | ||||||
| 						textSize += parseInt(possibleCodeLower.slice(8, possibleCodeLower.length)) | 						textSize += parseInt(possibleCodeLower.slice(8, possibleCodeLower.length)) | ||||||
| 						textLineContext.font = textSize + 'px ' + textFont | 						textLineContext.font = fontStyle + textSize + 'px ' + textFont | ||||||
| 					} else if (possibleCodeLower == 'left') { | 					} else if (possibleCodeLower == 'left') { | ||||||
| 						textAlign = 'left' | 						textAlign = 'left' | ||||||
| 					} else if (possibleCodeLower == 'center') { | 					} else if (possibleCodeLower == 'center') { | ||||||
| @@ -476,7 +479,7 @@ function writeText(textObjectList, targetContext) { | |||||||
| 	                    currentLineWidth += artistBrushWidth * 1.1 | 	                    currentLineWidth += artistBrushWidth * 1.1 | ||||||
| 	                } else if (possibleCodeLower.includes('font')) { | 	                } else if (possibleCodeLower.includes('font')) { | ||||||
| 						textFont = possibleCodeLower.replace('font', '') | 						textFont = possibleCodeLower.replace('font', '') | ||||||
| 						textLineContext.font = textSize + 'px ' + textFont | 						textLineContext.font = fontStyle + textSize + 'px ' + textFont | ||||||
| 					} else if (manaSymbolCodeList.includes(possibleCodeLower.split('/').join(''))) { | 					} else if (manaSymbolCodeList.includes(possibleCodeLower.split('/').join(''))) { | ||||||
| 						//THIS HAS TO BE THE LAST ONE | 						//THIS HAS TO BE THE LAST ONE | ||||||
| 						var manaSymbolDiameter = textSize * 0.77 | 						var manaSymbolDiameter = textSize * 0.77 | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| var versionInventionImageList = [ | var versionInventionImageList = [ | ||||||
| ['Invention Frame', 'data/images/invention/inventionFrame.png', 0, 0, 1, 1, ['Full', 'Pinline Super (m15)', 'Title (m15)', 'Type (m15)', 'Rules (m15)', 'Frame (m15)', 'Border (m15)']], | ['Invention Frame', 'data/images/invention/inventionFrame.png', 0, 0, 1, 1, ['Full', 'Pinline Super (m15)', 'Title (m15)', 'Type (m15)', 'Rules (m15)', 'Frame (m15)', 'Border (m15)']], | ||||||
| ['Invention Power/Toughness', 'data/images/invention/inventionPT.png', 1142/1500, 1856/2100, 287/1500, 157/2100, ['Full']] | ['Invention Power/Toughness', 'data/images/invention/inventionPT.png', 1136/1500, 1858/2100, 282/1500, 154/2100, ['Full']] | ||||||
| ] | ] | ||||||
|  |  | ||||||
| var versionInventionMaskList = [] | var versionInventionMaskList = [] | ||||||
| @@ -17,16 +17,16 @@ if (currentVersion != 'invention') { | |||||||
| 	hideFrameImages('frameClassM15') | 	hideFrameImages('frameClassM15') | ||||||
|  |  | ||||||
| 	loadTextOptions([ | 	loadTextOptions([ | ||||||
| 	new cardText('Card Title', '', 126/1500, 187/2100, 1248/1500, 80/2100, 'belerenb', 80/2100, 'black', ['oneLine=true']), | 	new cardText('Card Title', '', 126/1500, 188/2100, 1248/1500, 80/2100, 'belerenb', 80/2100, 'black', ['oneLine=true']), | ||||||
| 	new cardText('Card Type', '', 126/1500, 1263/2100, 1248/1500, 68/2100, 'belerenb', 68/2100, 'black', ['oneLine=true']), | 	new cardText('Card Type', '', 126/1500, 1264/2100, 1248/1500, 68/2100, 'belerenb', 68/2100, 'black', ['oneLine=true']), | ||||||
| 	new cardText('Rules Text', '', 135/1500, 1372/2100, 1230/1500, 624/2100, 'mplantin', 74/2100, 'black'), | 	new cardText('Rules Text', '', 135/1500, 1375/2100, 1230/1500, 625/2100, 'mplantin', 74/2100, 'black'), | ||||||
| 	new cardText('Power/Toughness', '', 1190/1500, 1950/2100, 210/1500, 78/2100, 'belerenbsc', 78/2100, 'black', ['oneLine=true,textAlign="center"']) | 	new cardText('Power/Toughness', '', 1190/1500, 1957/2100, 205/1500, 78/2100, 'belerenbsc', 78/2100, 'black', ['oneLine=true,textAlign="center"']) | ||||||
| 	]) | 	]) | ||||||
|  |  | ||||||
| 	artX = scaleX(60/1500) | 	artX = scaleX(60/1500) | ||||||
| 	artY = scaleY(60/2100) | 	artY = scaleY(60/2100) | ||||||
| 	artWidth = scaleX(1440/1500) | 	artWidth = scaleX(1381/1500) | ||||||
| 	artHeight = scaleY(1888/2100) | 	artHeight = scaleY(1876/2100) | ||||||
|  |  | ||||||
| 	manaCostXPath = '1316 - 78 * manaSymbolIndex' | 	manaCostXPath = '1316 - 78 * manaSymbolIndex' | ||||||
| 	manaCostYPath = '121' | 	manaCostYPath = '121' | ||||||
|   | |||||||
| @@ -8,22 +8,22 @@ var versionM15ImageList = [ | |||||||
| ['Artifact Frame', 'data/images/m15/m15FrameA.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)', 'Title (m15)', 'Type (m15)', 'Rules (m15)', 'Frame (m15)', 'Border (m15)', 'Pinline Super (m15)']], | ['Artifact Frame', 'data/images/m15/m15FrameA.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)', 'Title (m15)', 'Type (m15)', 'Rules (m15)', 'Frame (m15)', 'Border (m15)', 'Pinline Super (m15)']], | ||||||
| ['Vehicle Frame', 'data/images/m15/m15FrameV.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)', 'Title (m15)', 'Type (m15)', 'Rules (m15)', 'Frame (m15)', 'Border (m15)', 'Pinline Super (m15)']], | ['Vehicle Frame', 'data/images/m15/m15FrameV.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)', 'Title (m15)', 'Type (m15)', 'Rules (m15)', 'Frame (m15)', 'Border (m15)', 'Pinline Super (m15)']], | ||||||
| ['Land Frame', 'data/images/m15/m15FrameL.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)', 'Title (m15)', 'Type (m15)', 'Rules (m15)', 'Frame (m15)', 'Border (m15)', 'Pinline Super (m15)']], | ['Land Frame', 'data/images/m15/m15FrameL.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)', 'Title (m15)', 'Type (m15)', 'Rules (m15)', 'Frame (m15)', 'Border (m15)', 'Pinline Super (m15)']], | ||||||
| ['White Power/Toughness', 'data/images/m15/m15PTW.png', 1142/1500, 1856/2100, 287/1500, 157/2100, ['Full']], | ['White Power/Toughness', 'data/images/m15/m15PTW.png', 1136/1500, 1858/2100, 282/1500, 154/2100, ['Full']], | ||||||
| ['Blue Power/Toughness', 'data/images/m15/m15PTU.png', 1142/1500, 1856/2100, 287/1500, 157/2100, ['Full']], | ['Blue Power/Toughness', 'data/images/m15/m15PTU.png', 1136/1500, 1858/2100, 282/1500, 154/2100, ['Full']], | ||||||
| ['Black Power/Toughness', 'data/images/m15/m15PTB.png', 1142/1500, 1856/2100, 287/1500, 157/2100, ['Full']], | ['Black Power/Toughness', 'data/images/m15/m15PTB.png', 1136/1500, 1858/2100, 282/1500, 154/2100, ['Full']], | ||||||
| ['Red Power/Toughness', 'data/images/m15/m15PTR.png', 1142/1500, 1856/2100, 287/1500, 157/2100, ['Full']], | ['Red Power/Toughness', 'data/images/m15/m15PTR.png', 1136/1500, 1858/2100, 282/1500, 154/2100, ['Full']], | ||||||
| ['Green Power/Toughness', 'data/images/m15/m15PTG.png', 1142/1500, 1856/2100, 287/1500, 157/2100, ['Full']], | ['Green Power/Toughness', 'data/images/m15/m15PTG.png', 1136/1500, 1858/2100, 282/1500, 154/2100, ['Full']], | ||||||
| ['Multicolored Power/Toughness', 'data/images/m15/m15PTM.png', 1142/1500, 1856/2100, 287/1500, 157/2100, ['Full']], | ['Multicolored Power/Toughness', 'data/images/m15/m15PTM.png', 1136/1500, 1858/2100, 282/1500, 154/2100, ['Full']], | ||||||
| ['Artifact Power/Toughness', 'data/images/m15/m15PTA.png', 1142/1500, 1856/2100, 287/1500, 157/2100, ['Full']], | ['Artifact Power/Toughness', 'data/images/m15/m15PTA.png', 1136/1500, 1858/2100, 282/1500, 154/2100, ['Full']], | ||||||
| ['White Legend Crown', 'data/images/m15/m15CrownW.png', 38/1500, 29/2100, 1422/1500, 341/2100, ['Full', 'Legend Crown (m15)', 'Legend Crown W/ Pinline (m15)']], | ['White Legend Crown', 'data/images/m15/m15CrownW.png', 41/1500, 40/2100, 1418/1500, 350/2100, ['Full', 'Legend Crown (m15)', 'Legend Crown W/ Pinline (m15)']], | ||||||
| ['Blue Legend Crown', 'data/images/m15/m15CrownU.png', 38/1500, 29/2100, 1422/1500, 341/2100, ['Full', 'Legend Crown (m15)', 'Legend Crown W/ Pinline (m15)']], | ['Blue Legend Crown', 'data/images/m15/m15CrownU.png', 41/1500, 40/2100, 1418/1500, 350/2100, ['Full', 'Legend Crown (m15)', 'Legend Crown W/ Pinline (m15)']], | ||||||
| ['Black Legend Crown', 'data/images/m15/m15CrownB.png', 38/1500, 29/2100, 1422/1500, 341/2100, ['Full', 'Legend Crown (m15)', 'Legend Crown W/ Pinline (m15)']], | ['Black Legend Crown', 'data/images/m15/m15CrownB.png', 41/1500, 40/2100, 1418/1500, 350/2100, ['Full', 'Legend Crown (m15)', 'Legend Crown W/ Pinline (m15)']], | ||||||
| ['Red Legend Crown', 'data/images/m15/m15CrownR.png', 38/1500, 29/2100, 1422/1500, 341/2100, ['Full', 'Legend Crown (m15)', 'Legend Crown W/ Pinline (m15)']], | ['Red Legend Crown', 'data/images/m15/m15CrownR.png', 41/1500, 40/2100, 1418/1500, 350/2100, ['Full', 'Legend Crown (m15)', 'Legend Crown W/ Pinline (m15)']], | ||||||
| ['Green Legend Crown', 'data/images/m15/m15CrownG.png', 38/1500, 29/2100, 1422/1500, 341/2100, ['Full', 'Legend Crown (m15)', 'Legend Crown W/ Pinline (m15)']], | ['Green Legend Crown', 'data/images/m15/m15CrownG.png', 41/1500, 40/2100, 1418/1500, 350/2100, ['Full', 'Legend Crown (m15)', 'Legend Crown W/ Pinline (m15)']], | ||||||
| ['Multicolored Legend Crown', 'data/images/m15/m15CrownM.png', 38/1500, 29/2100, 1422/1500, 341/2100, ['Full', 'Legend Crown (m15)', 'Legend Crown W/ Pinline (m15)']], | ['Multicolored Legend Crown', 'data/images/m15/m15CrownM.png', 41/1500, 40/2100, 1418/1500, 350/2100, ['Full', 'Legend Crown (m15)', 'Legend Crown W/ Pinline (m15)']], | ||||||
| ['Artifact Legend Crown', 'data/images/m15/m15CrownA.png', 38/1500, 29/2100, 1422/1500, 341/2100, ['Full', 'Legend Crown (m15)', 'Legend Crown W/ Pinline (m15)']], | ['Artifact Legend Crown', 'data/images/m15/m15CrownA.png', 41/1500, 40/2100, 1418/1500, 350/2100, ['Full', 'Legend Crown (m15)', 'Legend Crown W/ Pinline (m15)']], | ||||||
| ['Land Legend Crown', 'data/images/m15/m15CrownL.png', 38/1500, 29/2100, 1422/1500, 341/2100, ['Full', 'Legend Crown (m15)', 'Legend Crown W/ Pinline (m15)']], | ['Land Legend Crown', 'data/images/m15/m15CrownL.png', 41/1500, 40/2100, 1418/1500, 350/2100, ['Full', 'Legend Crown (m15)', 'Legend Crown W/ Pinline (m15)']], | ||||||
| ['Legend Crown Border Cover', 'data/images/m15/m15LegendCrownBorderCover.png', 0, 0, 1, 1, ['Full', 'Legend Crown (m15)', 'Legend Crown W/ Pinline (m15)']], | ['Legend Crown Border Cover', 'data/images/m15/m15LegendCrownBorderCover.png', 0, 0, 1, 1, ['Full']], | ||||||
| ['Midnight Frame', 'data/images/m15/m15Midnight.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)', 'Title (m15)', 'Type (m15)', 'Rules (m15)', 'Frame (m15)', 'Border (m15)']] | ['Midnight Frame', 'data/images/m15/m15Midnight.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)', 'Title (m15)', 'Type (m15)', 'Rules (m15)', 'Frame (m15)', 'Border (m15)']] | ||||||
| ] | ] | ||||||
|  |  | ||||||
| @@ -41,16 +41,16 @@ if (currentVersion != 'm15') { | |||||||
| 	hideFrameImages('frameClassM15') | 	hideFrameImages('frameClassM15') | ||||||
|  |  | ||||||
| 	loadTextOptions([ | 	loadTextOptions([ | ||||||
| 	new cardText('Card Title', '', 126/1500, 187/2100, 1248/1500, 80/2100, 'belerenb', 80/2100, 'black', ['oneLine=true']), | 	new cardText('Card Title', '', 126/1500, 188/2100, 1248/1500, 80/2100, 'belerenb', 80/2100, 'black', ['oneLine=true']), | ||||||
| 	new cardText('Card Type', '', 126/1500, 1263/2100, 1248/1500, 68/2100, 'belerenb', 68/2100, 'black', ['oneLine=true']), | 	new cardText('Card Type', '', 126/1500, 1264/2100, 1248/1500, 68/2100, 'belerenb', 68/2100, 'black', ['oneLine=true']), | ||||||
| 	new cardText('Rules Text', '', 135/1500, 1372/2100, 1230/1500, 624/2100, 'mplantin', 74/2100, 'black'), | 	new cardText('Rules Text', '', 135/1500, 1375/2100, 1230/1500, 625/2100, 'mplantin', 74/2100, 'black'), | ||||||
| 	new cardText('Power/Toughness', '', 1190/1500, 1950/2100, 210/1500, 78/2100, 'belerenbsc', 78/2100, 'black', ['oneLine=true,textAlign="center"']) | 	new cardText('Power/Toughness', '', 1190/1500, 1957/2100, 205/1500, 78/2100, 'belerenbsc', 78/2100, 'black', ['oneLine=true,textAlign="center"']) | ||||||
| 	]) | 	]) | ||||||
|  |  | ||||||
| 	artX = scaleX(111 / 1500) | 	artX = scaleX(115 / 1500) | ||||||
| 	artY = scaleY(233 / 2100) | 	artY = scaleY(237 / 2100) | ||||||
| 	artWidth = scaleX(1278 / 1500) | 	artWidth = scaleX(1270 / 1500) | ||||||
| 	artHeight = scaleY(936 / 2100) | 	artHeight = scaleY(929 / 2100) | ||||||
|  |  | ||||||
| 	manaCostXPath = '1316 - 78 * manaSymbolIndex' | 	manaCostXPath = '1316 - 78 * manaSymbolIndex' | ||||||
| 	manaCostYPath = '121' | 	manaCostYPath = '121' | ||||||
|   | |||||||
							
								
								
									
										66
									
								
								data/scripts/versions/versionM15Nickname.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,66 @@ | |||||||
|  | var versionM15NicknameImageList = [ | ||||||
|  | ['Base Nickname Frame', 'data/images/m15/m15NicknameTextboxes.png', 0, 0, 1, 1, ['Full', 'Title (m15)', 'Type (m15)', 'Rules (m15)']], | ||||||
|  | ['White Nickname Frame', 'data/images/m15/m15NicknameFrameW.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)', 'Border (m15)']], | ||||||
|  | ['Blue Nickname Frame', 'data/images/m15/m15NicknameFrameU.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)', 'Border (m15)']], | ||||||
|  | ['Black Nickname Frame', 'data/images/m15/m15NicknameFrameB.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)', 'Border (m15)']], | ||||||
|  | ['Red Nickname Frame', 'data/images/m15/m15NicknameFrameR.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)', 'Border (m15)']], | ||||||
|  | ['Green Nickname Frame', 'data/images/m15/m15NicknameFrameG.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)', 'Border (m15)']], | ||||||
|  | ['Multicolored Nickname Frame', 'data/images/m15/m15NicknameFrameM.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)', 'Border (m15)']], | ||||||
|  | ['Artifact Nickname Frame', 'data/images/m15/m15NicknameFrameA.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)', 'Border (m15)']], | ||||||
|  | ['Land Nickname Frame', 'data/images/m15/m15NicknameFrameL.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)', 'Border (m15)']], | ||||||
|  | ['White Nickname Legend Crown', 'data/images/m15/m15NicknameCrownW.png', 36/1500, 36/2100, 1428/1500, 270/2100, ['Full', 'Nickname Legend Crown (m15)']], | ||||||
|  | ['Blue Nickname Legend Crown', 'data/images/m15/m15NicknameCrownU.png', 36/1500, 36/2100, 1428/1500, 270/2100, ['Full', 'Nickname Legend Crown (m15)']], | ||||||
|  | ['Black Nickname Legend Crown', 'data/images/m15/m15NicknameCrownB.png', 36/1500, 36/2100, 1428/1500, 270/2100, ['Full', 'Nickname Legend Crown (m15)']], | ||||||
|  | ['Red Nickname Legend Crown', 'data/images/m15/m15NicknameCrownR.png', 36/1500, 36/2100, 1428/1500, 270/2100, ['Full', 'Nickname Legend Crown (m15)']], | ||||||
|  | ['Green Nickname Legend Crown', 'data/images/m15/m15NicknameCrownG.png', 36/1500, 36/2100, 1428/1500, 270/2100, ['Full', 'Nickname Legend Crown (m15)']], | ||||||
|  | ['Multicolored Nickname Legend Crown', 'data/images/m15/m15NicknameCrownM.png', 36/1500, 36/2100, 1428/1500, 270/2100, ['Full', 'Nickname Legend Crown (m15)']], | ||||||
|  | ['Artifact Nickname Legend Crown', 'data/images/m15/m15NicknameCrownA.png', 36/1500, 36/2100, 1428/1500, 270/2100, ['Full', 'Nickname Legend Crown (m15)']], | ||||||
|  | ['Land Nickname Legend Crown', 'data/images/m15/m15NicknameCrownL.png', 36/1500, 36/2100, 1428/1500, 270/2100, ['Full', 'Nickname Legend Crown (m15)']] | ||||||
|  | ] | ||||||
|  |  | ||||||
|  | var versionM15NicknameMaskList = [['Nickname Legend Crown (m15)', 'data/images/m15/m15MaskNicknameLegendCrownStrokeless.png']] | ||||||
|  |  | ||||||
|  | if (!loadedVersions.includes('m15Nickname')) { | ||||||
|  | 	loadedVersions.push("m15Nickname") | ||||||
|  | 	loadMaskImages(versionM15NicknameMaskList) | ||||||
|  | 	loadFrameImages(versionM15NicknameImageList, 'frameClassM15') | ||||||
|  | } | ||||||
|  |  | ||||||
|  | if (currentVersion != 'm15Nickname') { | ||||||
|  | 	currentVersion = 'm15Nickname' | ||||||
|  |  | ||||||
|  | 	hideFrameImages('frameClassM15') | ||||||
|  |  | ||||||
|  | 	loadTextOptions([ | ||||||
|  | 	new cardText('Card Nickname', '', 126/1500, 188/2100, 1248/1500, 80/2100, 'belerenb', 80/2100, 'white', ['oneLine=true']), | ||||||
|  | 	new cardText('Card Title', '', 210/1500, 276/2100, 1080/1500, 48/2100, 'belerenb', 48/2100, 'white', ['oneLine=true', 'textAlign="center"', 'fontStyle="italic "']), | ||||||
|  | 	new cardText('Card Type', '', 126/1500, 1264/2100, 1248/1500, 68/2100, 'belerenb', 68/2100, 'white', ['oneLine=true']), | ||||||
|  | 	new cardText('Rules Text', '', 135/1500, 1375/2100, 1230/1500, 625/2100, 'mplantin', 74/2100, 'white'), | ||||||
|  | 	new cardText('Power/Toughness', '', 1190/1500, 1957/2100, 205/1500, 78/2100, 'belerenbsc', 78/2100, 'white', ['oneLine=true,textAlign="center"']) | ||||||
|  | 	]) | ||||||
|  |  | ||||||
|  | 	artX = 0 | ||||||
|  | 	artY = 0 | ||||||
|  | 	artWidth = scaleX(1) | ||||||
|  | 	artHeight = scaleY(1936 / 2100) | ||||||
|  |  | ||||||
|  | 	manaCostXPath = '1316 - 78 * manaSymbolIndex' | ||||||
|  | 	manaCostYPath = '121' | ||||||
|  | 	manaCostDiameter = '70' | ||||||
|  | 	manaCostShadowOffset = '[-2, 6]' | ||||||
|  | 	manaCostDirection = 'reverse' | ||||||
|  |  | ||||||
|  | 	setSymbolX = [scaleX(1382/1500), 'right'] | ||||||
|  | 	setSymbolY = [scaleY(1240/2100), 'center'] | ||||||
|  | 	setSymbolWidth = scaleX(180/1500) | ||||||
|  | 	setSymbolHeight = scaleY(80/2100) | ||||||
|  |  | ||||||
|  | 	watermarkX = scaleX(0.5) | ||||||
|  | 	watermarkY = scaleY(1630/2100) | ||||||
|  | 	watermarkWidth = scaleX(1140/1500) | ||||||
|  | 	watermarkHeight = scaleY(484/2100) | ||||||
|  |  | ||||||
|  | 	bottomInfoFunction = 'bottomInfoM15' | ||||||
|  |  | ||||||
|  | 	bottomInfoUpdated() | ||||||
|  | } | ||||||
| @@ -6,19 +6,20 @@ var versionM15NyxImageList = [ | |||||||
| ['Green Nyx Frame', 'data/images/m15/m15FrameGNyx.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)', 'Title (m15)', 'Type (m15)', 'Rules (m15)', 'Frame (m15)', 'Border (m15)', 'Pinline Super (m15)']], | ['Green Nyx Frame', 'data/images/m15/m15FrameGNyx.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)', 'Title (m15)', 'Type (m15)', 'Rules (m15)', 'Frame (m15)', 'Border (m15)', 'Pinline Super (m15)']], | ||||||
| ['Multicolored Nyx Frame', 'data/images/m15/m15FrameMNyx.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)', 'Title (m15)', 'Type (m15)', 'Rules (m15)', 'Frame (m15)', 'Border (m15)', 'Pinline Super (m15)']], | ['Multicolored Nyx Frame', 'data/images/m15/m15FrameMNyx.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)', 'Title (m15)', 'Type (m15)', 'Rules (m15)', 'Frame (m15)', 'Border (m15)', 'Pinline Super (m15)']], | ||||||
| ['Artifact Nyx Frame', 'data/images/m15/m15FrameANyx.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)', 'Title (m15)', 'Type (m15)', 'Rules (m15)', 'Frame (m15)', 'Border (m15)', 'Pinline Super (m15)']], | ['Artifact Nyx Frame', 'data/images/m15/m15FrameANyx.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)', 'Title (m15)', 'Type (m15)', 'Rules (m15)', 'Frame (m15)', 'Border (m15)', 'Pinline Super (m15)']], | ||||||
| ['White Nyx Legend Crown', 'data/images/m15/m15CrownWNyx.png', 39/1500, 29/2100, 1422/1500, 341/2100, ['Full', 'Nyx Crown (m15)', 'Nyx Crown Outer (m15)', 'Nyx Crown Inner (m15)', 'Nyx Crown Shadowless (m15)', 'Title (m15)']], | ['White Nyx Legend Crown', 'data/images/m15/m15InnerCrownWNyx.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']], | ||||||
| ['Blue Nyx Legend Crown', 'data/images/m15/m15CrownUNyx.png', 39/1500, 29/2100, 1422/1500, 341/2100, ['Full', 'Nyx Crown (m15)', 'Nyx Crown Outer (m15)', 'Nyx Crown Inner (m15)', 'Nyx Crown Shadowless (m15)', 'Title (m15)']], | ['Blue Nyx Legend Crown', 'data/images/m15/m15InnerCrownUNyx.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']], | ||||||
| ['Black Nyx Legend Crown', 'data/images/m15/m15CrownBNyx.png', 39/1500, 29/2100, 1422/1500, 341/2100, ['Full', 'Nyx Crown (m15)', 'Nyx Crown Outer (m15)', 'Nyx Crown Inner (m15)', 'Nyx Crown Shadowless (m15)', 'Title (m15)']], | ['Black Nyx Legend Crown', 'data/images/m15/m15InnerCrownBNyx.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']], | ||||||
| ['Red Nyx Legend Crown', 'data/images/m15/m15CrownRNyx.png', 39/1500, 29/2100, 1422/1500, 341/2100, ['Full', 'Nyx Crown (m15)', 'Nyx Crown Outer (m15)', 'Nyx Crown Inner (m15)', 'Nyx Crown Shadowless (m15)', 'Title (m15)']], | ['Red Nyx Legend Crown', 'data/images/m15/m15InnerCrownRNyx.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']], | ||||||
| ['Green Nyx Legend Crown', 'data/images/m15/m15CrownGNyx.png', 39/1500, 29/2100, 1422/1500, 341/2100, ['Full', 'Nyx Crown (m15)', 'Nyx Crown Outer (m15)', 'Nyx Crown Inner (m15)', 'Nyx Crown Shadowless (m15)', 'Title (m15)']], | ['Green Nyx Legend Crown', 'data/images/m15/m15InnerCrownGNyx.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']], | ||||||
| ['Multicolored Nyx Legend Crown', 'data/images/m15/m15CrownMNyx.png', 39/1500, 29/2100, 1422/1500, 341/2100, ['Full', 'Nyx Crown (m15)', 'Nyx Crown Outer (m15)', 'Nyx Crown Inner (m15)', 'Nyx Crown Shadowless (m15)', 'Title (m15)']] | ['Multicolored Nyx Legend Crown', 'data/images/m15/m15InnerCrownMNyx.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']], | ||||||
|  | ['Artifact Nyx Legend Crown', 'data/images/m15/m15InnerCrownANyx.png', 246/1500, 50/2100, 1008/1500, 50/2100, ['Full']] | ||||||
| ] | ] | ||||||
|  |  | ||||||
| var versionM15NyxMaskList = [['Nyx Crown (m15)', 'data/images/m15/m15MaskNyxCrown.png'], ['Nyx Crown Outer (m15)', 'data/images/m15/m15MaskNyxCrownOuter.png'], ['Nyx Crown Inner (m15)', 'data/images/m15/m15MaskNyxCrownInner.png'], ['Nyx Crown Shadowless (m15)', 'data/images/m15/m15MaskNyxCrownShadowless.png']] | var versionM15NyxMaskList = [] | ||||||
|  |  | ||||||
| if (!loadedVersions.includes('m15Nyx')) { | if (!loadedVersions.includes('m15Nyx')) { | ||||||
| 	loadedVersions.push("m15Nyx") | 	loadedVersions.push("m15Nyx") | ||||||
| 	loadMaskImages(versionM15NyxMaskList) | 	// loadMaskImages(versionM15NyxMaskList) | ||||||
| 	loadFrameImages(versionM15NyxImageList, 'frameClassM15') | 	loadFrameImages(versionM15NyxImageList, 'frameClassM15') | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -28,16 +29,16 @@ if (currentVersion != 'm15') { | |||||||
| 	hideFrameImages('frameClassM15') | 	hideFrameImages('frameClassM15') | ||||||
|  |  | ||||||
| 	loadTextOptions([ | 	loadTextOptions([ | ||||||
| 	new cardText('Card Title', '', 126/1500, 187/2100, 1248/1500, 80/2100, 'belerenb', 80/2100, 'black', ['oneLine=true']), | 	new cardText('Card Title', '', 126/1500, 188/2100, 1248/1500, 80/2100, 'belerenb', 80/2100, 'black', ['oneLine=true']), | ||||||
| 	new cardText('Card Type', '', 126/1500, 1263/2100, 1248/1500, 68/2100, 'belerenb', 68/2100, 'black', ['oneLine=true']), | 	new cardText('Card Type', '', 126/1500, 1264/2100, 1248/1500, 68/2100, 'belerenb', 68/2100, 'black', ['oneLine=true']), | ||||||
| 	new cardText('Rules Text', '', 135/1500, 1372/2100, 1230/1500, 624/2100, 'mplantin', 74/2100, 'black'), | 	new cardText('Rules Text', '', 135/1500, 1375/2100, 1230/1500, 625/2100, 'mplantin', 74/2100, 'black'), | ||||||
| 	new cardText('Power/Toughness', '', 1190/1500, 1950/2100, 210/1500, 78/2100, 'belerenbsc', 78/2100, 'black', ['oneLine=true,textAlign="center"']) | 	new cardText('Power/Toughness', '', 1190/1500, 1957/2100, 205/1500, 78/2100, 'belerenbsc', 78/2100, 'black', ['oneLine=true,textAlign="center"']) | ||||||
| 	]) | 	]) | ||||||
|  |  | ||||||
| 	artX = scaleX(111 / 1500) | 	artX = scaleX(115 / 1500) | ||||||
| 	artY = scaleY(233 / 2100) | 	artY = scaleY(237 / 2100) | ||||||
| 	artWidth = scaleX(1278 / 1500) | 	artWidth = scaleX(1270 / 1500) | ||||||
| 	artHeight = scaleY(936 / 2100) | 	artHeight = scaleY(929 / 2100) | ||||||
|  |  | ||||||
| 	manaCostXPath = '1316 - 78 * manaSymbolIndex' | 	manaCostXPath = '1316 - 78 * manaSymbolIndex' | ||||||
| 	manaCostYPath = '121' | 	manaCostYPath = '121' | ||||||
|   | |||||||
| @@ -157,6 +157,7 @@ | |||||||
| 				<div id='advancedTab' class='hidden'> | 				<div id='advancedTab' class='hidden'> | ||||||
| 					Click on one of the following buttons to load the described card frame:<br> | 					Click on one of the following buttons to load the described card frame:<br> | ||||||
| 					<button onclick='loadScript("data/scripts/versions/versionM15.js")'>M15</button> | 					<button onclick='loadScript("data/scripts/versions/versionM15.js")'>M15</button> | ||||||
|  | 					<button onclick='loadScript("data/scripts/versions/versionM15Nickname.js")'>Nickname, AKA Godzilla (M15)</button> | ||||||
| 					<button onclick='loadScript("data/scripts/versions/versionM15Nyx.js")'>Nyx (M15)</button> | 					<button onclick='loadScript("data/scripts/versions/versionM15Nyx.js")'>Nyx (M15)</button> | ||||||
| 					<button onclick='loadScript("data/scripts/versions/versionInvention.js")'>Invention (M15)</button><br><br> | 					<button onclick='loadScript("data/scripts/versions/versionInvention.js")'>Invention (M15)</button><br><br> | ||||||
| 					<button onclick='loadScript("data/scripts/versions/versionPlaneswalker.js")'>Planeswalker</button><br><br> | 					<button onclick='loadScript("data/scripts/versions/versionPlaneswalker.js")'>Planeswalker</button><br><br> | ||||||
|   | |||||||
 Kyle
					Kyle