diff --git a/data/images/token/tokenFrameARegular.png b/data/images/token/tokenFrameARegular.png new file mode 100644 index 00000000..b19865d0 Binary files /dev/null and b/data/images/token/tokenFrameARegular.png differ diff --git a/data/images/token/tokenFrameATall.png b/data/images/token/tokenFrameATall.png new file mode 100644 index 00000000..d8d406d7 Binary files /dev/null and b/data/images/token/tokenFrameATall.png differ diff --git a/data/images/token/tokenFrameATextless.png b/data/images/token/tokenFrameATextless.png new file mode 100644 index 00000000..f597f8d3 Binary files /dev/null and b/data/images/token/tokenFrameATextless.png differ diff --git a/data/images/token/tokenFrameBRegular.png b/data/images/token/tokenFrameBRegular.png new file mode 100644 index 00000000..c4062353 Binary files /dev/null and b/data/images/token/tokenFrameBRegular.png differ diff --git a/data/images/token/tokenFrameBTall.png b/data/images/token/tokenFrameBTall.png new file mode 100644 index 00000000..7a32ae0e Binary files /dev/null and b/data/images/token/tokenFrameBTall.png differ diff --git a/data/images/token/tokenFrameBTextless.png b/data/images/token/tokenFrameBTextless.png new file mode 100644 index 00000000..563b7c86 Binary files /dev/null and b/data/images/token/tokenFrameBTextless.png differ diff --git a/data/images/token/tokenFrameGRegular.png b/data/images/token/tokenFrameGRegular.png new file mode 100644 index 00000000..d65cc48e Binary files /dev/null and b/data/images/token/tokenFrameGRegular.png differ diff --git a/data/images/token/tokenFrameGTall.png b/data/images/token/tokenFrameGTall.png new file mode 100644 index 00000000..c1a2079a Binary files /dev/null and b/data/images/token/tokenFrameGTall.png differ diff --git a/data/images/token/tokenFrameGTextless.png b/data/images/token/tokenFrameGTextless.png new file mode 100644 index 00000000..46147cab Binary files /dev/null and b/data/images/token/tokenFrameGTextless.png differ diff --git a/data/images/token/tokenFrameLRegular.png b/data/images/token/tokenFrameLRegular.png new file mode 100644 index 00000000..5ee43587 Binary files /dev/null and b/data/images/token/tokenFrameLRegular.png differ diff --git a/data/images/token/tokenFrameLTall.png b/data/images/token/tokenFrameLTall.png new file mode 100644 index 00000000..c4958ee2 Binary files /dev/null and b/data/images/token/tokenFrameLTall.png differ diff --git a/data/images/token/tokenFrameLTextless.png b/data/images/token/tokenFrameLTextless.png new file mode 100644 index 00000000..bd3e9dd4 Binary files /dev/null and b/data/images/token/tokenFrameLTextless.png differ diff --git a/data/images/token/tokenFrameMRegular.png b/data/images/token/tokenFrameMRegular.png new file mode 100644 index 00000000..10242930 Binary files /dev/null and b/data/images/token/tokenFrameMRegular.png differ diff --git a/data/images/token/tokenFrameMTall.png b/data/images/token/tokenFrameMTall.png new file mode 100644 index 00000000..0df60513 Binary files /dev/null and b/data/images/token/tokenFrameMTall.png differ diff --git a/data/images/token/tokenFrameMTextless.png b/data/images/token/tokenFrameMTextless.png new file mode 100644 index 00000000..497f064d Binary files /dev/null and b/data/images/token/tokenFrameMTextless.png differ diff --git a/data/images/token/tokenFrameRRegular.png b/data/images/token/tokenFrameRRegular.png new file mode 100644 index 00000000..ca18bd44 Binary files /dev/null and b/data/images/token/tokenFrameRRegular.png differ diff --git a/data/images/token/tokenFrameRTall.png b/data/images/token/tokenFrameRTall.png new file mode 100644 index 00000000..d78a09fd Binary files /dev/null and b/data/images/token/tokenFrameRTall.png differ diff --git a/data/images/token/tokenFrameRTextless.png b/data/images/token/tokenFrameRTextless.png new file mode 100644 index 00000000..35df7438 Binary files /dev/null and b/data/images/token/tokenFrameRTextless.png differ diff --git a/data/images/token/tokenFrameURegular.png b/data/images/token/tokenFrameURegular.png new file mode 100644 index 00000000..289a1969 Binary files /dev/null and b/data/images/token/tokenFrameURegular.png differ diff --git a/data/images/token/tokenFrameUTall.png b/data/images/token/tokenFrameUTall.png new file mode 100644 index 00000000..d158b08e Binary files /dev/null and b/data/images/token/tokenFrameUTall.png differ diff --git a/data/images/token/tokenFrameUTextless.png b/data/images/token/tokenFrameUTextless.png new file mode 100644 index 00000000..c3e11c39 Binary files /dev/null and b/data/images/token/tokenFrameUTextless.png differ diff --git a/data/images/token/tokenFrameWRegular.png b/data/images/token/tokenFrameWRegular.png new file mode 100644 index 00000000..a2eafe32 Binary files /dev/null and b/data/images/token/tokenFrameWRegular.png differ diff --git a/data/images/token/tokenFrameWTall.png b/data/images/token/tokenFrameWTall.png new file mode 100644 index 00000000..9f368265 Binary files /dev/null and b/data/images/token/tokenFrameWTall.png differ diff --git a/data/images/token/tokenFrameWTextless.png b/data/images/token/tokenFrameWTextless.png new file mode 100644 index 00000000..c31429e1 Binary files /dev/null and b/data/images/token/tokenFrameWTextless.png differ diff --git a/data/images/token/tokenMaskRegularPinline.png b/data/images/token/tokenMaskRegularPinline.png new file mode 100644 index 00000000..33d06f0b Binary files /dev/null and b/data/images/token/tokenMaskRegularPinline.png differ diff --git a/data/images/token/tokenMaskRegularRules.png b/data/images/token/tokenMaskRegularRules.png new file mode 100644 index 00000000..29efaaca Binary files /dev/null and b/data/images/token/tokenMaskRegularRules.png differ diff --git a/data/images/token/tokenMaskRegularType.png b/data/images/token/tokenMaskRegularType.png new file mode 100644 index 00000000..94fadd2b Binary files /dev/null and b/data/images/token/tokenMaskRegularType.png differ diff --git a/data/images/token/tokenMaskTextlessPinline.png b/data/images/token/tokenMaskTextlessPinline.png new file mode 100644 index 00000000..401cf01e Binary files /dev/null and b/data/images/token/tokenMaskTextlessPinline.png differ diff --git a/data/images/token/tokenMaskTextlessType.png b/data/images/token/tokenMaskTextlessType.png new file mode 100644 index 00000000..28069d75 Binary files /dev/null and b/data/images/token/tokenMaskTextlessType.png differ diff --git a/data/scripts/versions/token/floatingCrowns.js b/data/scripts/versions/token/floatingCrowns.js new file mode 100644 index 00000000..96fbcf2b --- /dev/null +++ b/data/scripts/versions/token/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/token/regular.js b/data/scripts/versions/token/regular.js new file mode 100644 index 00000000..63ba12aa --- /dev/null +++ b/data/scripts/versions/token/regular.js @@ -0,0 +1,39 @@ +if (!loadedVersions.includes('tokenRegular')) { + loadedVersions.push('tokenRegular') + loadMaskImages([['Pinline (token regular)', 'data/images/token/tokenMaskRegularPinline.png'], ['Type (token regular)', 'data/images/token/tokenMaskRegularType.png'], ['Rules (token regular)', 'data/images/token/tokenMaskRegularRules.png']]) + loadFrameImages([ + ['White Frame', 'data/images/token/tokenFrameWRegular.png', 0, 0, 1, 1, ['Full', 'Pinline (token regular)', 'Title (m15)', 'Type (token regular)', 'Rules (token regular)', 'Border (m15)']], + ['Blue Frame', 'data/images/token/tokenFrameURegular.png', 0, 0, 1, 1, ['Full', 'Pinline (token regular)', 'Title (m15)', 'Type (token regular)', 'Rules (token regular)', 'Border (m15)']], + ['Black Frame', 'data/images/token/tokenFrameBRegular.png', 0, 0, 1, 1, ['Full', 'Pinline (token regular)', 'Title (m15)', 'Type (token regular)', 'Rules (token regular)', 'Border (m15)']], + ['Red Frame', 'data/images/token/tokenFrameRRegular.png', 0, 0, 1, 1, ['Full', 'Pinline (token regular)', 'Title (m15)', 'Type (token regular)', 'Rules (token regular)', 'Border (m15)']], + ['Green Frame', 'data/images/token/tokenFrameGRegular.png', 0, 0, 1, 1, ['Full', 'Pinline (token regular)', 'Title (m15)', 'Type (token regular)', 'Rules (token regular)', 'Border (m15)']], + ['Multicolored Frame', 'data/images/token/tokenFrameMRegular.png', 0, 0, 1, 1, ['Full', 'Pinline (token regular)', 'Title (m15)', 'Type (token regular)', 'Rules (token regular)', 'Border (m15)']], + ['Artifact Frame', 'data/images/token/tokenFrameARegular.png', 0, 0, 1, 1, ['Full', 'Pinline (token regular)', 'Title (m15)', 'Type (token regular)', 'Rules (token regular)', 'Border (m15)']], + ['Land Frame', 'data/images/token/tokenFrameLRegular.png', 0, 0, 1, 1, ['Full', 'Pinline (token regular)', 'Title (m15)', 'Type (token regular)', 'Rules (token regular)', 'Border (m15)']], + ['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']] + ], 'frameClassTokenRegular') +} + +if (currentVersion != 'tokenRegular') { + currentVersion = 'tokenRegular' + + loadTextOptions([ + new cardText('Card Title', '', 126/1500, 188/2100, 1248/1500, 80/2100, 'belerenb', 80/2100, 'white', ['oneLine=true','textAlign="center"']), + new cardText('Card Type', '', 126/1500, 1439/2100, 1248/1500, 68/2100, 'belerenb', 68/2100, 'black', ['oneLine=true']), + new cardText('Rules Text', '', 135/1500, 1545/2100, 1230/1500, 450/2100, 'mplantin', 74/2100, 'black'), + new cardText('Power/Toughness', '', 1191/1500, 1954/2100, 205/1500, 78/2100, 'belerenbsc', 78/2100, 'black', ['oneLine=true,textAlign="center"']) + ]) + + setSymbolX = [scaleX(1382/1500), 'right'] + setSymbolY = [scaleY(1416/2100), 'center'] + setSymbolWidth = scaleX(180/1500) + setSymbolHeight = scaleY(86/2100) +} + +hideFrameImages('frameClassTokenRegular') \ No newline at end of file diff --git a/data/scripts/versions/token/tall.js b/data/scripts/versions/token/tall.js new file mode 100644 index 00000000..dca6c620 --- /dev/null +++ b/data/scripts/versions/token/tall.js @@ -0,0 +1,38 @@ +if (!loadedVersions.includes('tokenTall')) { + loadedVersions.push('tokenTall') + loadFrameImages([ + ['White Frame', 'data/images/token/tokenFrameWTall.png', 0, 0, 1, 1, ['Full', 'Pinline Super (m15)', 'Title (m15)', 'Type (m15)', 'Rules (m15)', 'Border (m15)']], + ['Blue Frame', 'data/images/token/tokenFrameUTall.png', 0, 0, 1, 1, ['Full', 'Pinline Super (m15)', 'Title (m15)', 'Type (m15)', 'Rules (m15)', 'Border (m15)']], + ['Black Frame', 'data/images/token/tokenFrameBTall.png', 0, 0, 1, 1, ['Full', 'Pinline Super (m15)', 'Title (m15)', 'Type (m15)', 'Rules (m15)', 'Border (m15)']], + ['Red Frame', 'data/images/token/tokenFrameRTall.png', 0, 0, 1, 1, ['Full', 'Pinline Super (m15)', 'Title (m15)', 'Type (m15)', 'Rules (m15)', 'Border (m15)']], + ['Green Frame', 'data/images/token/tokenFrameGTall.png', 0, 0, 1, 1, ['Full', 'Pinline Super (m15)', 'Title (m15)', 'Type (m15)', 'Rules (m15)', 'Border (m15)']], + ['Multicolored Frame', 'data/images/token/tokenFrameMTall.png', 0, 0, 1, 1, ['Full', 'Pinline Super (m15)', 'Title (m15)', 'Type (m15)', 'Rules (m15)', 'Border (m15)']], + ['Artifact Frame', 'data/images/token/tokenFrameATall.png', 0, 0, 1, 1, ['Full', 'Pinline Super (m15)', 'Title (m15)', 'Type (m15)', 'Rules (m15)', 'Border (m15)']], + ['Land Frame', 'data/images/token/tokenFrameLTall.png', 0, 0, 1, 1, ['Full', 'Pinline Super (m15)', 'Title (m15)', 'Type (m15)', 'Rules (m15)', 'Border (m15)']], + ['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']] + ], 'frameClassTokenTall') +} + +if (currentVersion != 'tokenTall') { + currentVersion = 'tokenTall' + + loadTextOptions([ + new cardText('Card Title', '', 126/1500, 188/2100, 1248/1500, 80/2100, 'belerenb', 80/2100, 'white', ['oneLine=true','textAlign="center"']), + new cardText('Card Type', '', 126/1500, 1264/2100, 1248/1500, 68/2100, 'belerenb', 68/2100, 'black', ['oneLine=true']), + new cardText('Rules Text', '', 135/1500, 1370/2100, 1230/1500, 625/2100, 'mplantin', 74/2100, 'black'), + new cardText('Power/Toughness', '', 1191/1500, 1954/2100, 205/1500, 78/2100, 'belerenbsc', 78/2100, 'black', ['oneLine=true,textAlign="center"']) + ]) + + setSymbolX = [scaleX(1382/1500), 'right'] + setSymbolY = [scaleY(1241/2100), 'center'] + setSymbolWidth = scaleX(180/1500) + setSymbolHeight = scaleY(86/2100) +} + +hideFrameImages('frameClassTokenTall') \ No newline at end of file diff --git a/data/scripts/versions/token/textless.js b/data/scripts/versions/token/textless.js new file mode 100644 index 00000000..ce2f7119 --- /dev/null +++ b/data/scripts/versions/token/textless.js @@ -0,0 +1,38 @@ +if (!loadedVersions.includes('tokenTextless')) { + loadedVersions.push('tokenTextless') + loadMaskImages([['Pinline (token textless)', 'data/images/token/tokenMaskTextlessPinline.png'], ['Type (token textless)', 'data/images/token/tokenMaskTextlessType.png']]) + loadFrameImages([ + ['White Frame', 'data/images/token/tokenFrameWTextless.png', 0, 0, 1, 1, ['Full', 'Pinline (token textless)', 'Title (m15)', 'Type (token textless)', 'Border (m15)']], + ['Blue Frame', 'data/images/token/tokenFrameUTextless.png', 0, 0, 1, 1, ['Full', 'Pinline (token textless)', 'Title (m15)', 'Type (token textless)', 'Border (m15)']], + ['Black Frame', 'data/images/token/tokenFrameBTextless.png', 0, 0, 1, 1, ['Full', 'Pinline (token textless)', 'Title (m15)', 'Type (token textless)', 'Border (m15)']], + ['Red Frame', 'data/images/token/tokenFrameRTextless.png', 0, 0, 1, 1, ['Full', 'Pinline (token textless)', 'Title (m15)', 'Type (token textless)', 'Border (m15)']], + ['Green Frame', 'data/images/token/tokenFrameGTextless.png', 0, 0, 1, 1, ['Full', 'Pinline (token textless)', 'Title (m15)', 'Type (token textless)', 'Border (m15)']], + ['Multicolored Frame', 'data/images/token/tokenFrameMTextless.png', 0, 0, 1, 1, ['Full', 'Pinline (token textless)', 'Title (m15)', 'Type (token textless)', 'Border (m15)']], + ['Artifact Frame', 'data/images/token/tokenFrameATextless.png', 0, 0, 1, 1, ['Full', 'Pinline (token textless)', 'Title (m15)', 'Type (token textless)', 'Border (m15)']], + ['Land Frame', 'data/images/token/tokenFrameLTextless.png', 0, 0, 1, 1, ['Full', 'Pinline (token textless)', 'Title (m15)', 'Type (token textless)', 'Border (m15)']], + ['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']] + ], 'frameClassTokenTextless') +} + +if (currentVersion != 'tokenTextless') { + currentVersion = 'tokenTextless' + + loadTextOptions([ + new cardText('Card Title', '', 126/1500, 188/2100, 1248/1500, 80/2100, 'belerenb', 80/2100, 'white', ['oneLine=true','textAlign="center"']), + new cardText('Card Type', '', 126/1500, 1795/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"']) + ]) + + setSymbolX = [scaleX(1382/1500), 'right'] + setSymbolY = [scaleY(1772/2100), 'center'] + setSymbolWidth = scaleX(180/1500) + setSymbolHeight = scaleY(86/2100) +} + +hideFrameImages('frameClassTokenTextless') \ No newline at end of file diff --git a/data/scripts/versions/token/version.js b/data/scripts/versions/token/version.js new file mode 100644 index 00000000..f0f4d1f3 --- /dev/null +++ b/data/scripts/versions/token/version.js @@ -0,0 +1,41 @@ +if (!loadedVersions.includes('token')) { + loadedVersions.push('token') +} + +if (currentVersion != 'token') { + currentVersion = 'token' + + loadTextOptions([ + new cardText('Card Title', '', 126/1500, 188/2100, 1248/1500, 80/2100, 'belerenb', 80/2100, 'white', ['oneLine=true','textAlign="center"']), + new cardText('Card Type', '', 126/1500, 1439/2100, 1248/1500, 68/2100, 'belerenb', 68/2100, 'black', ['oneLine=true']), + new cardText('Rules Text', '', 135/1500, 1545/2100, 1230/1500, 450/2100, 'mplantin', 74/2100, 'black'), + 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(1877 / 2100) + + manaCostXPath = '1316 - 78 * manaSymbolIndex' + manaCostYPath = '121' + manaCostDiameter = '70' + manaCostShadowOffset = '[-2, 6]' + manaCostDirection = 'reverse' + + setSymbolX = [scaleX(1382/1500), 'right'] + setSymbolY = [scaleY(1416/2100), 'center'] + setSymbolWidth = scaleX(180/1500) + setSymbolHeight = scaleY(86/2100) + + watermarkX = scaleX(0.5) + watermarkY = scaleY(1630/2100) + watermarkWidth = scaleX(1140/1500) + watermarkHeight = scaleY(484/2100) + + bottomInfoFunction = 'bottomInfoM15' + + bottomInfoUpdated() +} + +loadFramePackOptions([['regular', 'Regular'], ['textless', 'Textless'], ['tall', 'Tall'], ['floatingCrowns', 'Floating Crowns']]) \ No newline at end of file diff --git a/index.html b/index.html index c2283287..82d106cb 100644 --- a/index.html +++ b/index.html @@ -46,6 +46,7 @@ Select a frame version:
Select which card to import: