forked from GithubMirrors/cardconjurer
		
	Accurate frames (#9)
* Add redone frames * Redone autoframe and snow frames * Update new frame rules text Y position * Redone UB holo stamp * Update UB stamps * Add colorless frame * Add fullart frame images * Add colorless frame to pack * Reorganize & rename accurate frames, add full art frames
This commit is contained in:
		
							
								
								
									
										272
									
								
								js/creator-23.js
									
									
									
									
									
								
							
							
						
						
									
										272
									
								
								js/creator-23.js
									
									
									
									
									
								
							| @@ -674,13 +674,6 @@ function cardFrameProperties(colors, manaCost, typeLine, power, style) { | ||||
| 		typeTitle = 'A'; | ||||
| 	} | ||||
|  | ||||
| 	var innerCrown; | ||||
| 	if (typeLine.includes('Artifact') && colors.length == 0) { | ||||
| 		innerCrown = 'A'; | ||||
| 	} else { | ||||
| 		innerCrown = typeTitle; | ||||
| 	} | ||||
|  | ||||
| 	var pt; | ||||
| 	if (power) { | ||||
| 		if (typeLine.includes('Vehicle')) { | ||||
| @@ -744,8 +737,7 @@ function cardFrameProperties(colors, manaCost, typeLine, power, style) { | ||||
| 		'typeTitle': typeTitle, | ||||
| 		'pt': pt, | ||||
| 		'frame': frame, | ||||
| 		'frameRight': frameRight, | ||||
| 		'innerCrown': innerCrown | ||||
| 		'frameRight': frameRight | ||||
| 	} | ||||
| } | ||||
| var autoFramePack; | ||||
| @@ -821,6 +813,9 @@ function autoFrame() { | ||||
| 	if (frame == 'M15Regular-1') { | ||||
| 		autoM15Frame(colors, card.text.mana.text, card.text.type.text, card.text.pt.text); | ||||
| 		group = 'Standard-3'; | ||||
| 	} else if (frame == 'M15RegularNew') { | ||||
| 		autoM15NewFrame(colors, card.text.mana.text, card.text.type.text, card.text.pt.text); | ||||
| 		group = 'Accurate'; | ||||
| 	} else if (frame == 'M15Eighth') { | ||||
| 		autoM15EighthFrame(colors, card.text.mana.text, card.text.type.text, card.text.pt.text); | ||||
| 		group = 'Custom'; | ||||
| @@ -830,6 +825,12 @@ function autoFrame() { | ||||
| 	} else if (frame == 'UB') { | ||||
| 		autoUBFrame(colors, card.text.mana.text, card.text.type.text, card.text.pt.text); | ||||
| 		group = 'Showcase-5'; | ||||
| 	} else if (frame == 'UBNew') { | ||||
| 		autoUBNewFrame(colors, card.text.mana.text, card.text.type.text, card.text.pt.text); | ||||
| 		group = 'Accurate'; | ||||
| 	} else if (frame == 'FullArtNew') { | ||||
| 		autoFullArtNewFrame(colors, card.text.mana.text, card.text.type.text, card.text.pt.text); | ||||
| 		group = 'Accurate'; | ||||
| 	} else if (frame == 'Circuit') { | ||||
| 		autoCircuitFrame(colors, card.text.mana.text, card.text.type.text, card.text.pt.text); | ||||
| 		group = 'Custom'; | ||||
| @@ -911,6 +912,12 @@ async function autoUBFrame(colors, mana_cost, type_line, power) { | ||||
| 	await card.frames.forEach(item => addFrame([], item)); | ||||
| 	card.frames.reverse(); | ||||
| } | ||||
| async function autoUBNewFrame(colors, mana_cost, type_line, power) { | ||||
| 	autoM15NewFrame(colors, mana_cost, type_line, power, 'ub'); | ||||
| } | ||||
| async function autoFullArtNewFrame(colors, mana_cost, type_line, power) { | ||||
| 	autoM15NewFrame(colors, mana_cost, type_line, power, 'fullart'); | ||||
| } | ||||
| async function autoCircuitFrame(colors, mana_cost, type_line, power) { | ||||
| 	var frames = card.frames.filter(frame => frame.name.includes('Extension') || frame.name.includes('Gray Holo Stamp') || frame.name.includes('Gold Holo Stamp')); | ||||
|  | ||||
| @@ -975,7 +982,10 @@ async function autoM15Frame(colors, mana_cost, type_line, power) { | ||||
| 	// Set frames | ||||
| 	if (type_line.includes('Legendary')) { | ||||
| 		if (style == 'Nyx') { | ||||
| 			frames.push(makeM15FrameByLetter(properties.innerCrown, 'Inner Crown', false, style)); | ||||
| 			if (properties.pinlineRight) { | ||||
| 				frames.push(makeM15FrameByLetter(properties.pinlineRight, 'Inner Crown', true, style)); | ||||
| 			} | ||||
| 			frames.push(makeM15FrameByLetter(properties.pinline, 'Inner Crown', false, style)); | ||||
| 		} | ||||
|  | ||||
| 		if (properties.pinlineRight) { | ||||
| @@ -1012,6 +1022,79 @@ async function autoM15Frame(colors, mana_cost, type_line, power) { | ||||
| 	await card.frames.forEach(item => addFrame([], item)); | ||||
| 	card.frames.reverse(); | ||||
| } | ||||
| async function autoM15NewFrame(colors, mana_cost, type_line, power, style = 'regular') { | ||||
| 	var frames; | ||||
| 	if (style == 'ub') { | ||||
| 		frames = card.frames.filter(frame => frame.name.includes('Extension') || frame.name.includes('Gray Holo Stamp')); | ||||
| 	} else { | ||||
| 		frames = card.frames.filter(frame => frame.name.includes('Extension')); | ||||
| 	} | ||||
|  | ||||
| 	//clear the draggable frames | ||||
| 	card.frames = []; | ||||
| 	document.querySelector('#frame-list').innerHTML = null; | ||||
|  | ||||
| 	var properties = cardFrameProperties(colors, mana_cost, type_line, power); | ||||
| 	if (style != 'ub' && style != 'fullart') { | ||||
| 	 	if (type_line.toLowerCase().includes('snow')) { | ||||
| 			style = 'snow'; | ||||
| 		} else if (type_line.toLowerCase().includes('enchantment creature') || type_line.toLowerCase().includes('enchantment artifact')) { | ||||
| 			style = 'Nyx'; | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	// Set frames | ||||
| 	if (type_line.includes('Legendary')) { | ||||
| 		if (style == 'Nyx') { | ||||
| 			if (properties.pinlineRight) { | ||||
| 				frames.push(makeM15NewFrameByLetter(properties.pinlineRight, 'Inner Crown', true, style)); | ||||
| 			} | ||||
|  | ||||
| 			frames.push(makeM15NewFrameByLetter(properties.pinline, 'Inner Crown', false, style));			 | ||||
| 		} | ||||
|  | ||||
| 		if (properties.pinlineRight) { | ||||
| 			frames.push(makeM15NewFrameByLetter(properties.pinlineRight, 'Crown', true, style)); | ||||
| 		} | ||||
| 		frames.push(makeM15NewFrameByLetter(properties.pinline, "Crown", false, style)); | ||||
| 		frames.push(makeM15NewFrameByLetter(properties.pinline, "Crown Border Cover", false, style)); | ||||
| 	} | ||||
|  | ||||
| 	if (style == 'ub') { | ||||
| 		if (properties.pinlineRight) { | ||||
| 			frames.push(makeM15NewFrameByLetter(properties.pinlineRight, 'Stamp', true, style)); | ||||
| 		} | ||||
| 		frames.push(makeM15NewFrameByLetter(properties.pinline, "Stamp", false, style)); | ||||
| 	} | ||||
|  | ||||
| 	if (properties.pt) { | ||||
| 		frames.push(makeM15NewFrameByLetter(properties.pt, 'PT', false, style)); | ||||
| 	} | ||||
| 	if (properties.pinlineRight) { | ||||
| 		frames.push(makeM15NewFrameByLetter(properties.pinlineRight, 'Pinline', true, style)); | ||||
| 	} | ||||
| 	frames.push(makeM15NewFrameByLetter(properties.pinline, 'Pinline', false, style)); | ||||
| 	frames.push(makeM15NewFrameByLetter(properties.typeTitle, 'Type', false, style)); | ||||
| 	frames.push(makeM15NewFrameByLetter(properties.typeTitle, 'Title', false, style)); | ||||
| 	if (properties.pinlineRight) { | ||||
| 		frames.push(makeM15NewFrameByLetter(properties.rulesRight, 'Rules', true, style)); | ||||
| 	} | ||||
| 	frames.push(makeM15NewFrameByLetter(properties.rules, 'Rules', false, style)); | ||||
| 	if (properties.frameRight) { | ||||
| 		frames.push(makeM15NewFrameByLetter(properties.frameRight, 'Frame', true, style)); | ||||
| 	} | ||||
| 	frames.push(makeM15NewFrameByLetter(properties.frame, 'Frame', false, style)); | ||||
| 	frames.push(makeM15NewFrameByLetter(properties.frame, 'Border', false, style)); | ||||
|  | ||||
| 	if (card.text.pt && type_line.includes('Vehicle') && !card.text.pt.text.includes('fff')) { | ||||
| 		card.text.pt.text = '{fontcolor#fff}' + card.text.pt.text; | ||||
| 	} | ||||
|  | ||||
| 	card.frames = frames; | ||||
| 	card.frames.reverse(); | ||||
| 	await card.frames.forEach(item => addFrame([], item)); | ||||
| 	card.frames.reverse(); | ||||
| } | ||||
| async function autoM15EighthFrame(colors, mana_cost, type_line, power) { | ||||
| 	var frames = card.frames.filter(frame => frame.name.includes('Extension')); | ||||
|  | ||||
| @@ -1030,7 +1113,10 @@ async function autoM15EighthFrame(colors, mana_cost, type_line, power) { | ||||
| 	// Set frames | ||||
| 	if (type_line.includes('Legendary')) { | ||||
| 		if (style == 'Nyx') { | ||||
| 			frames.push(makeM15FrameByLetter(properties.innerCrown, 'Inner Crown', false, style)); | ||||
| 			if (properties.pinlineRight) { | ||||
| 				frames.push(makeM15FrameByLetter(properties.pinlineRight, 'Inner Crown', true, style)); | ||||
| 			} | ||||
| 			frames.push(makeM15FrameByLetter(properties.pinline, 'Inner Crown', false, style)); | ||||
| 		} | ||||
|  | ||||
| 		if (properties.pinlineRight) { | ||||
| @@ -1085,7 +1171,10 @@ async function autoM15EighthUBFrame(colors, mana_cost, type_line, power) { | ||||
| 	// Set frames | ||||
| 	if (type_line.includes('Legendary')) { | ||||
| 		if (style == 'Nyx') { | ||||
| 			frames.push(makeM15FrameByLetter(properties.innerCrown, 'Inner Crown', false, style)); | ||||
| 			if (properties.pinlineRight) { | ||||
| 				frames.push(makeM15EighthUBFrameByLetter(properties.pinlineRight, 'Inner Crown', true, style)); | ||||
| 			} | ||||
| 			frames.push(makeM15FrameByLetter(properties.pinline, 'Inner Crown', false, style)); | ||||
| 		} | ||||
|  | ||||
| 		if (properties.pinlineRight) { | ||||
| @@ -1138,7 +1227,10 @@ async function autoBorderlessFrame(colors, mana_cost, type_line, power) { | ||||
| 	// Set frames | ||||
| 	if (type_line.includes('Legendary')) { | ||||
| 		if (style == 'Nyx') { | ||||
| 			frames.push(makeM15FrameByLetter(properties.innerCrown, 'Inner Crown', false, style)); | ||||
| 			if (properties.pinlineRight) { | ||||
| 				frames.push(makeBorderlessFrameByLetter(properties.pinlineRight, 'Inner Crown', true)); | ||||
| 			} | ||||
| 			frames.push(makeM15FrameByLetter(properties.pinline, 'Inner Crown', false, style)); | ||||
| 		} | ||||
|  | ||||
| 		if (properties.pinlineRight) { | ||||
| @@ -1223,7 +1315,10 @@ async function autoExtendedArtFrame(colors, mana_cost, type_line, power, short) | ||||
| 		frames.push(makeExtendedArtFrameByLetter(properties.pinline, "Crown Outline", false, style, short)); | ||||
|  | ||||
| 		if (style == 'Nyx') { | ||||
| 			frames.push(makeExtendedArtFrameByLetter(properties.innerCrown, 'Inner Crown', false, style, short)); | ||||
| 			if (properties.pinlineRight) { | ||||
| 				frames.push(makeExtendedArtFrameByLetter(properties.pinlineRight, 'Inner Crown', true, style, short)); | ||||
| 			} | ||||
| 			frames.push(makeExtendedArtFrameByLetter(properties.pinline, 'Inner Crown', false, style, short)); | ||||
| 		} | ||||
|  | ||||
| 		if (properties.pinlineRight) { | ||||
| @@ -1281,7 +1376,10 @@ async function autoEtchedFrame(colors, mana_cost, type_line, power) { | ||||
|  | ||||
| 	if (type_line.includes('Legendary')) { | ||||
| 		if (style == 'Nyx') { | ||||
| 			frames.push(makeEtchedFrameByLetter(properties.innerCrown, 'Inner Crown', false, style)); | ||||
| 			if (properties.frameRight) { | ||||
| 				frames.push(makeEtchedFrameByLetter(properties.pinlineRight, 'Inner Crown', true)); | ||||
| 			} | ||||
| 			frames.push(makeEtchedFrameByLetter(properties.pinline, 'Inner Crown', false, style)); | ||||
| 		} | ||||
|  | ||||
| 		if (properties.frameRight) { | ||||
| @@ -1509,6 +1607,150 @@ function makeM15FrameByLetter(letter, mask = false, maskToRightHalf = false, sty | ||||
|  | ||||
| 	return frame; | ||||
| } | ||||
|  | ||||
| function makeM15NewFrameByLetter(letter, mask = false, maskToRightHalf = false, style = 'regular') { | ||||
| 	letter = letter.toUpperCase(); | ||||
| 	var frameNames = { | ||||
| 		'W': 'White', | ||||
| 		'U': 'Blue', | ||||
| 		'B': 'Black', | ||||
| 		'R': 'Red', | ||||
| 		'G': 'Green', | ||||
| 		'M': 'Multicolored', | ||||
| 		'A': 'Artifact', | ||||
| 		'L': 'Land', | ||||
| 		'C': 'Colorless', | ||||
| 		'V': 'Vehicle', | ||||
| 		'WL': 'White Land', | ||||
| 		'UL': 'Blue Land', | ||||
| 		'BL': 'Black Land', | ||||
| 		'RL': 'Red Land', | ||||
| 		'GL': 'Green Land', | ||||
| 		'ML': 'Multicolored Land' | ||||
| 	} | ||||
|  | ||||
| 	if (letter.length == 2) { | ||||
| 		letter = letter.split("").reverse().join(""); | ||||
| 	} | ||||
|  | ||||
| 	if ((mask.includes('Crown') || mask == 'PT' || mask.includes('Stamp')) && letter.includes('L') && letter.length > 1) { | ||||
| 		letter = letter[1]; | ||||
| 	} | ||||
|  | ||||
| 	var frameName = frameNames[letter]; | ||||
|  | ||||
| 	if (mask == "Crown Border Cover") { | ||||
| 		return { | ||||
| 			'name': 'Legend Crown Border Cover', | ||||
| 			'src': '/img/black.png', | ||||
| 			'masks': [], | ||||
| 			'bounds': {x:0, y:0, width:1, height:137/2814} | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	if (mask == "Crown") { | ||||
| 		var framePath = ''; | ||||
| 		if (style == 'ub') { | ||||
| 			framePath = 'ub/'; | ||||
| 		} | ||||
| 		var frame = { | ||||
| 			'name': frameName + ' Legend Crown', | ||||
| 			'src': '/img/frames/m15/' + framePath + 'crowns/new/' + letter.toLowerCase() + '.png', | ||||
| 			'masks': [], | ||||
| 			'bounds': {x:44/2010, y:53/2814, width:1922/2010, height:493/2814} | ||||
| 		} | ||||
| 		if (maskToRightHalf) { | ||||
| 			frame.masks.push({ | ||||
| 				'src': '/img/frames/maskRightHalf.png', | ||||
| 				'name': 'Right Half' | ||||
| 			}); | ||||
| 		} | ||||
| 		return frame; | ||||
| 	} | ||||
|  | ||||
| 	if (mask == "Inner Crown") { | ||||
| 		var frame = { | ||||
| 			'name': frameName + ' ' + mask + ' (' + style + ')', | ||||
| 			'src': '/img/frames/m15/innerCrowns/new/' + style.toLowerCase() + '/' + letter.toLowerCase() + '.png', | ||||
| 			'masks': [], | ||||
| 			'bounds': {x:329/2010, y:70/2814, width:1353/2010, height:64/2814} | ||||
| 		}; | ||||
| 		if (maskToRightHalf) { | ||||
| 			frame.masks.push({ | ||||
| 				'src': '/img/frames/maskRightHalf.png', | ||||
| 				'name': 'Right Half' | ||||
| 			}); | ||||
| 		} | ||||
| 		return frame; | ||||
| 	} else if (mask == "Stamp") { | ||||
| 		if (style == 'ub') { | ||||
| 			var frame = { | ||||
| 				'name': frameName + ' Holo Stamp', | ||||
| 				'src': '/img/frames/m15/regular/new/ub/stamp/' + letter.toLowerCase() + '.png', | ||||
| 				'masks': [], | ||||
| 				'bounds': {x:857/2015, y:2534/2814, width:299/2015, height:137/2814} | ||||
| 			} | ||||
| 			if (maskToRightHalf) { | ||||
| 				frame.masks.push({ | ||||
| 					'src': '/img/frames/maskRightHalf.png', | ||||
| 					'name': 'Right Half' | ||||
| 				}); | ||||
| 			} | ||||
| 			return frame; | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	if (mask == 'PT') { | ||||
| 		var path = '/img/frames/m15/regular/m15PT'; | ||||
| 		if (style == 'ub') { | ||||
| 			path = '/img/frames/m15/ub/pt/'; | ||||
| 		} | ||||
| 		return { | ||||
| 			'name': frameName + ' Power/Toughness', | ||||
| 			'src': path + letter + '.png', | ||||
| 			'masks': [], | ||||
| 			'bounds': { | ||||
| 				'height': 0.0733, | ||||
| 				'width': 0.188, | ||||
| 				'x': 0.7573, | ||||
| 				'y': 0.8848 | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	var stylePath = ''; | ||||
| 	if (style != 'regular') { | ||||
| 		stylePath = style.toLowerCase() + '/'; | ||||
| 	} | ||||
| 	var frame = { | ||||
| 		'name': frameName + ' Frame', | ||||
| 		'src': '/img/frames/m15/regular/new/' + stylePath + letter + '.png', | ||||
| 	} | ||||
|  | ||||
| 	// if (letter.includes('L') && letter.length > 1) { | ||||
| 	// 	frame.src = frame.src.replace(('m15Frame' + letter), 'l' + letter[0].toLowerCase()) | ||||
| 	// } | ||||
|  | ||||
| 	if (mask) { | ||||
| 		frame.masks = [ | ||||
| 			{ | ||||
| 				'src': '/img/frames/m15/regular/new/' + mask.toLowerCase() + '.png', | ||||
| 				'name': mask | ||||
| 			} | ||||
| 		] | ||||
|  | ||||
| 		if (maskToRightHalf) { | ||||
| 			frame.masks.push({ | ||||
| 				'src': '/img/frames/maskRightHalf.png', | ||||
| 				'name': 'Right Half' | ||||
| 			}); | ||||
| 		} | ||||
| 	} else { | ||||
| 		frame.masks = []; | ||||
| 	} | ||||
|  | ||||
| 	return frame; | ||||
| } | ||||
| function makeM15EighthFrameByLetter(letter, mask = false, maskToRightHalf = false, style = 'regular') { | ||||
| 	letter = letter.toUpperCase(); | ||||
| 	var frameNames = { | ||||
|   | ||||
							
								
								
									
										18
									
								
								js/frames/groupAccurate.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								js/frames/groupAccurate.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| loadFramePacks([ | ||||
| 	{name:'Regular Frames', value:'M15RegularNew'}, | ||||
|  | ||||
| 	{name:'Addons', value:'disabled'}, | ||||
| 	{name:'Legend Crowns', value:'M15LegendCrownsNew'}, | ||||
| 	{name:'Inner Crowns', value:'M15InnerCrownsNew'}, | ||||
| 	{name:'Dark Power/Toughness', value:'M15DarkPT'}, | ||||
| 	{name:'"The List" Stamp', value:'TheList'}, | ||||
|  | ||||
| 	{name:'Other Frames', value:'disabled'}, | ||||
| 	{name:'Full Art', value:'FullArtNew'}, | ||||
| 	{name:'Snow (Kaldheim)', value:'SnowNew'}, | ||||
| 	{name:'Nyx (Theros)', value:'M15NyxNew'}, | ||||
|  | ||||
| 	{name:'Universes Beyond Frames', value:'disabled'}, | ||||
| 	{name:'Universes Beyond', value:'UBNew'}, | ||||
| 	{name:'Legend Crowns (Universes Beyond)', value:'UBLegendCrownsNew'}, | ||||
| ]) | ||||
| @@ -44,19 +44,20 @@ loadFramePacks([ | ||||
| 	{name:'Extended Art (Shorter Textbox)', value:'M15ExtendedArtShort'}, | ||||
| 	{name:'FNM Promo (Inverted Promos)', value:'FNM'}, | ||||
| 	{name:'Full Text', value:'FullText'}, | ||||
|  | ||||
| 	{name:'Foil-Etched', value:'disabled'}, | ||||
| 	{name:'Etched', value:'Etched'}, | ||||
| 	{name:'Etched (Nyx)', value:'EtchedNyx'}, | ||||
| 	{name:'Etched (Snow)', value:'EtchedSnow'}, | ||||
| 	{name:'Legend Crowns (Etched)', value:'LegendCrownsEtched'}, | ||||
| 	{name:'Inner Crowns (Etched)', value:'InnerCrownsEtched'}, | ||||
|  | ||||
| 	 | ||||
| 	{name:'Universes Beyond', value:'disabled'}, | ||||
| 	{name:'Universes Beyond', value:'UB'}, | ||||
| 	{name:'Universes Beyond (Full art)', value:'UBFull'}, | ||||
| 	{name:'Universes Beyond (Extended art)', value:'UBExtendedArt'}, | ||||
|  | ||||
| 	{name:'Legend Crowns (Universes Beyond)', value:'UBLegendCrowns'}, | ||||
| 	{name:'Floating Legend Crowns (Universes Beyond)', value:'UBLegendCrownsFloating'}, | ||||
| 	 | ||||
| 	{name:'Masterpieces/Other', value:'disabled'}, | ||||
| 	{name:'Phyrexian', value:'Praetors'}, | ||||
| 	{name:'ZNR Expeditions (2020)', value:'ExpeditionZNR-1'}, | ||||
|   | ||||
| @@ -1,9 +1,12 @@ | ||||
| loadFramePacks([ | ||||
| 	{name:'Regular Frames', value:'M15Regular-1'}, | ||||
| 	{name:'Regular Frames (Redone)', value:'M15RegularNew'}, | ||||
| 	{name:'Addons', value:'disabled'}, | ||||
| 	{name:'Legend Crowns', value:'M15LegendCrowns'}, | ||||
| 	{name:'Legend Crowns (Redone)', value:'M15LegendCrownsNew'}, | ||||
| 	{name:'Floating Legend Crowns', value:'M15LegendCrownsFloating'}, | ||||
| 	{name:'Inner Crowns', value:'M15InnerCrowns'}, | ||||
| 	{name:'Inner Crowns (Redone)', value:'M15InnerCrownsNew'}, | ||||
| 	{name:'Nicknames', value:'M15Nickname-2'}, | ||||
| 	{name:'Miracle', value:'M15Miracle'}, | ||||
| 	{name:'Holo Stamps', value:'M15HoloStamps'}, | ||||
| @@ -13,14 +16,17 @@ loadFramePacks([ | ||||
| 	{name:'"The List" Stamp', value:'TheList'}, | ||||
| 	{name:'Other Frames', value:'disabled'}, | ||||
| 	{name:'Lands', value:'M15Lands'}, | ||||
| 	{name:'Lands (Redone)', value:'M15LandsNew'}, | ||||
| 	{name:'Battle (March of the Machine)', value:'Battle'}, | ||||
| 	{name:'Prototype (Brothers\' War)', value:'Prototype'}, | ||||
| 	{name:'Prototype (Extended Art) (Brothers\' War)', value:'PrototypeExtended'}, | ||||
| 	{name:'Attractions (Unfinity)', value:'Attraction'}, | ||||
| 	{name:'Class (D&D)', value:'Class'}, | ||||
| 	{name:'Snow (Kaldheim)', value:'M15Snow'}, | ||||
| 	{name:'Snow (Kaldheim) (Redone)', value:'SnowNew'}, | ||||
| 	{name:'Mutate (Ikoria)', value:'M15Mutate'}, | ||||
| 	{name:'Nyx (Theros)', value:'M15Nyx'}, | ||||
| 	{name:'Nyx (Theros) (Redone)', value:'M15NyxNew'}, | ||||
| 	{name:'Adventures (Eldraine)', value:'Adventure'}, | ||||
| 	{name:'Devoid (Zendikar)', value:'M15Devoid'}, | ||||
| 	{name:'Aftermath (Amonkhet)', value:'Aftermath'}, | ||||
|   | ||||
							
								
								
									
										66
									
								
								js/frames/packFullArtNew.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										66
									
								
								js/frames/packFullArtNew.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,66 @@ | ||||
| //Create objects for common properties across available frames | ||||
| var masks = [{src:'/img/frames/m15/regular/new/pinline.png', name:'Pinline'}, {src:'/img/frames/m15/regular/new/title.png', name:'Title'}, {src:'/img/frames/m15/regular/new/type.png', name:'Type'}, {src:'/img/frames/m15/regular/new/rules.png', name:'Rules'}, {src:'/img/frames/m15/regular/new/frame.png', name:'Frame'}, {src:'/img/frames/m15/regular/new/border.png', name:'Border'}]; | ||||
| var bounds = {x:0.7573, y:0.8848, width:0.188, height:0.0733}; | ||||
| //defines available frames | ||||
| availableFrames = [ | ||||
| 	{name:'White Frame', src:'/img/frames/m15/regular/new/fullart/w.png', masks:masks}, | ||||
| 	{name:'Blue Frame', src:'/img/frames/m15/regular/new/fullart/u.png', masks:masks}, | ||||
| 	{name:'Black Frame', src:'/img/frames/m15/regular/new/fullart/b.png', masks:masks}, | ||||
| 	{name:'Red Frame', src:'/img/frames/m15/regular/new/fullart/r.png', masks:masks}, | ||||
| 	{name:'Green Frame', src:'/img/frames/m15/regular/new/fullart/g.png', masks:masks}, | ||||
| 	{name:'Multicolored Frame', src:'/img/frames/m15/regular/new/fullart/m.png', masks:masks}, | ||||
| 	{name:'Artifact Frame', src:'/img/frames/m15/regular/new/fullart/a.png', masks:masks}, | ||||
| 	{name:'Land Frame', src:'/img/frames/m15/regular/new/fullart/l.png', masks:masks}, | ||||
| 	{name:'Eldrazi Frame', src:'/img/frames/m15/regular/new/fullart/c.png', masks:masks}, | ||||
| 	{name:'Vehicle Frame', src:'/img/frames/m15/regular/new/fullart/v.png', masks:masks}, | ||||
|  | ||||
| 	{name:'White Power/Toughness', src:'/img/frames/m15/regular/m15PTW.png', bounds:bounds}, | ||||
| 	{name:'Blue Power/Toughness', src:'/img/frames/m15/regular/m15PTU.png', bounds:bounds}, | ||||
| 	{name:'Black Power/Toughness', src:'/img/frames/m15/regular/m15PTB.png', bounds:bounds}, | ||||
| 	{name:'Red Power/Toughness', src:'/img/frames/m15/regular/m15PTR.png', bounds:bounds}, | ||||
| 	{name:'Green Power/Toughness', src:'/img/frames/m15/regular/m15PTG.png', bounds:bounds}, | ||||
| 	{name:'Multicolored Power/Toughness', src:'/img/frames/m15/regular/m15PTM.png', bounds:bounds}, | ||||
| 	{name:'Artifact Power/Toughness', src:'/img/frames/m15/regular/m15PTA.png', bounds:bounds}, | ||||
| 	{name:'Colorless Power/Toughness', src:'/img/frames/m15/regular/m15PTC.png', bounds:bounds}, | ||||
| 	{name:'Vehicle Power/Toughness', src:'/img/frames/m15/regular/m15PTV.png', bounds:bounds}, | ||||
|  | ||||
| 	{name:'White Land Frame', src:'/img/frames/m15/regular/new/fullart/lw.png', masks:masks}, | ||||
| 	{name:'Blue Land Frame', src:'/img/frames/m15/regular/new/fullart/lu.png', masks:masks}, | ||||
| 	{name:'Black Land Frame', src:'/img/frames/m15/regular/new/fullart/lb.png', masks:masks}, | ||||
| 	{name:'Red Land Frame', src:'/img/frames/m15/regular/new/fullart/lr.png', masks:masks}, | ||||
| 	{name:'Green Land Frame', src:'/img/frames/m15/regular/new/fullart/lg.png', masks:masks}, | ||||
| 	{name:'Multicolored Land Frame', src:'/img/frames/m15/regular/new/fullart/lm.png', masks:masks}, | ||||
| ]; | ||||
| //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([2010,2814,0,0]); | ||||
| 	//sets card version | ||||
| 	card.version = 'm15ClearTextboxes'; | ||||
| 	//art bounds | ||||
| 	card.artBounds = {x:0.062, y:0.1129, width:0.876, height:0.8096}; | ||||
| 	autoFitArt(); | ||||
| 	//set symbol bounds | ||||
| 	card.setSymbolBounds = {x:1862/2010, y:0.5910, width:0.12, height:0.0410, vertical:'center', horizontal: 'right'}; | ||||
| 	resetSetSymbol(); | ||||
| 	//watermark bounds | ||||
| 	card.watermarkBounds = {x:0.5, y:0.7762, width:0.75, height:0.2305}; | ||||
| 	resetWatermark(); | ||||
| 	//text | ||||
| 	loadTextOptions({ | ||||
| 		mana: {name:'Mana Cost', text:'', y:176/2814, width:1864/2010, height:71/2100, oneLine:true, size:70.5/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0}, | ||||
| 		title: {name:'Title', text:'', x:168/2010, y:145/2814, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0381}, | ||||
| 		type: {name:'Type', text:'', x:168/2010, y:1588/2814, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324, color:'white'}, | ||||
| 		rules: {name:'Rules Text', text:'', x:0.086, y:1780/2814, width:0.828, height:0.2875, size:0.0362, color:'white'}, | ||||
| 		pt: {name:'Power/Toughness', text:'', x:0.7928, y:0.902, width:0.1367, height:0.0372, size:0.0372, font:'belerenbsc', oneLine:true, align:'center'} | ||||
| 	}); | ||||
| } | ||||
| //loads available frames | ||||
| loadFramePack(); | ||||
| //Only for the main version as the webpage loads: | ||||
| if (!card.text) { | ||||
| 	document.querySelector('#loadFrameVersion').click(); | ||||
| } | ||||
							
								
								
									
										26
									
								
								js/frames/packM15InnerCrownsNew.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								js/frames/packM15InnerCrownsNew.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,26 @@ | ||||
| //Create objects for common properties across available frames | ||||
| var bounds = {x:329/2010, y:70/2814, width:1353/2010, height:64/2814}; | ||||
| //defines available frames | ||||
| availableFrames = [ | ||||
| 	{name:'White Inner Crown (Nyx)', src:'/img/frames/m15/innerCrowns/new/nyx/w.png', bounds:bounds}, | ||||
| 	{name:'Blue Inner Crown (Nyx)', src:'/img/frames/m15/innerCrowns/new/nyx/u.png', bounds:bounds}, | ||||
| 	{name:'Black Inner Crown (Nyx)', src:'/img/frames/m15/innerCrowns/new/nyx/b.png', bounds:bounds}, | ||||
| 	{name:'Red Inner Crown (Nyx)', src:'/img/frames/m15/innerCrowns/new/nyx/r.png', bounds:bounds}, | ||||
| 	{name:'Green Inner Crown (Nyx)', src:'/img/frames/m15/innerCrowns/new/nyx/g.png', bounds:bounds}, | ||||
| 	{name:'Multicolored Inner Crown (Nyx)', src:'/img/frames/m15/innerCrowns/new/nyx/m.png', bounds:bounds}, | ||||
| 	{name:'Artifact Inner Crown (Nyx)', src:'/img/frames/m15/innerCrowns/new/nyx/a.png', bounds:bounds}, | ||||
|  | ||||
| 	{name:'White Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/w.png', bounds:bounds}, | ||||
| 	{name:'Blue Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/u.png', bounds:bounds}, | ||||
| 	{name:'Black Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/b.png', bounds:bounds}, | ||||
| 	{name:'Red Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/r.png', bounds:bounds}, | ||||
| 	{name:'Green Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/g.png', bounds:bounds}, | ||||
| 	{name:'Multicolored Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/m.png', bounds:bounds}, | ||||
| 	{name:'Artifact Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/a.png', bounds:bounds} | ||||
| ]; | ||||
| //disables/enables the "Load Frame Version" button | ||||
| document.querySelector('#loadFrameVersion').disabled = true; | ||||
| //defines process for loading this version, if applicable | ||||
| document.querySelector('#loadFrameVersion').onclick = null; | ||||
| //loads available frames | ||||
| loadFramePack(); | ||||
							
								
								
									
										25
									
								
								js/frames/packM15LandsNew.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								js/frames/packM15LandsNew.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| //Create objects for common properties across available frames | ||||
| var masks = [{src:'/img/frames/m15/regular/new/pinline.png', name:'Pinline'}, {src:'/img/frames/m15/regular/new/title.png', name:'Title'}, {src:'/img/frames/m15/regular/new/type.png', name:'Type'}, {src:'/img/frames/m15/regular/new/rules.png', name:'Rules'}, {src:'/img/frames/m15/regular/new/frame.png', name:'Frame'}, {src:'/img/frames/m15/regular/new/border.png', name:'Border'}]; | ||||
| var bounds = {x:0.3267, y:0.6491, width:0.3474, height:0.2496} | ||||
| //defines available frames | ||||
| availableFrames = [ | ||||
| 	{name:'White Frame', src:'/img/frames/m15/regular/new/lw.png', masks:masks}, | ||||
| 	{name:'Blue Frame', src:'/img/frames/m15/regular/new/lu.png', masks:masks}, | ||||
| 	{name:'Black Frame', src:'/img/frames/m15/regular/new/lb.png', masks:masks}, | ||||
| 	{name:'Red Frame', src:'/img/frames/m15/regular/new/lr.png', masks:masks}, | ||||
| 	{name:'Green Frame', src:'/img/frames/m15/regular/new/lg.png', masks:masks}, | ||||
| 	{name:'Multicolored Frame', src:'/img/frames/m15/regular/new/lm.png', masks:masks}, | ||||
| 	{name:'Colorless Frame', src:'/img/frames/m15/regular/new/ll.png', masks:masks}, | ||||
| 	{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} | ||||
| ]; | ||||
| //disables/enables the "Load Frame Version" button | ||||
| document.querySelector('#loadFrameVersion').disabled = true; | ||||
| //defines process for loading this version, if applicable | ||||
| document.querySelector('#loadFrameVersion').onclick = null; | ||||
| //loads available frames | ||||
| loadFramePack(); | ||||
							
								
								
									
										22
									
								
								js/frames/packM15LegendCrownsNew.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								js/frames/packM15LegendCrownsNew.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| //Create objects for common properties across available frames | ||||
| var masks = [{src:'/img/frames/m15/crowns/new/maskCrown.png', name:'Crown Without Pinlines'}, {src:'/img/frames/m15/crowns/new/maskCrownPinline.png', name:'Crown With Pinlines'}]; | ||||
| var bounds = {x:44/2010, y:53/2814, width:1922/2010, height:493/2814}; | ||||
| //defines available frames | ||||
| availableFrames = [ | ||||
| 	{name:'White Legend Crown', src:'/img/frames/m15/crowns/new/w.png', masks:masks, bounds:bounds, complementary:9}, | ||||
| 	{name:'Blue Legend Crown', src:'/img/frames/m15/crowns/new/u.png', masks:masks, bounds:bounds, complementary:9}, | ||||
| 	{name:'Black Legend Crown', src:'/img/frames/m15/crowns/new/b.png', masks:masks, bounds:bounds, complementary:9}, | ||||
| 	{name:'Red Legend Crown', src:'/img/frames/m15/crowns/new/r.png', masks:masks, bounds:bounds, complementary:9}, | ||||
| 	{name:'Green Legend Crown', src:'/img/frames/m15/crowns/new/g.png', masks:masks, bounds:bounds, complementary:9}, | ||||
| 	{name:'Multicolored Legend Crown', src:'/img/frames/m15/crowns/new/m.png', masks:masks, bounds:bounds, complementary:9}, | ||||
| 	{name:'Artifact Legend Crown', src:'/img/frames/m15/crowns/new/a.png', masks:masks, bounds:bounds, complementary:9}, | ||||
| 	{name:'Land Legend Crown', src:'/img/frames/m15/crowns/new/l.png', masks:masks, bounds:bounds, complementary:9}, | ||||
| 	{name:'Colorless Legend Crown', src:'/img/frames/m15/crowns/new/c.png', masks:masks, bounds:bounds, complementary:9}, | ||||
| 	{name:'Legend Crown Border Cover', src:'/img/black.png', bounds:{x:0, y:0, width:1, height:137/2814}} | ||||
| ]; | ||||
| //disables/enables the "Load Frame Version" button | ||||
| document.querySelector('#loadFrameVersion').disabled = true; | ||||
| //defines process for loading this version, if applicable | ||||
| document.querySelector('#loadFrameVersion').onclick = null; | ||||
| //loads available frames | ||||
| loadFramePack(); | ||||
							
								
								
									
										27
									
								
								js/frames/packM15NyxNew.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								js/frames/packM15NyxNew.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| //Create objects for common properties across available frames | ||||
| var masks = [{src:'/img/frames/m15/regular/new/pinline.png', name:'Pinline'}, {src:'/img/frames/m15/regular/new/title.png', name:'Title'}, {src:'/img/frames/m15/regular/new/type.png', name:'Type'}, {src:'/img/frames/m15/regular/new/rules.png', name:'Rules'}, {src:'/img/frames/m15/regular/new/frame.png', name:'Frame'}, {src:'/img/frames/m15/regular/new/border.png', name:'Border'}]; | ||||
| var bounds = {x:329/2010, y:70/2814, width:1353/2010, height:64/2814}; | ||||
| //defines available frames | ||||
| availableFrames = [ | ||||
| 	{name:'White Frame', src:'/img/frames/m15/regular/new/nyx/w.png', masks:masks}, | ||||
| 	{name:'Blue Frame', src:'/img/frames/m15/regular/new/nyx/u.png', masks:masks}, | ||||
| 	{name:'Black Frame', src:'/img/frames/m15/regular/new/nyx/b.png', masks:masks}, | ||||
| 	{name:'Red Frame', src:'/img/frames/m15/regular/new/nyx/r.png', masks:masks}, | ||||
| 	{name:'Green Frame', src:'/img/frames/m15/regular/new/nyx/g.png', masks:masks}, | ||||
| 	{name:'Multicolored Frame', src:'/img/frames/m15/regular/new/nyx/m.png', masks:masks}, | ||||
| 	{name:'Artifact Frame', src:'/img/frames/m15/regular/new/nyx/a.png', masks:masks}, | ||||
|  | ||||
| 	{name:'White Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/w.png', bounds:bounds}, | ||||
| 	{name:'Blue Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/u.png', bounds:bounds}, | ||||
| 	{name:'Black Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/b.png', bounds:bounds}, | ||||
| 	{name:'Red Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/r.png', bounds:bounds}, | ||||
| 	{name:'Green Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/g.png', bounds:bounds}, | ||||
| 	{name:'Multicolored Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/m.png', bounds:bounds}, | ||||
| 	{name:'Artifact Inner Crown (Companion)', src:'/img/frames/m15/innerCrowns/new/companion/a.png', bounds:bounds} | ||||
| ]; | ||||
| //disables/enables the "Load Frame Version" button | ||||
| document.querySelector('#loadFrameVersion').disabled = true; | ||||
| //defines process for loading this version, if applicable | ||||
| document.querySelector('#loadFrameVersion').onclick = null; | ||||
| //loads available frames | ||||
| loadFramePack(); | ||||
							
								
								
									
										66
									
								
								js/frames/packM15RegularNew.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										66
									
								
								js/frames/packM15RegularNew.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,66 @@ | ||||
| //Create objects for common properties across available frames | ||||
| var masks = [{src:'/img/frames/m15/regular/new/pinline.png', name:'Pinline'}, {src:'/img/frames/m15/regular/new/title.png', name:'Title'}, {src:'/img/frames/m15/regular/new/type.png', name:'Type'}, {src:'/img/frames/m15/regular/new/rules.png', name:'Rules'}, {src:'/img/frames/m15/regular/new/frame.png', name:'Frame'}, {src:'/img/frames/m15/regular/new/border.png', name:'Border'}]; | ||||
| var bounds = {x:0.7573, y:0.8848, width:0.188, height:0.0733}; | ||||
| //defines available frames | ||||
| availableFrames = [ | ||||
| 	{name:'White Frame', src:'/img/frames/m15/regular/new/w.png', masks:masks}, | ||||
| 	{name:'Blue Frame', src:'/img/frames/m15/regular/new/u.png', masks:masks}, | ||||
| 	{name:'Black Frame', src:'/img/frames/m15/regular/new/b.png', masks:masks}, | ||||
| 	{name:'Red Frame', src:'/img/frames/m15/regular/new/r.png', masks:masks}, | ||||
| 	{name:'Green Frame', src:'/img/frames/m15/regular/new/g.png', masks:masks}, | ||||
| 	{name:'Multicolored Frame', src:'/img/frames/m15/regular/new/m.png', masks:masks}, | ||||
| 	{name:'Artifact Frame', src:'/img/frames/m15/regular/new/a.png', masks:masks}, | ||||
| 	{name:'Land Frame', src:'/img/frames/m15/regular/new/l.png', masks:masks}, | ||||
| 	{name:'Eldrazi Frame', src:'/img/frames/m15/regular/new/c.png', masks:masks}, | ||||
| 	{name:'Vehicle Frame', src:'/img/frames/m15/regular/new/v.png', masks:masks}, | ||||
|  | ||||
| 	{name:'White Power/Toughness', src:'/img/frames/m15/regular/m15PTW.png', bounds:bounds}, | ||||
| 	{name:'Blue Power/Toughness', src:'/img/frames/m15/regular/m15PTU.png', bounds:bounds}, | ||||
| 	{name:'Black Power/Toughness', src:'/img/frames/m15/regular/m15PTB.png', bounds:bounds}, | ||||
| 	{name:'Red Power/Toughness', src:'/img/frames/m15/regular/m15PTR.png', bounds:bounds}, | ||||
| 	{name:'Green Power/Toughness', src:'/img/frames/m15/regular/m15PTG.png', bounds:bounds}, | ||||
| 	{name:'Multicolored Power/Toughness', src:'/img/frames/m15/regular/m15PTM.png', bounds:bounds}, | ||||
| 	{name:'Artifact Power/Toughness', src:'/img/frames/m15/regular/m15PTA.png', bounds:bounds}, | ||||
| 	{name:'Colorless Power/Toughness', src:'/img/frames/m15/regular/m15PTC.png', bounds:bounds}, | ||||
| 	{name:'Vehicle Power/Toughness', src:'/img/frames/m15/regular/m15PTV.png', bounds:bounds}, | ||||
|  | ||||
| 	{name:'White Land Frame', src:'/img/frames/m15/regular/new/lw.png', masks:masks}, | ||||
| 	{name:'Blue Land Frame', src:'/img/frames/m15/regular/new/lu.png', masks:masks}, | ||||
| 	{name:'Black Land Frame', src:'/img/frames/m15/regular/new/lb.png', masks:masks}, | ||||
| 	{name:'Red Land Frame', src:'/img/frames/m15/regular/new/lr.png', masks:masks}, | ||||
| 	{name:'Green Land Frame', src:'/img/frames/m15/regular/new/lg.png', masks:masks}, | ||||
| 	{name:'Multicolored Land Frame', src:'/img/frames/m15/regular/new/lm.png', masks:masks}, | ||||
| ]; | ||||
| //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([2010,2814,0,0]); | ||||
| 	//sets card version | ||||
| 	card.version = 'm15Regular'; | ||||
| 	//art bounds | ||||
| 	card.artBounds = {x:0.0767, y:0.1129, width:0.8476, height:0.4429}; | ||||
| 	autoFitArt(); | ||||
| 	//set symbol bounds | ||||
| 	card.setSymbolBounds = {x:1862/2010, y:0.5910, width:0.12, height:0.0410, vertical:'center', horizontal: 'right'}; | ||||
| 	resetSetSymbol(); | ||||
| 	//watermark bounds | ||||
| 	card.watermarkBounds = {x:0.5, y:0.7762, width:0.75, height:0.2305}; | ||||
| 	resetWatermark(); | ||||
| 	//text | ||||
| 	loadTextOptions({ | ||||
| 		mana: {name:'Mana Cost', text:'', y:176/2814, width:1864/2010, height:71/2100, oneLine:true, size:70.5/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0}, | ||||
| 		title: {name:'Title', text:'', x:168/2010, y:145/2814, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0381}, | ||||
| 		type: {name:'Type', text:'', x:168/2010, y:1588/2814, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324}, | ||||
| 		rules: {name:'Rules Text', text:'', x:0.086, y:1780/2814, width:0.828, height:0.2875, size:0.0362}, | ||||
| 		pt: {name:'Power/Toughness', text:'', x:0.7928, y:0.902, width:0.1367, height:0.0372, size:0.0372, font:'belerenbsc', oneLine:true, align:'center'} | ||||
| 	}); | ||||
| } | ||||
| //loads available frames | ||||
| loadFramePack(); | ||||
| //Only for the main version as the webpage loads: | ||||
| if (!card.text) { | ||||
| 	document.querySelector('#loadFrameVersion').click(); | ||||
| } | ||||
							
								
								
									
										56
									
								
								js/frames/packSnowNew.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										56
									
								
								js/frames/packSnowNew.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,56 @@ | ||||
| //Create objects for common properties across available frames | ||||
| var masks = [{src:'/img/frames/m15/regular/new/pinline.png', name:'Pinline'}, {src:'/img/frames/m15/regular/new/title.png', name:'Title'}, {src:'/img/frames/m15/regular/new/type.png', name:'Type'}, {src:'/img/frames/m15/regular/new/rules.png', name:'Rules'}, {src:'/img/frames/m15/regular/new/frame.png', name:'Frame'}, {src:'/img/frames/m15/regular/new/border.png', name:'Border'}]; | ||||
| var bounds = {x:0.3267, y:0.6491, width:0.3474, height:0.2496}; | ||||
| //defines available frames | ||||
| availableFrames = [ | ||||
| 	{name:'White Frame', src:'/img/frames/m15/regular/new/snow/w.png', masks:masks}, | ||||
| 	{name:'Blue Frame', src:'/img/frames/m15/regular/new/snow/u.png', masks:masks}, | ||||
| 	{name:'Black Frame', src:'/img/frames/m15/regular/new/snow/b.png', masks:masks}, | ||||
| 	{name:'Red Frame', src:'/img/frames/m15/regular/new/snow/r.png', masks:masks}, | ||||
| 	{name:'Green Frame', src:'/img/frames/m15/regular/new/snow/g.png', masks:masks}, | ||||
| 	{name:'Multicolored Frame', src:'/img/frames/m15/regular/new/snow/m.png', masks:masks}, | ||||
| 	{name:'Artifact Frame', src:'/img/frames/m15/regular/new/snow/a.png', masks:masks}, | ||||
| 	{name:'Land Frame', src:'/img/frames/m15/regular/new/snow/l.png', masks:masks}, | ||||
|  | ||||
| 	{name:'White Land Frame', src:'/img/frames/m15/regular/new/snow/lw.png', masks:masks}, | ||||
| 	{name:'Blue Land Frame', src:'/img/frames/m15/regular/new/snow/lu.png', masks:masks}, | ||||
| 	{name:'Black Land Frame', src:'/img/frames/m15/regular/new/snow/lb.png', masks:masks}, | ||||
| 	{name:'Red Land Frame', src:'/img/frames/m15/regular/new/snow/lr.png', masks:masks}, | ||||
| 	{name:'Green Land Frame', src:'/img/frames/m15/regular/new/snow/lg.png', masks:masks}, | ||||
| 	{name:'Multicolored Land Frame', src:'/img/frames/m15/regular/new/snow/lm.png', masks:masks}, | ||||
|  | ||||
| 	{name:'Green Land Frame', src:'/img/frames/m15/snow/gl.png', masks:masks}, | ||||
| 	{name:'Plains Watermark', src:'/img/frames/snow/watermarks/w.png', bounds:bounds}, | ||||
| 	{name:'Island Watermark', src:'/img/frames/snow/watermarks/u.png', bounds:bounds}, | ||||
| 	{name:'Swamp Watermark', src:'/img/frames/snow/watermarks/b.png', bounds:bounds}, | ||||
| 	{name:'Mountain Watermark', src:'/img/frames/snow/watermarks/r.png', bounds:bounds}, | ||||
| 	{name:'Forest Watermark', src:'/img/frames/snow/watermarks/g.png', bounds:bounds}, | ||||
| ]; | ||||
| //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 = 'snowRegular'; | ||||
| 	//art bounds | ||||
| 	card.artBounds = {x:0.0767, y:0.1129, width:0.8476, height:0.4429}; | ||||
| 	autoFitArt(); | ||||
| 	//set symbol bounds | ||||
| 	card.setSymbolBounds = {x:1862/2010, y:0.5910, width:0.12, height:0.0410, vertical:'center', horizontal: 'right'}; | ||||
| 	resetSetSymbol(); | ||||
| 	//watermark bounds | ||||
| 	card.watermarkBounds = {x:0.5, y:0.7762, width:0.75, height:0.2305}; | ||||
| 	resetWatermark(); | ||||
| 	//text | ||||
| 	loadTextOptions({ | ||||
| 		mana: {name:'Mana Cost', text:'', y:176/2814, width:1864/2010, height:71/2100, oneLine:true, size:70.5/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0}, | ||||
| 		title: {name:'Title', text:'', x:168/2010, y:145/2814, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0381}, | ||||
| 		type: {name:'Type', text:'', x:168/2010, y:1588/2814, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324}, | ||||
| 		rules: {name:'Rules Text', text:'', x:0.086, y:1780/2814, width:0.828, height:0.2875, size:0.0362}, | ||||
| 		pt: {name:'Power/Toughness', text:'', x:0.7928, y:0.902, width:0.1367, height:0.0372, size:0.0372, font:'belerenbsc', oneLine:true, align:'center'} | ||||
| 	}); | ||||
| } | ||||
| //loads available frames | ||||
| loadFramePack(); | ||||
							
								
								
									
										22
									
								
								js/frames/packUBLegendCrownsNew.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								js/frames/packUBLegendCrownsNew.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| //Create objects for common properties across available frames | ||||
| var masks = [{src:'/img/frames/m15/crowns/new/maskCrown.png', name:'Crown Without Pinlines'}, {src:'/img/frames/m15/crowns/new/maskCrownPinline.png', name:'Crown With Pinlines'}]; | ||||
| var bounds = {x:44/2010, y:53/2814, width:1922/2010, height:493/2814}; | ||||
| //defines available frames | ||||
| availableFrames = [ | ||||
| 	{name:'White Legend Crown', src:'/img/frames/m15/ub/crowns/new/w.png', masks:masks, bounds:bounds, complementary:9}, | ||||
| 	{name:'Blue Legend Crown', src:'/img/frames/m15/ub/crowns/new/u.png', masks:masks, bounds:bounds, complementary:9}, | ||||
| 	{name:'Black Legend Crown', src:'/img/frames/m15/ub/crowns/new/b.png', masks:masks, bounds:bounds, complementary:9}, | ||||
| 	{name:'Red Legend Crown', src:'/img/frames/m15/ub/crowns/new/r.png', masks:masks, bounds:bounds, complementary:9}, | ||||
| 	{name:'Green Legend Crown', src:'/img/frames/m15/ub/crowns/new/g.png', masks:masks, bounds:bounds, complementary:9}, | ||||
| 	{name:'Multicolored Legend Crown', src:'/img/frames/m15/ub/crowns/new/m.png', masks:masks, bounds:bounds, complementary:9}, | ||||
| 	{name:'Artifact Legend Crown', src:'/img/frames/m15/ub/crowns/new/a.png', masks:masks, bounds:bounds, complementary:9}, | ||||
| 	{name:'Land Legend Crown', src:'/img/frames/m15/ub/crowns/new/l.png', masks:masks, bounds:bounds, complementary:9}, | ||||
| 	{name:'Colorless Legend Crown', src:'/img/frames/m15/crowns/new/c.png', masks:masks, bounds:bounds, complementary:9}, | ||||
| 	{name:'Legend Crown Border Cover', src:'/img/black.png', bounds:{x:0, y:0, width:1, height:137/2814}} | ||||
| ]; | ||||
| //disables/enables the "Load Frame Version" button | ||||
| document.querySelector('#loadFrameVersion').disabled = true; | ||||
| //defines process for loading this version, if applicable | ||||
| document.querySelector('#loadFrameVersion').onclick = null; | ||||
| //loads available frames | ||||
| loadFramePack(); | ||||
							
								
								
									
										72
									
								
								js/frames/packUBNew.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										72
									
								
								js/frames/packUBNew.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,72 @@ | ||||
| //Create objects for common properties across available frames | ||||
| var masks = [{src:'/img/frames/m15/regular/new/pinline.png', name:'Pinline'}, {src:'/img/frames/m15/regular/new/title.png', name:'Title'}, {src:'/img/frames/m15/regular/new/type.png', name:'Type'}, {src:'/img/frames/m15/regular/new/rules.png', name:'Rules'}, {src:'/img/frames/m15/regular/new/frame.png', name:'Frame'}, {src:'/img/frames/m15/regular/new/border.png', name:'Border'}]; | ||||
| var bounds = {x:0.7573, y:0.8848, width:0.188, height:0.0733}; | ||||
| var bounds2 = {x:857/2015, y:2534/2814, width:299/2015, height:137/2814}; | ||||
| //defines available frames | ||||
| availableFrames = [ | ||||
| 	{name:'White Frame', src:'/img/frames/m15/regular/new/ub/w.png', masks:masks}, | ||||
| 	{name:'Blue Frame', src:'/img/frames/m15/regular/new/ub/u.png', masks:masks}, | ||||
| 	{name:'Black Frame', src:'/img/frames/m15/regular/new/ub/b.png', masks:masks}, | ||||
| 	{name:'Red Frame', src:'/img/frames/m15/regular/new/ub/r.png', masks:masks}, | ||||
| 	{name:'Green Frame', src:'/img/frames/m15/regular/new/ub/g.png', masks:masks}, | ||||
| 	{name:'Multicolored Frame', src:'/img/frames/m15/regular/new/ub/m.png', masks:masks}, | ||||
| 	{name:'Artifact Frame', src:'/img/frames/m15/regular/new/ub/a.png', masks:masks}, | ||||
| 	{name:'Land Frame', src:'/img/frames/m15/regular/new/ub/l.png', masks:masks}, | ||||
| 	{name:'Vehicle Frame', src:'/img/frames/m15/regular/new/ub/v.png', masks:masks}, | ||||
| 	{name:'Colorless Frame', src:'/img/frames/m15/regular/new/ub/c.png', masks:masks}, | ||||
|  | ||||
| 	{name:'White Land Frame', src:'/img/frames/m15/regular/new/ub/lw.png', masks:masks}, | ||||
| 	{name:'Blue Land Frame', src:'/img/frames/m15/regular/new/ub/lu.png', masks:masks}, | ||||
| 	{name:'Black Land Frame', src:'/img/frames/m15/regular/new/ub/lb.png', masks:masks}, | ||||
| 	{name:'Red Land Frame', src:'/img/frames/m15/regular/new/ub/lr.png', masks:masks}, | ||||
| 	{name:'Green Land Frame', src:'/img/frames/m15/regular/new/ub/lg.png', masks:masks}, | ||||
| 	{name:'Multicolored Land Frame', src:'/img/frames/m15/regular/new/ub/lm.png', masks:masks}, | ||||
|  | ||||
| 	{name:'White Power/Toughness', src:'/img/frames/m15/ub/pt/w.png', bounds:bounds}, | ||||
| 	{name:'Blue Power/Toughness', src:'/img/frames/m15/ub/pt/u.png', bounds:bounds}, | ||||
| 	{name:'Black Power/Toughness', src:'/img/frames/m15/ub/pt/b.png', bounds:bounds}, | ||||
| 	{name:'Red Power/Toughness', src:'/img/frames/m15/ub/pt/r.png', bounds:bounds}, | ||||
| 	{name:'Green Power/Toughness', src:'/img/frames/m15/ub/pt/g.png', bounds:bounds}, | ||||
| 	{name:'Multicolored Power/Toughness', src:'/img/frames/m15/ub/pt/m.png', bounds:bounds}, | ||||
| 	{name:'Artifact Power/Toughness', src:'/img/frames/m15/ub/pt/a.png', bounds:bounds}, | ||||
| 	{name:'Colorless Power/Toughness', src:'/img/frames/m15/ub/pt/c.png', bounds:bounds}, | ||||
| 	{name:'Vehicle Power/Toughness', src:'/img/frames/m15/ub/pt/v.png', bounds:bounds}, | ||||
|  | ||||
| 	{name:'White Holo Stamp', src:'/img/frames/m15/regular/new/ub/stamp/w.png', bounds:bounds2}, | ||||
| 	{name:'Blue Holo Stamp', src:'/img/frames/m15/regular/new/ub/stamp/u.png', bounds:bounds2}, | ||||
| 	{name:'Black Holo Stamp', src:'/img/frames/m15/regular/new/ub/stamp/b.png', bounds:bounds2}, | ||||
| 	{name:'Red Holo Stamp', src:'/img/frames/m15/regular/new/ub/stamp/r.png', bounds:bounds2}, | ||||
| 	{name:'Green Holo Stamp', src:'/img/frames/m15/regular/new/ub/stamp/g.png', bounds:bounds2}, | ||||
| 	{name:'Multicolored Holo Stamp', src:'/img/frames/m15/regular/new/ub/stamp/m.png', bounds:bounds2}, | ||||
| 	{name:'Artifact Holo Stamp', src:'/img/frames/m15/regular/new/ub/stamp/a.png', bounds:bounds2}, | ||||
| 	{name:'Land Holo Stamp', src:'/img/frames/m15/regular/new/ub/stamp/l.png', bounds:bounds2}, | ||||
| 	{name:'Gray Holo Stamp', src:'/img/frames/m15/regular/new/ub/stamp/gray.png', bounds:bounds2} | ||||
| ]; | ||||
| //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 = 'ubRegular'; | ||||
| 	//art bounds | ||||
| 	card.artBounds = {x:0.0767, y:0.1129, width:0.8476, height:0.4429}; | ||||
| 	autoFitArt(); | ||||
| 	//set symbol bounds | ||||
| 	card.setSymbolBounds = {x:1862/2010, y:0.5910, width:0.12, height:0.0410, vertical:'center', horizontal: 'right'}; | ||||
| 	resetSetSymbol(); | ||||
| 	//watermark bounds | ||||
| 	card.watermarkBounds = {x:0.5, y:0.7762, width:0.75, height:0.2305}; | ||||
| 	resetWatermark(); | ||||
| 	//text | ||||
| 	loadTextOptions({ | ||||
| 		mana: {name:'Mana Cost', text:'', y:176/2814, width:1864/2010, height:71/2100, oneLine:true, size:70.5/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0}, | ||||
| 		title: {name:'Title', text:'', x:168/2010, y:145/2814, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0381}, | ||||
| 		type: {name:'Type', text:'', x:168/2010, y:1588/2814, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324}, | ||||
| 		rules: {name:'Rules Text', text:'', x:0.086, y:1780/2814, width:0.828, height:0.2875, size:0.0362}, | ||||
| 		pt: {name:'Power/Toughness', text:'', x:0.7928, y:0.902, width:0.1367, height:0.0372, size:0.0372, font:'belerenbsc', oneLine:true, align:'center'} | ||||
| 	}); | ||||
| } | ||||
| //loads available frames | ||||
| loadFramePack(); | ||||
		Reference in New Issue
	
	Block a user
	 Josh birnholz
					Josh birnholz