commander legends

This commit is contained in:
Kyle
2020-09-02 17:52:14 -07:00
parent 127ab70e12
commit 26ad6a60fd
22 changed files with 48 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 884 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 910 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 965 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 929 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 898 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 877 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 827 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -0,0 +1,40 @@
if (!loadedVersions.includes('m15/commanderLegends')) {
loadedVersions.push("m15/commanderLegends")
loadMaskImages([['Commander Legends Frame (m15)', '/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsMaskFrame.png'], ['Commander Legends Title (m15)', '/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsMaskTitle.png'], ['Commander Legends Type (m15)', '/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsMaskType.png'], ['Commander Legends Textbox (m15)', '/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsMaskTextbox.png']])
loadFrameImages([
['White Frame', '/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameW.png', 0, 0, 1, 1, ['Full', 'Commander Legends Frame (m15)', 'Commander Legends Title (m15)', 'Commander Legends Type (m15)', 'Commander Legends Textbox (m15)']],
['Blue Frame', '/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameU.png', 0, 0, 1, 1, ['Full', 'Commander Legends Frame (m15)', 'Commander Legends Title (m15)', 'Commander Legends Type (m15)', 'Commander Legends Textbox (m15)']],
['Black Frame', '/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameB.png', 0, 0, 1, 1, ['Full', 'Commander Legends Frame (m15)', 'Commander Legends Title (m15)', 'Commander Legends Type (m15)', 'Commander Legends Textbox (m15)']],
['Red Frame', '/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameR.png', 0, 0, 1, 1, ['Full', 'Commander Legends Frame (m15)', 'Commander Legends Title (m15)', 'Commander Legends Type (m15)', 'Commander Legends Textbox (m15)']],
['Green Frame', '/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameG.png', 0, 0, 1, 1, ['Full', 'Commander Legends Frame (m15)', 'Commander Legends Title (m15)', 'Commander Legends Type (m15)', 'Commander Legends Textbox (m15)']],
['Multicolored Frame', '/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameM.png', 0, 0, 1, 1, ['Full', 'Commander Legends Frame (m15)', 'Commander Legends Title (m15)', 'Commander Legends Type (m15)', 'Commander Legends Textbox (m15)']],
['Artifact Frame', '/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameA.png', 0, 0, 1, 1, ['Full', 'Commander Legends Frame (m15)', 'Commander Legends Title (m15)', 'Commander Legends Type (m15)', 'Commander Legends Textbox (m15)']],
['Land Frame', '/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameL.png', 0, 0, 1, 1, ['Full', 'Commander Legends Frame (m15)', 'Commander Legends Title (m15)', 'Commander Legends Type (m15)', 'Commander Legends Textbox (m15)']],
['White Power/Toughness', '/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTW.png', 1136/1500, 1858/2100, 282/1500, 154/2100, ['Full']],
['Blue Power/Toughness', '/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTU.png', 1136/1500, 1858/2100, 282/1500, 154/2100, ['Full']],
['Black Power/Toughness', '/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTB.png', 1136/1500, 1858/2100, 282/1500, 154/2100, ['Full']],
['Red Power/Toughness', '/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTR.png', 1136/1500, 1858/2100, 282/1500, 154/2100, ['Full']],
['Green Power/Toughness', '/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTG.png', 1136/1500, 1858/2100, 282/1500, 154/2100, ['Full']],
['Multicolored Power/Toughness', '/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTM.png', 1136/1500, 1858/2100, 282/1500, 154/2100, ['Full']],
['Artifact Power/Toughness', '/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTA.png', 1136/1500, 1858/2100, 282/1500, 154/2100, ['Full']],
['Land Power/Toughness', '/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTL.png', 1136/1500, 1858/2100, 282/1500, 154/2100, ['Full']]
], 'frameClassM15CommanderLegends')
}
if (currentVersion != 'm15/commanderLegends') {
currentVersion = 'm15/commanderLegends'
loadTextOptions([
new cardText('Card Title', '', 126/1500, 188/2100, 1248/1500, 80/2100, 'belerenb', 80/2100, 'white', ['oneLine=true', 'shadow=2']),
new cardText('Card Type', '', 126/1500, 1264/2100, 1248/1500, 68/2100, 'belerenb', 68/2100, 'white', ['oneLine=true', 'shadow=2']),
new cardText('Rules Text', '', 135/1500, 1370/2100, 1230/1500, 625/2100, 'mplantin', 74/2100, 'white', ['shadow=2']),
new cardText('Power/Toughness', '', 1191/1500, 1954/2100, 205/1500, 78/2100, 'belerenbsc', 78/2100, 'white', ['oneLine=true,textAlign="center"'])
])
artX = scaleX(115 / 1500)
artY = scaleY(237 / 2100)
artWidth = scaleX(1270 / 1500)
artHeight = scaleY(929 / 2100)
}
hideFrameImages('frameClassM15CommanderLegends')

