planeswalker upgrayedd
| After Width: | Height: | Size: 65 KiB | 
| After Width: | Height: | Size: 61 KiB | 
| After Width: | Height: | Size: 60 KiB | 
| After Width: | Height: | Size: 65 KiB | 
| After Width: | Height: | Size: 65 KiB | 
| After Width: | Height: | Size: 63 KiB | 
| After Width: | Height: | Size: 61 KiB | 
| After Width: | Height: | Size: 65 KiB | 
| @@ -1,11 +0,0 @@ | |||||||
| displayName,imagePath,maskOptions,framePickerOptions |  | ||||||
| White,planeswalker/m15WPlaneswalker.png,Full-0-0-744-1039;Title Planeswalker-0-0-744-1039;Type Planeswalker-0-0-744-1039;Pinline Planeswalker-0-0-744-1039;Frame Planeswalker-0-0-744-1039;Loyalty Planeswalker-0-0-744-1039,Planeswalker |  | ||||||
| Blue,planeswalker/m15UPlaneswalker.png,Full-0-0-744-1039;Title Planeswalker-0-0-744-1039;Type Planeswalker-0-0-744-1039;Pinline Planeswalker-0-0-744-1039;Frame Planeswalker-0-0-744-1039;Loyalty Planeswalker-0-0-744-1039,Planeswalker |  | ||||||
| Black,planeswalker/m15BPlaneswalker.png,Full-0-0-744-1039;Title Planeswalker-0-0-744-1039;Type Planeswalker-0-0-744-1039;Pinline Planeswalker-0-0-744-1039;Frame Planeswalker-0-0-744-1039;Loyalty Planeswalker-0-0-744-1039,Planeswalker |  | ||||||
| Red,planeswalker/m15RPlaneswalker.png,Full-0-0-744-1039;Title Planeswalker-0-0-744-1039;Type Planeswalker-0-0-744-1039;Pinline Planeswalker-0-0-744-1039;Frame Planeswalker-0-0-744-1039;Loyalty Planeswalker-0-0-744-1039,Planeswalker |  | ||||||
| Green,planeswalker/m15GPlaneswalker.png,Full-0-0-744-1039;Title Planeswalker-0-0-744-1039;Type Planeswalker-0-0-744-1039;Pinline Planeswalker-0-0-744-1039;Frame Planeswalker-0-0-744-1039;Loyalty Planeswalker-0-0-744-1039,Planeswalker |  | ||||||
| Multicolored,planeswalker/m15MPlaneswalker.png,Full-0-0-744-1039;Title Planeswalker-0-0-744-1039;Type Planeswalker-0-0-744-1039;Pinline Planeswalker-0-0-744-1039;Frame Planeswalker-0-0-744-1039;Loyalty Planeswalker-0-0-744-1039,Planeswalker |  | ||||||
| Artifact,planeswalker/m15APlaneswalker.png,Full-0-0-744-1039;Title Planeswalker-0-0-744-1039;Type Planeswalker-0-0-744-1039;Pinline Planeswalker-0-0-744-1039;Frame Planeswalker-0-0-744-1039;Loyalty Planeswalker-0-0-744-1039,Planeswalker |  | ||||||
| Colorless,planeswalker/m15CPlaneswalker.png,Full-0-0-744-1039;Title Planeswalker-0-0-744-1039;Type Planeswalker-0-0-744-1039;Pinline Planeswalker-0-0-744-1039;Frame Planeswalker-0-0-744-1039;Loyalty Planeswalker-0-0-744-1039,Planeswalker |  | ||||||
| Dark Twins,planeswalker/darkTwins.png,Full-0-0-744-1039;Title Planeswalker-0-0-744-1039;Type Planeswalker-0-0-744-1039,Planeswalker |  | ||||||
| Border,masks/BorderPlaneswalker.png,Full-0-0-744-1039;Border Planeswalker-0-0-744-1039,Planeswalker |  | ||||||
| 
 | 
