seventh edition

This commit is contained in:
Kyle
2020-01-03 10:39:09 -08:00
parent 1200377533
commit 03f44981f2
27 changed files with 87 additions and 9 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 679 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 709 KiB

View File

@@ -0,0 +1,16 @@
displayName,imagePath,maskOptions,framePickerOptions
White,seventh/seventhWFull.png,Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039,Seventh
Blue,seventh/seventhUFull.png,Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039,Seventh
Black,seventh/seventhBFull.png,Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039,Seventh
Red,seventh/seventhRFull.png,Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039,Seventh
Green,seventh/seventhGFull.png,Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039,Seventh
Multicolored,seventh/seventhMFull.png,Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039,Seventh
Artifact,seventh/seventhAFull.png,Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039,Seventh
White Land,seventh/seventhWLFull.png,Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039,Seventh
Blue Land,seventh/seventhULFull.png,Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039,Seventh
Black Land,seventh/seventhBLFull.png,Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039,Seventh
Red Land,seventh/seventhRLFull.png,Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039,Seventh
Green Land,seventh/seventhGLFull.png,Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039,Seventh
Multicolored Land,seventh/seventhMLFull.png,Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039,Seventh
Border,masks/BorderSeventh.png,Full-0-0-744-1039;Border Seventh-0-0-744-1039,Seventh
Foil Stamp,seventh/seventhFoilStamp.png,Full-81-867-300-115,Seventh
1 displayName imagePath maskOptions framePickerOptions
2 White seventh/seventhWFull.png Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039 Seventh
3 Blue seventh/seventhUFull.png Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039 Seventh
4 Black seventh/seventhBFull.png Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039 Seventh
5 Red seventh/seventhRFull.png Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039 Seventh
6 Green seventh/seventhGFull.png Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039 Seventh
7 Multicolored seventh/seventhMFull.png Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039 Seventh
8 Artifact seventh/seventhAFull.png Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039 Seventh
9 White Land seventh/seventhWLFull.png Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039 Seventh
10 Blue Land seventh/seventhULFull.png Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039 Seventh
11 Black Land seventh/seventhBLFull.png Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039 Seventh
12 Red Land seventh/seventhRLFull.png Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039 Seventh
13 Green Land seventh/seventhGLFull.png Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039 Seventh
14 Multicolored Land seventh/seventhMLFull.png Full-0-0-744-1039;Pinline Seventh-0-0-744-1039;Rules Text Seventh-0-0-744-1039 Seventh
15 Border masks/BorderSeventh.png Full-0-0-744-1039;Border Seventh-0-0-744-1039 Seventh
16 Foil Stamp seventh/seventhFoilStamp.png Full-81-867-300-115 Seventh

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 746 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 672 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 664 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 712 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 719 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 717 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 698 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 681 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 717 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 689 KiB

View File

