diff --git a/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameA.png b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameA.png new file mode 100644 index 00000000..3cc277f3 Binary files /dev/null and b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameA.png differ diff --git a/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameB.png b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameB.png new file mode 100644 index 00000000..6a7b4c90 Binary files /dev/null and b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameB.png differ diff --git a/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameG.png b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameG.png new file mode 100644 index 00000000..c2b2b5f8 Binary files /dev/null and b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameG.png differ diff --git a/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameL.png b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameL.png new file mode 100644 index 00000000..23cf6ce6 Binary files /dev/null and b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameL.png differ diff --git a/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameM.png b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameM.png new file mode 100644 index 00000000..940d631e Binary files /dev/null and b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameM.png differ diff --git a/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameR.png b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameR.png new file mode 100644 index 00000000..87b7c585 Binary files /dev/null and b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameR.png differ diff --git a/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameU.png b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameU.png new file mode 100644 index 00000000..f7028803 Binary files /dev/null and b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameU.png differ diff --git a/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameW.png b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameW.png new file mode 100644 index 00000000..fde1cb03 Binary files /dev/null and b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsFrameW.png differ diff --git a/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsMaskFrame.png b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsMaskFrame.png new file mode 100644 index 00000000..ff61a512 Binary files /dev/null and b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsMaskFrame.png differ diff --git a/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsMaskTextbox.png b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsMaskTextbox.png new file mode 100644 index 00000000..69282c06 Binary files /dev/null and b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsMaskTextbox.png differ diff --git a/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsMaskTitle.png b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsMaskTitle.png new file mode 100644 index 00000000..a133ce4a Binary files /dev/null and b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsMaskTitle.png differ diff --git a/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsMaskType.png b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsMaskType.png new file mode 100644 index 00000000..f88aa39e Binary files /dev/null and b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsMaskType.png differ diff --git a/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTA.png b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTA.png new file mode 100644 index 00000000..d6bbc626 Binary files /dev/null and b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTA.png differ diff --git a/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTB.png b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTB.png new file mode 100644 index 00000000..8d85581f Binary files /dev/null and b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTB.png differ diff --git a/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTG.png b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTG.png new file mode 100644 index 00000000..bd999d6b Binary files /dev/null and b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTG.png differ diff --git a/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTL.png b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTL.png new file mode 100644 index 00000000..766bb76a Binary files /dev/null and b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTL.png differ diff --git a/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTM.png b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTM.png new file mode 100644 index 00000000..f9824ee4 Binary files /dev/null and b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTM.png differ diff --git a/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTR.png b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTR.png new file mode 100644 index 00000000..f1158f95 Binary files /dev/null and b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTR.png differ diff --git a/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTU.png b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTU.png new file mode 100644 index 00000000..70dd3c50 Binary files /dev/null and b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTU.png differ diff --git a/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTW.png b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTW.png new file mode 100644 index 00000000..6447b384 Binary files /dev/null and b/data/images/cardImages/m15/commanderLegends/m15CommanderLegendsPTW.png differ diff --git a/data/scripts/versions/m15/commanderLegends.js b/data/scripts/versions/m15/commanderLegends.js new file mode 100644 index 00000000..1c0713d2 --- /dev/null +++ b/data/scripts/versions/m15/commanderLegends.js @@ -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') \ No newline at end of file diff --git a/data/scripts/versions/m15/version.js b/data/scripts/versions/m15/version.js index 1b31c377..a454996b 100644 --- a/data/scripts/versions/m15/version.js +++ b/data/scripts/versions/m15/version.js @@ -37,14 +37,18 @@ 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() { bottomInfoContext.clearRect(0, 0, cardWidth, cardHeight) var ptBoxShift = 0 - for (var i = 0; i < cardTextList.length; i++) { - if (cardTextList[i].name == 'Power/Toughness' && cardTextList[i].text != '') { - ptBoxShift = 36/2100 + if (currentVersion == 'm15/commanderLegends') { + ptBoxShift = 36/2100 + } else { + for (var i = 0; i < cardTextList.length; i++) { + if (cardTextList[i].name == 'Power/Toughness' && cardTextList[i].text != '') { + ptBoxShift = 36/2100 + } } } if (ptBoxShift == 0) {