diff --git a/data/images/expedition/expeditionFrameA.png b/data/images/expedition/expeditionFrameA.png new file mode 100644 index 00000000..1e8d1972 Binary files /dev/null and b/data/images/expedition/expeditionFrameA.png differ diff --git a/data/images/expedition/expeditionFrameB.png b/data/images/expedition/expeditionFrameB.png new file mode 100644 index 00000000..097f7b48 Binary files /dev/null and b/data/images/expedition/expeditionFrameB.png differ diff --git a/data/images/expedition/expeditionFrameG.png b/data/images/expedition/expeditionFrameG.png new file mode 100644 index 00000000..935cce3c Binary files /dev/null and b/data/images/expedition/expeditionFrameG.png differ diff --git a/data/images/expedition/expeditionFrameL.png b/data/images/expedition/expeditionFrameL.png new file mode 100644 index 00000000..176a54a8 Binary files /dev/null and b/data/images/expedition/expeditionFrameL.png differ diff --git a/data/images/expedition/expeditionFrameM.png b/data/images/expedition/expeditionFrameM.png new file mode 100644 index 00000000..871912ed Binary files /dev/null and b/data/images/expedition/expeditionFrameM.png differ diff --git a/data/images/expedition/expeditionFrameR.png b/data/images/expedition/expeditionFrameR.png new file mode 100644 index 00000000..a1762007 Binary files /dev/null and b/data/images/expedition/expeditionFrameR.png differ diff --git a/data/images/expedition/expeditionFrameU.png b/data/images/expedition/expeditionFrameU.png new file mode 100644 index 00000000..17ed30e4 Binary files /dev/null and b/data/images/expedition/expeditionFrameU.png differ diff --git a/data/images/expedition/expeditionFrameW.png b/data/images/expedition/expeditionFrameW.png new file mode 100644 index 00000000..a4e91a59 Binary files /dev/null and b/data/images/expedition/expeditionFrameW.png differ diff --git a/data/images/expedition/expeditionMaskFrame.png b/data/images/expedition/expeditionMaskFrame.png new file mode 100644 index 00000000..f6bc1d4f Binary files /dev/null and b/data/images/expedition/expeditionMaskFrame.png differ diff --git a/data/images/expedition/expeditionMaskPinline.png b/data/images/expedition/expeditionMaskPinline.png new file mode 100644 index 00000000..02252ce5 Binary files /dev/null and b/data/images/expedition/expeditionMaskPinline.png differ diff --git a/data/images/expedition/expeditionMaskTextbox.png b/data/images/expedition/expeditionMaskTextbox.png new file mode 100644 index 00000000..9e37c1bd Binary files /dev/null and b/data/images/expedition/expeditionMaskTextbox.png differ diff --git a/data/images/expedition/expeditionMaskType.png b/data/images/expedition/expeditionMaskType.png new file mode 100644 index 00000000..dcbab20d Binary files /dev/null and b/data/images/expedition/expeditionMaskType.png differ diff --git a/data/scripts/main.js b/data/scripts/main.js index 703d815d..6cc394ea 100644 --- a/data/scripts/main.js +++ b/data/scripts/main.js @@ -451,10 +451,8 @@ function writeText(textObjectList, targetContext) { fontStyle += 'italic ' textLineContext.font = fontStyle + textSize + 'px ' + textFont } else if (possibleCodeLower == '/i') { - console.log(fontStyle) fontStyle = fontStyle.replace('italic ', '') textLineContext.font = fontStyle + textSize + 'px ' + textFont - console.log(textLineContext.font) } else if (possibleCodeLower.includes('fontsize')) { textSize += parseInt(possibleCodeLower.slice(8, possibleCodeLower.length)) textLineContext.font = fontStyle + textSize + 'px ' + textFont diff --git a/data/scripts/versions/expedition/floatingCrowns.js b/data/scripts/versions/expedition/floatingCrowns.js new file mode 100644 index 00000000..96fbcf2b --- /dev/null +++ b/data/scripts/versions/expedition/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/expedition/regular.js b/data/scripts/versions/expedition/regular.js new file mode 100644 index 00000000..b5829c70 --- /dev/null +++ b/data/scripts/versions/expedition/regular.js @@ -0,0 +1,22 @@ +if (!loadedVersions.includes('expeditionRegular')) { + loadedVersions.push('expeditionRegular') + loadFrameImages([ + ['Land Frame', 'data/images/expedition/expeditionFrameL.png', 0, 0, 1, 1, ['Full', 'Pinline (expedition)', 'Title (m15)', 'Type (expedition)', 'Frame (expedition)', 'Rules (expedition)', 'Border (m15)']], + ['White Frame', 'data/images/expedition/expeditionFrameW.png', 0, 0, 1, 1, ['Full', 'Pinline (expedition)', 'Title (m15)', 'Type (expedition)', 'Frame (expedition)', 'Rules (expedition)', 'Border (m15)']], + ['Blue Frame', 'data/images/expedition/expeditionFrameU.png', 0, 0, 1, 1, ['Full', 'Pinline (expedition)', 'Title (m15)', 'Type (expedition)', 'Frame (expedition)', 'Rules (expedition)', 'Border (m15)']], + ['Black Frame', 'data/images/expedition/expeditionFrameB.png', 0, 0, 1, 1, ['Full', 'Pinline (expedition)', 'Title (m15)', 'Type (expedition)', 'Frame (expedition)', 'Rules (expedition)', 'Border (m15)']], + ['Red Frame', 'data/images/expedition/expeditionFrameR.png', 0, 0, 1, 1, ['Full', 'Pinline (expedition)', 'Title (m15)', 'Type (expedition)', 'Frame (expedition)', 'Rules (expedition)', 'Border (m15)']], + ['Green Frame', 'data/images/expedition/expeditionFrameG.png', 0, 0, 1, 1, ['Full', 'Pinline (expedition)', 'Title (m15)', 'Type (expedition)', 'Frame (expedition)', 'Rules (expedition)', 'Border (m15)']], + ['Multicolored Frame', 'data/images/expedition/expeditionFrameM.png', 0, 0, 1, 1, ['Full', 'Pinline (expedition)', 'Title (m15)', 'Type (expedition)', 'Frame (expedition)', 'Rules (expedition)', 'Border (m15)']], + ['Artifact Frame', 'data/images/expedition/expeditionFrameA.png', 0, 0, 1, 1, ['Full', 'Pinline (expedition)', 'Title (m15)', 'Type (expedition)', 'Frame (expedition)', 'Rules (expedition)', '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']] + ], 'frameClassExpeditionRegular') +} + +hideFrameImages('frameClassExpeditionRegular') \ No newline at end of file diff --git a/data/scripts/versions/expedition/version.js b/data/scripts/versions/expedition/version.js new file mode 100644 index 00000000..74ea0437 --- /dev/null +++ b/data/scripts/versions/expedition/version.js @@ -0,0 +1,42 @@ +if (!loadedVersions.includes('expedition')) { + loadedVersions.push('expedition') + loadMaskImages([['Pinline (expedition)', 'data/images/expedition/expeditionMaskPinline.png'], ['Type (expedition)', 'data/images/expedition/expeditionMaskType.png'], ['Rules (expedition)', 'data/images/expedition/expeditionMaskTextbox.png'], ['Frame (expedition)', 'data/images/expedition/expeditionMaskFrame.png']]) +} + +if (currentVersion != 'expedition') { + currentVersion = 'expedition' + + 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, 1795/2100, 1248/1500, 68/2100, 'belerenb', 68/2100, 'black', ['oneLine=true']), + new cardText('Rules Text', '', 135/1500, 1238/2100, 1230/1500, 600/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(113 / 1500) + artY = scaleY(233 / 2100) + artWidth = scaleX(1274 / 1500) + artHeight = scaleY(1468 / 2100) + + manaCostXPath = '1316 - 78 * manaSymbolIndex' + manaCostYPath = '121' + manaCostDiameter = '70' + manaCostShadowOffset = '[-2, 6]' + manaCostDirection = 'reverse' + + setSymbolX = [scaleX(1382/1500), 'right'] + setSymbolY = [scaleY(1772/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'], ['floatingCrowns', 'Floating Crowns']]) \ No newline at end of file diff --git a/index.html b/index.html index 41c2a26f..192064c5 100644 --- a/index.html +++ b/index.html @@ -51,6 +51,7 @@ +