@@ -5,6 +5,8 @@
function testFunction() {
cardMaster.insertBefore(frameList[5].cardMasterElement("Full"), cardMaster.children[newFrameInsertionLocation]);
cardMasterUpdated();
// changeVersionTo("seventh")
// setTimeout(function() {cardMaster.insertBefore(frameList[40].cardMasterElement("Full"), cardMaster.children[newFrameInsertionLocation]);cardMasterUpdated();}, 1000);
// console.log("First frame manually loaded")
}
@@ -301,7 +303,7 @@ function cardImageUpdated() {
cardFinalContext.drawImage(bottomInfoCanvas, 0, 0, cardWidth, cardHeight);
// cardFinalContext.drawImage(textCanvas, 0, 0, cardWidth, cardHeight);
cardFinalContext.drawImage(setSymbolCanvas, 0, 0, cardWidth, cardHeight)
cardFinalContext.drawManaCost(document.getElementById("inputManaCost").value, version.manaCostX, version.manaCostY, version.manaCostDiameter, version.manaCostDistance, version.manaCostDirection)
cardFinalContext.drawManaCost(document.getElementById("inputManaCost").value, version.manaCostX, version.manaCostY, version.manaCostDiameter, version.manaCostDistance, version.manaCostDirection, version.manaCostVersion)
//Clear the corners
cardFinalContext.globalCompositeOperation = "destination-out"
cardFinalContext.drawImage(maskList[1], 0, 0, cardWidth, cardHeight)
@@ -576,6 +578,8 @@ CanvasRenderingContext2D.prototype.writeText = function(text = "", textX = 0, te
outline = true;
lineContext.strokeStyle = possibleCodeLower.replace("outline:", "").split(",")[0];
lineContext.lineWidth = parseInt(possibleCodeLower.replace("outline:", "").split(",")[1]);
} else if (possibleCodeLower.includes("shadow")) {
shadow = parseInt(possibleCodeLower.replace("shadow", ""));
} else if (manaSymbolCodeList.includes(possibleCodeLower.split("/").join(""))) {
//THIS HAS TO BE THE LAST ONE
var manaSymbolDiameter = textSize * 0.77
@@ -622,7 +626,9 @@ CanvasRenderingContext2D.prototype.writeText = function(text = "", textX = 0, te
}
//Whether or not the current line is finished, write to it.
if (shadow > 0) {
lineContext.fillText(wordToWrite, currentLineX + shadow, currentLineY + shadow)
lineContext.fillStyle = "black";
lineContext.fillText(wordToWrite, currentLineX + shadow, currentLineY + shadow);
lineContext.fillStyle = textColor;
}
if (outline != undefined) {
lineContext.strokeText(wordToWrite, currentLineX, currentLineY)
@@ -655,7 +661,7 @@ function loadManaSymbolImages() {
}
}
//Draws a mana cost
CanvasRenderingContext2D.prototype.drawManaCost = function(text, symbolsX, symbolsY, diameter = 50, distance = -50, direction = "horizontal") {
CanvasRenderingContext2D.prototype.drawManaCost = function(text, symbolsX, symbolsY, diameter = 50, distance = -50, direction = "horizontal", version = "m15") {
var splitManaCost = text.toLowerCase().replace(/{/g, " ").replace(/}/g, " ").split("/").join("").split(" ")
var currentSymbolIndex = 0
var currentX = symbolsX
@@ -666,11 +672,15 @@ CanvasRenderingContext2D.prototype.drawManaCost = function(text, symbolsX, symbo
currentX = direction[i][0]
currentY = direction[i][1]
}
if (version == "m15") {
this.fillStyle = "black"
this.beginPath()
this.arc(currentX + diameter / 2.13, currentY + diameter / 1.7, diameter / 2, 0, 2 * Math.PI, false)
this.fill()
this.drawImage(manaSymbolImageList[manaSymbolCodeList.indexOf(splitManaCost[i])], currentX, currentY, diameter, diameter)
} else if (version == "seventh") {
this.drawImage(manaSymbolImageList[manaSymbolCodeList.indexOf(splitManaCost[i])], currentX, currentY, diameter, diameter)
}
if (direction == "horizontal") {
currentX += distance
} else if (direction == "vertical") {
@@ -894,7 +904,8 @@ function textCodeTutorial() {
_left#-moves the following text # pixels left
_right#-moves the following text # pixels right
_SYMBOL-creates a mana symbol, where SYMBOL can be: w, u, b, r, g, 1, 2, 3, etc...
_outline:*,#-outlines the following text with # thickness and * color`
_outline:*,#-outlines the following text with # thickness and * color
_shadow#-creates a text shadow # pixels left and # pixels right`
var textCodeTutorialArray = textCodeTutorialString.split("_")
for (var i = 0; i < textCodeTutorialArray.length; i ++) {
document.getElementById("textCodeTutorial").innerHTML += "<div class='selectable'><b>{" + textCodeTutorialArray[i].split("-")[0] + "}</b></div><div>" + textCodeTutorialArray[i].split("-")[1] + "</div>"

View File

@@ -25,6 +25,7 @@ version.manaCostY = scale(54)
version.manaCostDiameter = scale(34)
version.manaCostDistance = scale(-38)
version.manaCostDirection = "horizontal"
version.manaCostVersion = "m15"
version.watermarkWidth = scale(520)
version.watermarkHeight = scale(250)
version.watermarkY = scale(800)

View File

@@ -26,6 +26,7 @@ version.manaCostY = scale(60)
version.manaCostDiameter = scale(34)
version.manaCostDistance = scale(-38)
version.manaCostDirection = "horizontal"
version.manaCostVersion = "m15"
// version.rareStampX = scale(340)
// version.rareStampY = scale(965)
// version.rareStampWidth = scale(70)

View File

@@ -26,6 +26,7 @@ version.manaCostY = scale(60)
version.manaCostDiameter = scale(34)
version.manaCostDistance = scale(-38)
version.manaCostDirection = "horizontal"
version.manaCostVersion = "m15"
version.watermarkWidth = scale(520)
version.watermarkHeight = scale(250)
version.watermarkY = scale(800)

View File

@@ -28,6 +28,7 @@ version.manaCostY = scale(43)
version.manaCostDiameter = scale(34)
version.manaCostDistance = scale(-39)
version.manaCostDirection = "horizontal"
version.manaCostVersion = "m15"
version.watermarkWidth = scale(520)
version.watermarkHeight = scale(250)
version.watermarkY = scale(800)

45
data/versions/seventh.js Normal file
View File

@@ -0,0 +1,45 @@
//============================================//
// Card Conjurer, by Kyle Burton //
//============================================//
if (version.currentVersion != "seventh") {
//Name, text, x, y, width, height, font, size, color, other
version.textList = [
["Title", "", scale(82), scale(70), scale(630), 0, "goudymedieval", 42, "white", "oneLine=true,shadow=2"],
["Type", "", scale(82), scale(600), scale(630), 0, "mplantin", 33, "white", "oneLine=true,shadow=2"],
["Rules Text", "", scale(97), scale(630), scale(554), scale(292), "mplantin", 36, "black", "lineSpace=0.97"],
["Power Toughness", "", scale(592), scale(959), scale(110), 0, "mplantin", 47, "white", "oneLine=true,textAlign='center',shadow=2"]
];
}
version.currentVersion = "seventh"
version.artX = scale(88)
version.artY = scale(102)
version.artWidth = scale(567)
version.artHeight = scale(461)
version.setSymbolRight = scale(663)
version.setSymbolVertical = scale(598)
version.setSymbolWidth = scale(90)
version.setSymbolHeight = scale(39)
version.bottomInfoFunction = "seventhBottomInfo"
version.manaCostX = scale(648)
version.manaCostY = scale(49)
version.manaCostDiameter = scale(36)
version.manaCostDistance = scale(-41)
version.manaCostDirection = "horizontal"
version.manaCostVersion = "seventh"
version.watermarkWidth = scale(520)
version.watermarkHeight = scale(250)
version.watermarkY = scale(800)
version.masksToAdd = ["Rules Text Seventh", "Pinline Seventh", "Frame Seventh", "Border Seventh"];
filterFramePicker("frameClassSeventh");
function seventhBottomInfo() {
//remember to ctrl+f for 'artistBrushWidth' and adjust that when fixing these values!
bottomInfoContext.clearRect(0, 0, cardWidth, cardHeight)
bottomInfoContext.writeText("{center}{shadow2}Illus: " + document.getElementById("inputInfoArtist").value, scale(46), scale(948), scale(651), 0, "mplantin", 29, "white", "oneLine=true")
bottomInfoContext.writeText("{center}\u2122 & \u00a9 " + date.getFullYear() + " Wizards of the Coast *Not For Sale*", scale(46), scale(972), scale(651), 0, "mplantin", 18, "white", "oneLine=true,textAlign='right'")
cardImageUpdated()
}
setTimeout(seventhBottomInfo, 250)
finishChangingVersion("data/images/seventh/seventhCSV.csv")

View File

@@ -23,6 +23,7 @@ version.manaCostY = scale(60)
version.manaCostDiameter = scale(34)
version.manaCostDistance = scale(-38)
version.manaCostDirection = "horizontal"
version.manaCostVersion = "m15"
version.watermarkWidth = scale(520)
version.watermarkHeight = scale(250)
version.watermarkY = scale(800)

View File

@@ -132,6 +132,7 @@
<button onclick="changeVersionTo('planeswalker')" class="button">Planeswalker</button>
<button onclick="changeVersionTo('expedition')" class="button">Expeditions</button>
<button onclick="changeVersionTo('unhinged')" class="button">Unhinged Basics</button>
<button onclick="changeVersionTo('seventh')" class="button">Seventh Edition</button>
<button onclick="changeVersionTo('m15extras')" class="button">M15 Extras</button>
<div class="bar"></div>
<input type="checkbox" class="checkbox" id="inputCheckboxHideFrames" checked onchange="toggleFrameOptionVisibility()">Hide unrelated frames<br>