| Before Width: | Height: | Size: 6.5 KiB | 
| Before Width: | Height: | Size: 172 KiB After Width: | Height: | Size: 342 KiB | 
| Before Width: | Height: | Size: 190 KiB After Width: | Height: | Size: 467 KiB | 
| Before Width: | Height: | Size: 179 KiB | 
| Before Width: | Height: | Size: 197 KiB After Width: | Height: | Size: 494 KiB | 
| Before Width: | Height: | Size: 192 KiB After Width: | Height: | Size: 440 KiB | 
| Before Width: | Height: | Size: 199 KiB After Width: | Height: | Size: 468 KiB | 
| Before Width: | Height: | Size: 183 KiB After Width: | Height: | Size: 402 KiB | 
| Before Width: | Height: | Size: 187 KiB After Width: | Height: | Size: 402 KiB | 
| Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 23 KiB | 
| Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 29 KiB | 
| Before Width: | Height: | Size: 6.8 KiB | 
| Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 42 KiB | 
| Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 19 KiB | 
| Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 18 KiB | 
| Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 18 KiB | 
| Before Width: | Height: | Size: 29 KiB | 
| @@ -162,7 +162,7 @@ class cardPlaceholder { | |||||||
| 	} | 	} | ||||||
| 	draw() { | 	draw() { | ||||||
| 		if (this.whatToDraw == textCanvas) { | 		if (this.whatToDraw == textCanvas) { | ||||||
| 			if (currentVersion == 'm15Planeswalker/version') { | 			if (currentVersion.includes('m15Planeswalker/')) { | ||||||
| 				mainContext.drawImage(planeswalkerCanvas, 0, 0, cardWidth, cardHeight) | 				mainContext.drawImage(planeswalkerCanvas, 0, 0, cardWidth, cardHeight) | ||||||
| 			} | 			} | ||||||
| 			mainContext.globalAlpha = parseInt(document.getElementById('inputWatermarkOpacity').value) / 100 | 			mainContext.globalAlpha = parseInt(document.getElementById('inputWatermarkOpacity').value) / 100 | ||||||
| @@ -425,7 +425,12 @@ function cardMasterElementEdited() { | |||||||
| } | } | ||||||
|  |  | ||||||
| function getFloat(input) { | function getFloat(input) { | ||||||
| 	return parseFloat(document.getElementById(input).value) | 	var getFloatResponse = parseFloat(document.getElementById(input).value) | ||||||
|  | 	if (getFloatResponse) { | ||||||
|  | 		return getFloatResponse | ||||||
|  | 	} else { | ||||||
|  | 		return 0 | ||||||
|  | 	} | ||||||
| } | } | ||||||
|  |  | ||||||
| function loadTextOptions(textArray = []) { | function loadTextOptions(textArray = []) { | ||||||
| @@ -877,7 +882,7 @@ function inputCardNameNumberTextImport(index) { | |||||||
|     } else { |     } else { | ||||||
|         importText('', 'Power/Toughness') |         importText('', 'Power/Toughness') | ||||||
|     } |     } | ||||||
|     if (importCardTextResponse.includes('"loyalty":"') && currentVersion == 'm15Planeswalker/version') { |     if (importCardTextResponse.includes('"loyalty":"') && currentVersion.includes('m15Planeswalker/')) { | ||||||
|         importText(beforeAfter(importCardTextResponse, '"loyalty":"', '",'), 'Loyalty') |         importText(beforeAfter(importCardTextResponse, '"loyalty":"', '",'), 'Loyalty') | ||||||
|         var abilityList = beforeAfter(importCardTextResponse, '"oracle_text":"', '",').replace(/ \\"/g, ' \u201C').replace(/\\"/g, '\u201D').split(/\\n/g) |         var abilityList = beforeAfter(importCardTextResponse, '"oracle_text":"', '",').replace(/ \\"/g, ' \u201C').replace(/\\"/g, '\u201D').split(/\\n/g) | ||||||
|         for (var i = 0; i < abilityList.length; i++) { |         for (var i = 0; i < abilityList.length; i++) { | ||||||
|   | |||||||
							
								
								
									
										43
									
								
								data/scripts/versions/m15Planeswalker/nickname.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,43 @@ | |||||||
|  | if (!loadedVersions.includes('m15Planeswalker/nickname')) { | ||||||
|  | 	loadedVersions.push('m15Planeswalker/nickname') | ||||||
|  | 	loadFrameImages([ | ||||||
|  |         ['White Frame', '/data/images/cardImages/planeswalker/nickname/planeswalkerNicknameFrameW.png', 0, 0, 1, 1, ['Full', 'Pinline (planeswalker)', 'Title (planeswalker)', 'Type (planeswalker)', 'Border (planeswalker)']], | ||||||
|  |         ['Blue Frame', '/data/images/cardImages/planeswalker/nickname/planeswalkerNicknameFrameU.png', 0, 0, 1, 1, ['Full', 'Pinline (planeswalker)', 'Title (planeswalker)', 'Type (planeswalker)', 'Border (planeswalker)']], | ||||||
|  |         ['Black Frame', '/data/images/cardImages/planeswalker/nickname/planeswalkerNicknameFrameB.png', 0, 0, 1, 1, ['Full', 'Pinline (planeswalker)', 'Title (planeswalker)', 'Type (planeswalker)', 'Border (planeswalker)']], | ||||||
|  |         ['Red Frame', '/data/images/cardImages/planeswalker/nickname/planeswalkerNicknameFrameR.png', 0, 0, 1, 1, ['Full', 'Pinline (planeswalker)', 'Title (planeswalker)', 'Type (planeswalker)', 'Border (planeswalker)']], | ||||||
|  |         ['Green Frame', '/data/images/cardImages/planeswalker/nickname/planeswalkerNicknameFrameG.png', 0, 0, 1, 1, ['Full', 'Pinline (planeswalker)', 'Title (planeswalker)', 'Type (planeswalker)', 'Border (planeswalker)']], | ||||||
|  |         ['Multicolored Frame', '/data/images/cardImages/planeswalker/nickname/planeswalkerNicknameFrameM.png', 0, 0, 1, 1, ['Full', 'Pinline (planeswalker)', 'Title (planeswalker)', 'Type (planeswalker)', 'Border (planeswalker)']], | ||||||
|  |         ['Artifact Frame', '/data/images/cardImages/planeswalker/nickname/planeswalkerNicknameFrameA.png', 0, 0, 1, 1, ['Full', 'Pinline (planeswalker)', 'Title (planeswalker)', 'Type (planeswalker)', 'Border (planeswalker)']], | ||||||
|  |         ['Land Frame', '/data/images/cardImages/planeswalker/nickname/planeswalkerNicknameFrameL.png', 0, 0, 1, 1, ['Full', 'Pinline (planeswalker)', 'Title (planeswalker)', 'Type (planeswalker)', 'Border (planeswalker)']], | ||||||
|  |         ['White Border', '/data/images/cardImages/white.png', 0, 0, 1, 1, ['Alternative Border', 'Border (planeswalker)']], | ||||||
|  |         ['Silver Border', '/data/images/cardImages/silver.png', 0, 0, 1, 1, ['Alternative Border', 'Border (planeswalker)']], | ||||||
|  |         ['Gold Border', '/data/images/cardImages/gold.png', 0, 0, 1, 1, ['Alternative Border', 'Border (planeswalker)']] | ||||||
|  |     ], 'frameClassPlaneswalkerNickname') | ||||||
|  | } | ||||||
|  |  | ||||||
|  | if (currentVersion != 'm15Planeswalker/nickname') { | ||||||
|  |     currentVersion = 'm15Planeswalker/nickname' | ||||||
|  |  | ||||||
|  |     artX = 0 | ||||||
|  |     artY = 0 | ||||||
|  |     artWidth = 1 | ||||||
|  |     artHeight = scaleY(1921 / 2100) | ||||||
|  |  | ||||||
|  |     loadTextOptions([ | ||||||
|  |     new cardText('Card Nickname', '', 130/1500, 157/2100, 1248/1500, 80/2100, 'belerenb', 80/2100, 'white', ['oneLine=true', 'shadow=3']), | ||||||
|  |     new cardText('Card Title', '', 210/1500, 252/2100, 1080/1500, 48/2100, 'belerenb', 48/2100, 'white', ['oneLine=true', 'textAlign="center"', 'fontStyle="italic "', 'shadow=3']), | ||||||
|  |     new cardText('Card Type', '', 130/1500, 1258/2100, 1248/1500, 68/2100, 'belerenb', 68/2100, 'white', ['oneLine=true', 'shadow=3']), | ||||||
|  |     new cardText('Ability 1', '', 270/1500, 1153/2100, 1120/1500, 624/2100, 'mplantin', 74/2100, 'white', ['shadow=3']), | ||||||
|  |     new cardText('Ability 2', '', 270/1500, 1153/2100, 1120/1500, 624/2100, 'mplantin', 74/2100, 'white', ['shadow=3']), | ||||||
|  |     new cardText('Ability 3', '', 270/1500, 1153/2100, 1120/1500, 624/2100, 'mplantin', 74/2100, 'white', ['shadow=3']), | ||||||
|  |     new cardText('Ability 4', '', 270/1500, 1153/2100, 1120/1500, 624/2100, 'mplantin', 74/2100, 'white', ['shadow=3']), | ||||||
|  |     new cardText('Loyalty', '', 1209/1500, 1954/2100, 210/1500, 78/2100, 'belerenbsc', 78/2100, 'white', ['oneLine=true,textAlign="center"', 'shadow=3']) | ||||||
|  |     ]) | ||||||
|  |  | ||||||
|  |     document.getElementById('inputColorInvert').checked = true | ||||||
|  |     invertPlaneswalkerColors() | ||||||
|  | } | ||||||
|  |  | ||||||
|  | planeswalkerTextBoxX = scaleX(179/1500), planeswalkerTextBoxWidth = scaleX(1205/1500), planeswalkerTextBoxY = scaleY(1314/2100), planeswalkerTextBoxHeight = scaleY(607/2100) | ||||||
|  |  | ||||||
|  | hideFrameImages('frameClassPlaneswalkerNickname') | ||||||
| @@ -8,13 +8,12 @@ if (!loadedVersions.includes('m15Planeswalker/regular')) { | |||||||
|         ['Green Frame', '/data/images/cardImages/planeswalker/planeswalkerFrameG.png', 0, 0, 1, 1, ['Full', 'Pinline (planeswalker)', 'Title (planeswalker)', 'Type (planeswalker)', 'Frame (planeswalker)', 'Border (planeswalker)']], |         ['Green Frame', '/data/images/cardImages/planeswalker/planeswalkerFrameG.png', 0, 0, 1, 1, ['Full', 'Pinline (planeswalker)', 'Title (planeswalker)', 'Type (planeswalker)', 'Frame (planeswalker)', 'Border (planeswalker)']], | ||||||
|         ['Multicolored Frame', '/data/images/cardImages/planeswalker/planeswalkerFrameM.png', 0, 0, 1, 1, ['Full', 'Pinline (planeswalker)', 'Title (planeswalker)', 'Type (planeswalker)', 'Frame (planeswalker)', 'Border (planeswalker)']], |         ['Multicolored Frame', '/data/images/cardImages/planeswalker/planeswalkerFrameM.png', 0, 0, 1, 1, ['Full', 'Pinline (planeswalker)', 'Title (planeswalker)', 'Type (planeswalker)', 'Frame (planeswalker)', 'Border (planeswalker)']], | ||||||
|         ['Artifact Frame', '/data/images/cardImages/planeswalker/planeswalkerFrameA.png', 0, 0, 1, 1, ['Full', 'Pinline (planeswalker)', 'Title (planeswalker)', 'Type (planeswalker)', 'Frame (planeswalker)', 'Border (planeswalker)']], |         ['Artifact Frame', '/data/images/cardImages/planeswalker/planeswalkerFrameA.png', 0, 0, 1, 1, ['Full', 'Pinline (planeswalker)', 'Title (planeswalker)', 'Type (planeswalker)', 'Frame (planeswalker)', 'Border (planeswalker)']], | ||||||
|         ['Colorless Frame', '/data/images/cardImages/planeswalker/planeswalkerFrameC.png', 0, 0, 1, 1, ['Full', 'Pinline (planeswalker)', 'Title (planeswalker)', 'Type (planeswalker)', 'Frame (planeswalker)', 'Border (planeswalker)']], |         ['White Border', '/data/images/cardImages/white.png', 0, 0, 1, 1, ['Alternative Border', 'Border (planeswalker)']], | ||||||
|         ['Dark Twins', '/data/images/cardImages/planeswalker/planeswalkerDarkTwins.png', 0, 0, 1, 1, ['Full', 'Pinline (planeswalker)', 'Title (planeswalker)', 'Type (planeswalker)', 'Frame (planeswalker)', 'Border (planeswalker)']], |         ['Silver Border', '/data/images/cardImages/silver.png', 0, 0, 1, 1, ['Alternative Border', 'Border (planeswalker)']], | ||||||
|         ['Holo Stamp', '/data/images/cardImages/stamp.png', 338/744, 951/1039, 70/744, 36/1039, ['Full', 'Pinline (planeswalker)', 'Title (planeswalker)', 'Type (planeswalker)', 'Frame (planeswalker)', 'Border (planeswalker)']], |         ['Gold Border', '/data/images/cardImages/gold.png', 0, 0, 1, 1, ['Alternative Border', 'Border (planeswalker)']] | ||||||
|         ['White Border', '/data/images/cardImages/white.png', 0, 0, 1, 1, ['Alternative Border', 'Alternative Border (Crown)', 'Border (m15)']], |  | ||||||
|         ['Silver Border', '/data/images/cardImages/silver.png', 0, 0, 1, 1, ['Alternative Border', 'Alternative Border (Crown)', 'Border (m15)']], |  | ||||||
|         ['Gold Border', '/data/images/cardImages/gold.png', 0, 0, 1, 1, ['Alternative Border', 'Alternative Border (Crown)', 'Border (m15)']] |  | ||||||
|     ], 'frameClassPlaneswalkerRegular') |     ], 'frameClassPlaneswalkerRegular') | ||||||
| } | } | ||||||
|  |  | ||||||
|  | planeswalkerTextBoxX = scaleX(179/1500), planeswalkerTextBoxWidth = scaleX(1205/1500), planeswalkerTextBoxY = scaleY(1314/2100), planeswalkerTextBoxHeight = scaleY(607/2100) | ||||||
|  |  | ||||||
| hideFrameImages('frameClassPlaneswalkerRegular') | hideFrameImages('frameClassPlaneswalkerRegular') | ||||||
| @@ -8,10 +8,11 @@ if (!loadedVersions.includes('m15Planeswalker/version')) { | |||||||
|     planeswalkerTab.classList.add('hidden') |     planeswalkerTab.classList.add('hidden') | ||||||
|     planeswalkerTab.id = 'planeswalkerTab' |     planeswalkerTab.id = 'planeswalkerTab' | ||||||
|     planeswalkerTab.innerHTML = ` |     planeswalkerTab.innerHTML = ` | ||||||
|             One: <input type="number" class="input number" id="inputPlaneswalker1" oninput="planeswalkerAbilities()" value="200" min="0"><input type="text" class="input text" id="inputPlaneswalker1Icon" oninput="planeswalkerAbilities()" value="+1"> |             Adjust the height (first input) and loyalty cost (second input) of each Planeswalker ability:<br> | ||||||
|             Two: <input type="number" class="input number" id="inputPlaneswalker2" oninput="planeswalkerAbilities()" value="200" min="0"><input type="text" class="input text" id="inputPlaneswalker2Icon" oninput="planeswalkerAbilities()" value="0"> |             First Ability: <input type="number" class="input number" id="inputPlaneswalker1" oninput="planeswalkerAbilities()" value="200" min="0"><input type="text" class="input text" id="inputPlaneswalker1Icon" oninput="planeswalkerAbilities()" value="+1"> | ||||||
|             Three: <input type="number" class="input number" id="inputPlaneswalker3" oninput="planeswalkerAbilities()" value="200" min="0"><input type="text" class="input text" id="inputPlaneswalker3Icon" oninput="planeswalkerAbilities()" value="-3"> |             Second Ability: <input type="number" class="input number" id="inputPlaneswalker2" oninput="planeswalkerAbilities()" value="200" min="0"><input type="text" class="input text" id="inputPlaneswalker2Icon" oninput="planeswalkerAbilities()" value="0"> | ||||||
|             Four: <input type="number" class="input number" id="inputPlaneswalker4" oninput="planeswalkerAbilities()" value="0" min="0" max="1039"><input type="text" class="input text" id="inputPlaneswalker4Icon" oninput="planeswalkerAbilities()" value="-9"><br> |             Third Ability: <input type="number" class="input number" id="inputPlaneswalker3" oninput="planeswalkerAbilities()" value="200" min="0"><input type="text" class="input text" id="inputPlaneswalker3Icon" oninput="planeswalkerAbilities()" value="-3"> | ||||||
|  |             Fourth Ability: <input type="number" class="input number" id="inputPlaneswalker4" oninput="planeswalkerAbilities()" value="0" min="0" max="1039"><input type="text" class="input text" id="inputPlaneswalker4Icon" oninput="planeswalkerAbilities()" value="-9"><br> | ||||||
|     For two-ability Planeswalkers only:<br> |     For two-ability Planeswalkers only:<br> | ||||||
|     <input type="checkbox" onchange="changePlaneswalkerAbilityLayout()" id="inputWARSpacing"> Use War of the Spark ability spacing<br> |     <input type="checkbox" onchange="changePlaneswalkerAbilityLayout()" id="inputWARSpacing"> Use War of the Spark ability spacing<br> | ||||||
|     <input type="checkbox" onchange="changePlaneswalkerAbilityLayout()" id="inputWARReverse"> Reverse War of the Spark ability spacing<br> |     <input type="checkbox" onchange="changePlaneswalkerAbilityLayout()" id="inputWARReverse"> Reverse War of the Spark ability spacing<br> | ||||||
| @@ -51,13 +52,13 @@ if (!loadedVersions.includes('m15Planeswalker/version')) { | |||||||
| if (currentVersion != 'm15Planeswalker/version') { | if (currentVersion != 'm15Planeswalker/version') { | ||||||
| 	currentVersion = 'm15Planeswalker/version' | 	currentVersion = 'm15Planeswalker/version' | ||||||
|  |  | ||||||
| 	artX = scaleX(100 / 1500) | 	artX = scaleX(105 / 1500) | ||||||
| 	artY = scaleY(190 / 2100) | 	artY = scaleY(212 / 2100) | ||||||
| 	artWidth = scaleX(1508 / 1500) | 	artWidth = scaleX(1290 / 1500) | ||||||
| 	artHeight = scaleY(1730 / 2100) | 	artHeight = scaleY(1709 / 2100) | ||||||
|  |  | ||||||
| 	manaCostXPath = '1316 - 78 * manaSymbolIndex' | 	manaCostXPath = '1316 - 78 * manaSymbolIndex' | ||||||
| 	manaCostYPath = '86' | 	manaCostYPath = '94' | ||||||
| 	manaCostDiameter = '70' | 	manaCostDiameter = '70' | ||||||
| 	manaCostShadowOffset = '[-2, 6]' | 	manaCostShadowOffset = '[-2, 6]' | ||||||
| 	manaCostDirection = 'reverse' | 	manaCostDirection = 'reverse' | ||||||
| @@ -75,13 +76,13 @@ if (currentVersion != 'm15Planeswalker/version') { | |||||||
| 	bottomInfoFunction = 'bottomInfoPlaneswalker' | 	bottomInfoFunction = 'bottomInfoPlaneswalker' | ||||||
|  |  | ||||||
| 	loadTextOptions([ | 	loadTextOptions([ | ||||||
|     new cardText('Card Title', '', 130/1500, 149/2100, 1248/1500, 80/2100, 'belerenb', 80/2100, 'black', ['oneLine=true']), |     new cardText('Card Title', '', 130/1500, 157/2100, 1248/1500, 80/2100, 'belerenb', 80/2100, 'black', ['oneLine=true']), | ||||||
|     new cardText('Card Type', '', 130/1500, 1258/2100, 1248/1500, 68/2100, 'belerenb', 68/2100, 'black', ['oneLine=true']), |     new cardText('Card Type', '', 130/1500, 1258/2100, 1248/1500, 68/2100, 'belerenb', 68/2100, 'black', ['oneLine=true']), | ||||||
|     new cardText('Ability 1', '', 270/1500, 1153/2100, 1120/1500, 624/2100, 'mplantin', 74/2100, 'black'), |     new cardText('Ability 1', '', 270/1500, 1153/2100, 1120/1500, 624/2100, 'mplantin', 74/2100, 'black'), | ||||||
|     new cardText('Ability 2', '', 270/1500, 1153/2100, 1120/1500, 624/2100, 'mplantin', 74/2100, 'black'), |     new cardText('Ability 2', '', 270/1500, 1153/2100, 1120/1500, 624/2100, 'mplantin', 74/2100, 'black'), | ||||||
|     new cardText('Ability 3', '', 270/1500, 1153/2100, 1120/1500, 624/2100, 'mplantin', 74/2100, 'black'), |     new cardText('Ability 3', '', 270/1500, 1153/2100, 1120/1500, 624/2100, 'mplantin', 74/2100, 'black'), | ||||||
|     new cardText('Ability 4', '', 270/1500, 1153/2100, 1120/1500, 624/2100, 'mplantin', 74/2100, 'black'), |     new cardText('Ability 4', '', 270/1500, 1153/2100, 1120/1500, 624/2100, 'mplantin', 74/2100, 'black'), | ||||||
|     new cardText('Loyalty', '', 1215/1500, 1954/2100, 210/1500, 78/2100, 'belerenbsc', 78/2100, 'white', ['oneLine=true,textAlign="center"']) |     new cardText('Loyalty', '', 1209/1500, 1954/2100, 210/1500, 78/2100, 'belerenbsc', 78/2100, 'white', ['oneLine=true,textAlign="center"']) | ||||||
|     ]) |     ]) | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -101,12 +102,17 @@ function bottomInfoPlaneswalker() { | |||||||
| var planeswalkerAbilityLayout = [[0], [0, scaleY(784/1050)], [0, scaleY(730/1050), scaleY(863/1050)], [0, scaleY(697/1050), scaleY(784/1050), scaleY(878/1050)], [0, scaleY(683/1050), scaleY(756/1050), scaleY(830/1050), scaleY(904/1050)]] | var planeswalkerAbilityLayout = [[0], [0, scaleY(784/1050)], [0, scaleY(730/1050), scaleY(863/1050)], [0, scaleY(697/1050), scaleY(784/1050), scaleY(878/1050)], [0, scaleY(683/1050), scaleY(756/1050), scaleY(830/1050), scaleY(904/1050)]] | ||||||
| var planeswalkerAbilityCount = 3 | var planeswalkerAbilityCount = 3 | ||||||
| var ability1Y = 0, ability2Y = 0, ability3Y = 0, ability4Y = 0, ability5Y = cardHeight | var ability1Y = 0, ability2Y = 0, ability3Y = 0, ability4Y = 0, ability5Y = cardHeight | ||||||
|  | var planeswalkerTextBoxX = scaleX(179/1500), planeswalkerTextBoxWidth = scaleX(1205/1500), planeswalkerTextBoxY = scaleY(1314/2100), planeswalkerTextBoxHeight = scaleY(607/2100) | ||||||
|  |  | ||||||
| function planeswalkerAbilities() { | function planeswalkerAbilities() { | ||||||
|     planeswalkerContext.clearRect(0, 0, cardWidth, cardHeight) |     planeswalkerContext.clearRect(0, 0, cardWidth, cardHeight) | ||||||
|     planeswalkerAbilityCount = 0 |     planeswalkerAbilityCount = 0 | ||||||
|  |     var cardTextListMod = 0 | ||||||
|  |     if (currentVersion == 'm15Planeswalker/nickname') { | ||||||
|  |         cardTextListMod = 1 | ||||||
|  |     } | ||||||
|     for (var i = 1; i < 5; i++) { |     for (var i = 1; i < 5; i++) { | ||||||
|     	cardTextList[i + 1].y = 2 |     	cardTextList[i + 1 + cardTextListMod].y = 2 | ||||||
|         if (getFloat('inputPlaneswalker' + i) != 0) { |         if (getFloat('inputPlaneswalker' + i) != 0) { | ||||||
|             planeswalkerAbilityCount += 1; |             planeswalkerAbilityCount += 1; | ||||||
|         } else { |         } else { | ||||||
| @@ -114,35 +120,30 @@ function planeswalkerAbilities() { | |||||||
|         } |         } | ||||||
|     } |     } | ||||||
|     if (planeswalkerAbilityCount > 0) { |     if (planeswalkerAbilityCount > 0) { | ||||||
|         ability1Y = scaleY(648/1050) |         ability1Y = planeswalkerTextBoxY | ||||||
|         if (planeswalkerAbilityCount > 1) { |         if (planeswalkerAbilityCount > 1) { | ||||||
|             window.ability2Y = getFloat("inputPlaneswalker1") + ability1Y |             window.ability2Y = getFloat("inputPlaneswalker1") + ability1Y | ||||||
|             if (planeswalkerAbilityCount > 2) { |             if (planeswalkerAbilityCount > 2) { | ||||||
|                 ability3Y = getFloat('inputPlaneswalker2') + ability2Y |                 ability3Y = getFloat('inputPlaneswalker2') + ability2Y | ||||||
|                 if (planeswalkerAbilityCount > 3) { |                 if (planeswalkerAbilityCount > 3) { | ||||||
|                     ability4Y = getFloat('inputPlaneswalker3') + ability3Y |                     ability4Y = getFloat('inputPlaneswalker3') + ability3Y | ||||||
|                     // planeswalkerContext.writeText(version.textList[5][1], scale(133), ability4Y + (scale(950) - ability4Y) / 2, scale(555), 0, "mplantin", scale(38), "black", "lineSpace=0.97"); |                 	cardTextList[5 + cardTextListMod].y = (ability4Y) / cardHeight + cardTextList[5 + cardTextListMod].fontSize - 10/2100 | ||||||
|                 	cardTextList[5].y = (ability4Y) / cardHeight + cardTextList[5].fontSize - 10/2100 |         			cardTextList[5 + cardTextListMod].height = getFloat('inputPlaneswalker4') / cardHeight | ||||||
|         			cardTextList[5].height = getFloat('inputPlaneswalker4') / cardHeight |  | ||||||
|                 } |                 } | ||||||
|                 // planeswalkerContext.writeText(version.textList[4][1], scale(133), ability3Y + getValue("inputPlaneswalker3") / 2, scale(555), 0, "mplantin", scale(38), "black", "lineSpace=0.97"); |             	cardTextList[4 + cardTextListMod].y = (ability3Y) / cardHeight + cardTextList[4 + cardTextListMod].fontSize - 10/2100 | ||||||
|             	cardTextList[4].y = (ability3Y) / cardHeight + cardTextList[4].fontSize - 10/2100 |         		cardTextList[4 + cardTextListMod].height = getFloat('inputPlaneswalker3') / cardHeight | ||||||
|         		cardTextList[4].height = getFloat('inputPlaneswalker3') / cardHeight |  | ||||||
|             } |             } | ||||||
|             // planeswalkerContext.writeText(version.textList[3][1], scale(133), ability2Y + getValue("inputPlaneswalker2") / 2, scale(555), 0, "mplantin", scale(38), "black", "lineSpace=0.97"); |         	cardTextList[3 + cardTextListMod].y = (ability2Y) / cardHeight + cardTextList[3 + cardTextListMod].fontSize - 10/2100 | ||||||
|         	cardTextList[3].y = (ability2Y) / cardHeight + cardTextList[3].fontSize - 10/2100 |         	cardTextList[3 + cardTextListMod].height = getFloat('inputPlaneswalker2') / cardHeight | ||||||
|         	cardTextList[3].height = getFloat('inputPlaneswalker2') / cardHeight |  | ||||||
|         } |         } | ||||||
|         // planeswalkerContext.writeText(version.textList[2][1], scale(133), ability1Y + getValue("inputPlaneswalker1") / 2, scale(555), 0, "mplantin", scale(38), "black", "lineSpace=0.97", "planeswalkerTextFunction"); |         cardTextList[2 + cardTextListMod].y = (ability1Y) / cardHeight + cardTextList[2 + cardTextListMod].fontSize - 10/2100 | ||||||
|         cardTextList[2].y = (ability1Y) / cardHeight + cardTextList[2].fontSize - 10/2100 |         cardTextList[2 + cardTextListMod].height = getFloat('inputPlaneswalker1') / cardHeight | ||||||
|         cardTextList[2].height = getFloat('inputPlaneswalker1') / cardHeight |  | ||||||
|         planeswalkerTextFunction() |         planeswalkerTextFunction() | ||||||
|     } |     } | ||||||
| } | } | ||||||
| function planeswalkerTextFunction() { | function planeswalkerTextFunction() { | ||||||
|     planeswalkerContext.globalCompositeOperation = 'destination-over' |     planeswalkerContext.globalCompositeOperation = 'destination-over' | ||||||
|     var lastAdjust = 0 |     var lastAdjust = 0 | ||||||
|     var textBoxWidth = scaleX(1210/1500) |  | ||||||
|     for (var i = 1; i < planeswalkerAbilityCount + 1; i++) { |     for (var i = 1; i < planeswalkerAbilityCount + 1; i++) { | ||||||
|         if (i == planeswalkerAbilityCount) { |         if (i == planeswalkerAbilityCount) { | ||||||
|             lastAdjust = 2 * cardHeight |             lastAdjust = 2 * cardHeight | ||||||
| @@ -150,18 +151,18 @@ function planeswalkerTextFunction() { | |||||||
|         if (i % 2 == 1) { |         if (i % 2 == 1) { | ||||||
|             planeswalkerContext.fillStyle = lightColor |             planeswalkerContext.fillStyle = lightColor | ||||||
|             planeswalkerContext.globalAlpha = 0.608 |             planeswalkerContext.globalAlpha = 0.608 | ||||||
|             planeswalkerContext.fillRect(scaleX(91/750), window['ability' + i + 'Y'] + scaleY(10/1050), textBoxWidth, window['ability' + (i + 1) + 'Y'] - window['ability' + i + 'Y'] - scaleY(20/1050) + lastAdjust) |             planeswalkerContext.fillRect(planeswalkerTextBoxX, window['ability' + i + 'Y'] + scaleY(10/1050), planeswalkerTextBoxWidth, window['ability' + (i + 1) + 'Y'] - window['ability' + i + 'Y'] - scaleY(20/1050) + lastAdjust) | ||||||
|             if (i == 1 && planeswalkerAbilityCount != 1) { |             if (i == 1 && planeswalkerAbilityCount != 1) { | ||||||
|                 planeswalkerContext.fillRect(scaleX(91/750), window['ability' + i + 'Y'], textBoxWidth, scaleY(10/1050)) |                 planeswalkerContext.fillRect(planeswalkerTextBoxX, window['ability' + i + 'Y'], planeswalkerTextBoxWidth, scaleY(10/1050)) | ||||||
|             } |             } | ||||||
|             planeswalkerContext.globalAlpha = 1 |             planeswalkerContext.globalAlpha = 1 | ||||||
|             planeswalkerContext.drawImage(planeswalkerLightToDark, scaleX(91/750), window['ability' + (i + 1) + 'Y'] - scaleY(10/1050) + lastAdjust, textBoxWidth, scaleY(20/1050)) |             planeswalkerContext.drawImage(planeswalkerLightToDark, planeswalkerTextBoxX, window['ability' + (i + 1) + 'Y'] - scaleY(10/1050) + lastAdjust, planeswalkerTextBoxWidth, scaleY(20/1050)) | ||||||
|         } else { |         } else { | ||||||
|             planeswalkerContext.fillStyle = darkColor |             planeswalkerContext.fillStyle = darkColor | ||||||
|             planeswalkerContext.globalAlpha = 0.706 |             planeswalkerContext.globalAlpha = 0.706 | ||||||
|             planeswalkerContext.fillRect(scaleX(91/750), window['ability' + i + 'Y'] + scaleY(10/1050), textBoxWidth, window['ability' + (i + 1) + 'Y'] - window['ability' + i + 'Y'] - scaleY(20/1050) + lastAdjust) |             planeswalkerContext.fillRect(planeswalkerTextBoxX, window['ability' + i + 'Y'] + scaleY(10/1050), planeswalkerTextBoxWidth, window['ability' + (i + 1) + 'Y'] - window['ability' + i + 'Y'] - scaleY(20/1050) + lastAdjust) | ||||||
|             planeswalkerContext.globalAlpha = 1 |             planeswalkerContext.globalAlpha = 1 | ||||||
|             planeswalkerContext.drawImage(planeswalkerDarkToLight, scaleX(91/750), window['ability' + (i + 1)+ 'Y'] - scaleY(10/1050) + lastAdjust, textBoxWidth, scaleY(20/1050)) |             planeswalkerContext.drawImage(planeswalkerDarkToLight, planeswalkerTextBoxX, window['ability' + (i + 1)+ 'Y'] - scaleY(10/1050) + lastAdjust, planeswalkerTextBoxWidth, scaleY(20/1050)) | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|     planeswalkerContext.globalCompositeOperation = 'destination-in' |     planeswalkerContext.globalCompositeOperation = 'destination-in' | ||||||
| @@ -212,4 +213,4 @@ function invertPlaneswalkerColors() { | |||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
| loadFramePackOptions([['regular', 'Regular']]) | loadFramePackOptions([['regular', 'Regular'], ['nickname', 'Nickname (Godzilla)']]) | ||||||
|   | |||||||
 Kyle
					Kyle