View File

@@ -37,16 +37,20 @@ if (currentVersion != 'm15/version') {
]) ])
} }
loadFramePackOptions([['disabled', 'Standard'],['regular', 'Regular'], ['disabled', 'Crowns'], ['legendCrowns', 'Legend Crowns'], ['floatingCrowns', 'Floating Crowns'], ['disabled', 'Mechanic-Based'], ['companion', 'Companion'], ['nyx', 'Nyx'], ['devoid', 'Devoid'], ['disabled', 'Special'], ['boxTopper', 'Box Topper'], ['genericShowcase', 'Generic Showcase'], ['m21', 'M21 Showcase'], ['nickname', 'Nickname (Godzilla)'], ['invention', 'Kaladesh Invention'], ['darkPT', 'Dark Power/Toughness'], ['disabled', 'Custom'], ['inventionClassic', 'Simple Invention']]) loadFramePackOptions([['disabled', 'Standard'],['regular', 'Regular'], ['disabled', 'Crowns'], ['legendCrowns', 'Legend Crowns'], ['floatingCrowns', 'Floating Crowns'], ['disabled', 'Mechanic-Based'], ['companion', 'Companion'], ['nyx', 'Nyx'], ['devoid', 'Devoid'], ['disabled', 'Special'], ['commanderLegends', 'Commander Legends Showcase'], ['boxTopper', 'Box Topper'], ['genericShowcase', 'Generic Showcase'], ['m21', 'M21 Showcase'], ['nickname', 'Nickname (Godzilla)'], ['invention', 'Kaladesh Invention'], ['darkPT', 'Dark Power/Toughness'], ['disabled', 'Custom'], ['inventionClassic', 'Simple Invention']])
function bottomInfoM15() { function bottomInfoM15() {
bottomInfoContext.clearRect(0, 0, cardWidth, cardHeight) bottomInfoContext.clearRect(0, 0, cardWidth, cardHeight)
var ptBoxShift = 0 var ptBoxShift = 0
if (currentVersion == 'm15/commanderLegends') {
ptBoxShift = 36/2100
} else {
for (var i = 0; i < cardTextList.length; i++) { for (var i = 0; i < cardTextList.length; i++) {
if (cardTextList[i].name == 'Power/Toughness' && cardTextList[i].text != '') { if (cardTextList[i].name == 'Power/Toughness' && cardTextList[i].text != '') {
ptBoxShift = 36/2100 ptBoxShift = 36/2100
} }
} }
}
if (ptBoxShift == 0) { if (ptBoxShift == 0) {
Array.from(cardMaster.children).forEach(element => {if (element.children[2].innerHTML.includes('Power/Toughness')) {ptBoxShift = 36/2100}}) Array.from(cardMaster.children).forEach(element => {if (element.children[2].innerHTML.includes('Power/Toughness')) {ptBoxShift = 36/2100}})
} }