diff --git a/data/images/m15Textless/m15TextlessFrameInvention.png b/data/images/m15Textless/m15TextlessFrameInvention.png new file mode 100644 index 00000000..ac4f91cf Binary files /dev/null and b/data/images/m15Textless/m15TextlessFrameInvention.png differ diff --git a/data/images/m15Textless/m15TextlessFrameInventionA.png b/data/images/m15Textless/m15TextlessFrameInventionA.png new file mode 100644 index 00000000..7a89764c Binary files /dev/null and b/data/images/m15Textless/m15TextlessFrameInventionA.png differ diff --git a/data/images/m15Textless/m15TextlessFrameInventionB.png b/data/images/m15Textless/m15TextlessFrameInventionB.png new file mode 100644 index 00000000..babf0b60 Binary files /dev/null and b/data/images/m15Textless/m15TextlessFrameInventionB.png differ diff --git a/data/images/m15Textless/m15TextlessFrameInventionG.png b/data/images/m15Textless/m15TextlessFrameInventionG.png new file mode 100644 index 00000000..ceda4f32 Binary files /dev/null and b/data/images/m15Textless/m15TextlessFrameInventionG.png differ diff --git a/data/images/m15Textless/m15TextlessFrameInventionM.png b/data/images/m15Textless/m15TextlessFrameInventionM.png new file mode 100644 index 00000000..607746aa Binary files /dev/null and b/data/images/m15Textless/m15TextlessFrameInventionM.png differ diff --git a/data/images/m15Textless/m15TextlessFrameInventionR.png b/data/images/m15Textless/m15TextlessFrameInventionR.png new file mode 100644 index 00000000..c4a9e649 Binary files /dev/null and b/data/images/m15Textless/m15TextlessFrameInventionR.png differ diff --git a/data/images/m15Textless/m15TextlessFrameInventionU.png b/data/images/m15Textless/m15TextlessFrameInventionU.png new file mode 100644 index 00000000..f89267bb Binary files /dev/null and b/data/images/m15Textless/m15TextlessFrameInventionU.png differ diff --git a/data/images/m15Textless/m15TextlessFrameInventionW.png b/data/images/m15Textless/m15TextlessFrameInventionW.png new file mode 100644 index 00000000..8d00229b Binary files /dev/null and b/data/images/m15Textless/m15TextlessFrameInventionW.png differ diff --git a/data/images/m15Textless/m15TextlessMaskBorder.png b/data/images/m15Textless/m15TextlessMaskBorder.png new file mode 100644 index 00000000..4ec9ba1b Binary files /dev/null and b/data/images/m15Textless/m15TextlessMaskBorder.png differ diff --git a/data/images/m15Textless/m15TextlessMaskInvention.png b/data/images/m15Textless/m15TextlessMaskInvention.png new file mode 100644 index 00000000..df725926 Binary files /dev/null and b/data/images/m15Textless/m15TextlessMaskInvention.png differ diff --git a/data/images/m15Textless/m15TextlessMaskPinline.png b/data/images/m15Textless/m15TextlessMaskPinline.png new file mode 100644 index 00000000..9d0fc193 Binary files /dev/null and b/data/images/m15Textless/m15TextlessMaskPinline.png differ diff --git a/data/images/m15Textless/m15TextlessMaskType.png b/data/images/m15Textless/m15TextlessMaskType.png new file mode 100644 index 00000000..a2d56765 Binary files /dev/null and b/data/images/m15Textless/m15TextlessMaskType.png differ diff --git a/data/scripts/versions/m15Textless/floatingCrowns.js b/data/scripts/versions/m15Textless/floatingCrowns.js new file mode 100644 index 00000000..96fbcf2b --- /dev/null +++ b/data/scripts/versions/m15Textless/floatingCrowns.js @@ -0,0 +1,16 @@ +if (!loadedVersions.includes('m15FloatingCrowns')) { + loadedVersions.push("m15FloatingCrowns") + loadFrameImages([ + ['White Floating Legend Crown', 'data/images/m15/m15CrownFloatingW.png', 46/1500, 40/2100, 1408/1500, 215/2100, ['Full']], + ['Blue Floating Legend Crown', 'data/images/m15/m15CrownFloatingU.png', 46/1500, 40/2100, 1408/1500, 215/2100, ['Full']], + ['Black Floating Legend Crown', 'data/images/m15/m15CrownFloatingB.png', 46/1500, 40/2100, 1408/1500, 215/2100, ['Full']], + ['Red Floating Legend Crown', 'data/images/m15/m15CrownFloatingR.png', 46/1500, 40/2100, 1408/1500, 215/2100, ['Full']], + ['Green Floating Legend Crown', 'data/images/m15/m15CrownFloatingG.png', 46/1500, 40/2100, 1408/1500, 215/2100, ['Full']], + ['Multicolored Floating Legend Crown', 'data/images/m15/m15CrownFloatingM.png', 46/1500, 40/2100, 1408/1500, 215/2100, ['Full']], + ['Artifact Floating Legend Crown', 'data/images/m15/m15CrownFloatingA.png', 46/1500, 40/2100, 1408/1500, 215/2100, ['Full']], + ['Land Floating Legend Crown', 'data/images/m15/m15CrownFloatingL.png', 46/1500, 40/2100, 1408/1500, 215/2100, ['Full']], + ['Legend Crown Border Cover', 'data/images/black.png', 59/1500, 58/2100, 1384/1500, 37/2100, ['Full']] + ], 'frameClassM15FloatingCrowns') +} + +hideFrameImages('frameClassM15FloatingCrowns') \ No newline at end of file diff --git a/data/scripts/versions/m15Textless/regular.js b/data/scripts/versions/m15Textless/regular.js new file mode 100644 index 00000000..b7a9730d --- /dev/null +++ b/data/scripts/versions/m15Textless/regular.js @@ -0,0 +1,23 @@ +if (!loadedVersions.includes('m15TextlessInvention')) { + loadedVersions.push('m15TextlessInvention') + loadFrameImages([ + ['Invention Frame', 'data/images/m15Textless/m15TextlessFrameInvention.png', 0, 0, 1, 1, ['Full', 'Pinline (m15 Textless)', 'Title (m15)', 'Type (m15 Textless)', 'Invention (m15 Textless)', 'Border (m15 Textless)']], + ['Invention Power/Toughness', 'data/images/invention/inventionPT.png', 1136/1500, 1858/2100, 282/1500, 154/2100, ['Full']], + ['White Invention Frame', 'data/images/m15Textless/m15TextlessFrameInventionW.png', 0, 0, 1, 1, ['Full', 'Pinline (m15 Textless)', 'Title (m15)', 'Type (m15 Textless)', 'Invention (m15 Textless)', 'Border (m15 Textless)']], + ['Blue Invention Frame', 'data/images/m15Textless/m15TextlessFrameInventionU.png', 0, 0, 1, 1, ['Full', 'Pinline (m15 Textless)', 'Title (m15)', 'Type (m15 Textless)', 'Invention (m15 Textless)', 'Border (m15 Textless)']], + ['Black Invention Frame', 'data/images/m15Textless/m15TextlessFrameInventionB.png', 0, 0, 1, 1, ['Full', 'Pinline (m15 Textless)', 'Title (m15)', 'Type (m15 Textless)', 'Invention (m15 Textless)', 'Border (m15 Textless)']], + ['Red Invention Frame', 'data/images/m15Textless/m15TextlessFrameInventionR.png', 0, 0, 1, 1, ['Full', 'Pinline (m15 Textless)', 'Title (m15)', 'Type (m15 Textless)', 'Invention (m15 Textless)', 'Border (m15 Textless)']], + ['Green Invention Frame', 'data/images/m15Textless/m15TextlessFrameInventionG.png', 0, 0, 1, 1, ['Full', 'Pinline (m15 Textless)', 'Title (m15)', 'Type (m15 Textless)', 'Invention (m15 Textless)', 'Border (m15 Textless)']], + ['Multicolored Invention Frame', 'data/images/m15Textless/m15TextlessFrameInventionM.png', 0, 0, 1, 1, ['Full', 'Pinline (m15 Textless)', 'Title (m15)', 'Type (m15 Textless)', 'Invention (m15 Textless)', 'Border (m15 Textless)']], + ['Artifact Invention Frame', 'data/images/m15Textless/m15TextlessFrameInventionA.png', 0, 0, 1, 1, ['Full', 'Pinline (m15 Textless)', 'Title (m15)', 'Type (m15 Textless)', 'Invention (m15 Textless)', 'Border (m15 Textless)']], + ['White Power/Toughness', 'data/images/m15/m15PTW.png', 1136/1500, 1858/2100, 282/1500, 154/2100, ['Full']], + ['Blue Power/Toughness', 'data/images/m15/m15PTU.png', 1136/1500, 1858/2100, 282/1500, 154/2100, ['Full']], + ['Black Power/Toughness', 'data/images/m15/m15PTB.png', 1136/1500, 1858/2100, 282/1500, 154/2100, ['Full']], + ['Red Power/Toughness', 'data/images/m15/m15PTR.png', 1136/1500, 1858/2100, 282/1500, 154/2100, ['Full']], + ['Green Power/Toughness', 'data/images/m15/m15PTG.png', 1136/1500, 1858/2100, 282/1500, 154/2100, ['Full']], + ['Multicolored Power/Toughness', 'data/images/m15/m15PTM.png', 1136/1500, 1858/2100, 282/1500, 154/2100, ['Full']], + ['Artifact Power/Toughness', 'data/images/m15/m15PTA.png', 1136/1500, 1858/2100, 282/1500, 154/2100, ['Full']] + ], 'frameClassM15TextlessInvention') +} + +hideFrameImages('frameClassM15TextlessInvention') \ No newline at end of file diff --git a/data/scripts/versions/m15Textless/version.js b/data/scripts/versions/m15Textless/version.js new file mode 100644 index 00000000..3d91c839 --- /dev/null +++ b/data/scripts/versions/m15Textless/version.js @@ -0,0 +1,59 @@ +if (!loadedVersions.includes('m15Textless')) { + loadedVersions.push('m15Textless') + loadMaskImages([['Border (m15 Textless)', 'data/images/m15Textless/m15TextlessMaskBorder.png'], ['Pinline (m15 Textless)', 'data/images/m15Textless/m15TextlessMaskPinline.png'], ['Type (m15 Textless)', 'data/images/m15Textless/m15TextlessMaskType.png'], ['Invention (m15 Textless)', 'data/images/m15Textless/m15TextlessMaskInvention.png']]) +} + +if (currentVersion != 'm15Textless') { + currentVersion = 'm15Textless' + + loadTextOptions([ + new cardText('Card Title', '', 126/1500, 188/2100, 1248/1500, 80/2100, 'belerenb', 80/2100, 'black', ['oneLine=true']), + new cardText('Card Type', '', 126/1500, 1827/2100, 1248/1500, 68/2100, 'belerenb', 68/2100, 'black', ['oneLine=true']), + new cardText('Power/Toughness', '', 1191/1500, 1954/2100, 205/1500, 78/2100, 'belerenbsc', 78/2100, 'black', ['oneLine=true,textAlign="center"']) + ]) + + artX = scaleX(60 / 1500) + artY = scaleY(60 / 2100) + artWidth = scaleX(1380 / 1500) + artHeight = scaleY(1888 / 2100) + + manaCostXPath = '1316 - 78 * manaSymbolIndex' + manaCostYPath = '121' + manaCostDiameter = '70' + manaCostShadowOffset = '[-2, 6]' + manaCostDirection = 'reverse' + + setSymbolX = [scaleX(1382/1500), 'right'] + setSymbolY = [scaleY(1804/2100), 'center'] + setSymbolWidth = scaleX(180/1500) + setSymbolHeight = scaleY(86/2100) + + watermarkX = 0 + watermarkY = 0 + watermarkWidth = scaleX(1/1500) + watermarkHeight = scaleY(1/2100) + + bottomInfoFunction = 'bottomInfoM15' + + bottomInfoUpdated() +} + +loadFramePackOptions([['regular', 'Regular'], ['floatingCrowns', 'Floating Crowns']]) + +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 + } + } + writeText( + [ + {text: document.getElementById('inputInfoSet').value + '{right' + scaleX(0.005) + '}\u2605{right' + scaleX(0.005) + '}' + document.getElementById('inputInfoLanguage').value + ' {saveTextX}{artistbrush}{fontbelerenbsc}' + document.getElementById('inputInfoArtist').value, x: 97/1500, y: 2026/2100, width: 1306/1500, height: 36/2100, font: 'gothammedium', fontSize: 36/2100, fontColor: 'white', otherParameters: ['oneLine=true']}, + {text: document.getElementById('inputInfoNumber').value + '{loadTextX}' + document.getElementById('inputInfoRarity').value, x: 97/1500, y: 1990/2100, width: 1306/1500, height: 36/2100, font: 'gothammedium', fontSize: 36/2100, fontColor: 'white', otherParameters: ['oneLine=true']}, + {text: '{right}\u2122 & \u00a9 ' + date.getFullYear() + ' Wizards of the Coast', x: 97/1500, y: 1990/2100 + ptBoxShift, width: 1306/1500, height: 35/2100, font: 'mplantin', fontSize: 35/2100, fontColor: 'white', otherParameters: ['oneLine=true']}, + {text: 'NOT FOR SALE', x: 97/1500, y: 2058/2100, width: 1306/1500, height: 30/2100, font: 'gothammedium', fontSize: 30/2100, fontColor: 'white', otherParameters: ['oneLine=true']}, + {text: '{right}CardConjurer.com', x: 97/1500, y: 2022/2100 + ptBoxShift, width: 1306/1500, height: 30/2100, font: 'mplantin', fontSize: 30/2100, fontColor: 'white', otherParameters: ['oneLine=true']} + ], bottomInfoContext) +} \ No newline at end of file diff --git a/index.html b/index.html index b96ba353..5de9b243 100644 --- a/index.html +++ b/index.html @@ -47,6 +47,7 @@