This commit is contained in:
Kyle
2018-11-16 17:10:59 -08:00
parent d10bba39f5
commit 1a9693c26d
40 changed files with 56 additions and 739 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 846 KiB

View File

@@ -1,3 +1,7 @@
imgMultiMask.src = borderPath + "multiMask.png"
imgFrameMask.src = borderPath + "frameMask.png"
imgBorderMask.src = borderPath + "frameMask.png"
var titleFont = "44px matrixb"
var titleFontSpacing = "0.5px"
var titleX = 66
@@ -27,10 +31,7 @@ var ptY = 920.5
var ptWidth = 162
var ptHeight = 84
var eighthInfo = true
var eighthInfoY = 956
var m15Info = false
var m15InfoY = 992
var infoY = 956
var setSymbolY = 615
var setSymbolRight = 689
@@ -47,4 +48,19 @@ loadColors("white-White,whiteLand-White Land,blue-Blue,blueLand-Blue Land,black-
document.getElementById("secondColorSelection").innerHTML = document.getElementById("colorSelection").innerHTML
document.getElementById("thirdColorSelection").innerHTML = document.getElementById("colorSelection").innerHTML
finishTemplate()
finishTemplate()
var uniqueFunctionName = "bottomInfo8th"
function bottomInfo8th() {
if (document.getElementById("checkboxArtistColor").checked == true) {
card.fillStyle = "black"
} else {
card.fillStyle = "white"
}
canvas.style.letterSpacing = "1px"
card.font = "25px matrixb"
card.fillText(document.getElementById("inputArtist").value, 116, infoY)
canvas.style.letterSpacing = "0.5px"
card.font = "16px mplantin"
card.fillText("CC \u2014 " + document.getElementById("inputInfo").value + " " + document.getElementById("inputNumber").value, 62, infoY + 31)
}

View File

@@ -4,8 +4,6 @@ var cardWidth = 749
var cardHeight = 1044
document.getElementsByClassName("mainGrid")[0].classList.remove("plane")
//Sets the correct values to anything that may have been changed from an out of the ordinary border
var eighthInfo = false
var m15Info = false
var planechaseInfo = false
var legendaryBorder = false
var nyxBorder = false

View File

@@ -1,5 +1,11 @@
//M15 Border
//Anything to do with...
//Loading Images
imgMultiMask.src = borderPath + "multiMask.png"
imgFrameMask.src = borderPath + "frameMask.png"
imgLegendFrameMask.src = borderPath + "legendFrameMask.png"
imgRareStampMask.src = borderPath + "rareStampMask.png"
imgBorderMask.src = borderPath + "borderMask.png"
//Card Title
var titleFont = "40px belerenb" //40
var titleFontSpacing = "0.15px" //0.15
@@ -30,8 +36,7 @@ var ptY = 929 //929
var ptWidth = 137 //137
var ptHeight = 75 //75
//Bottom Info
var m15Info = true
var m15InfoY = 993 //993
var infoY = 993 //993
//Set Symbol
var setSymbolY = 616 //616
var setSymbolRight = 693 //693
@@ -47,7 +52,7 @@ var rareStampY = 958 //958
loadColors("white-White,whiteLand-White Land,blue-Blue,blueLand-Blue Land,black-Black,blackLand-Black Land,red-Red,redLand-Red Land,green-Green,greenLand-Green Land,gold-Gold,goldLand-Gold Land,colorless-Colorless,colorlessLand-Colorless Land,artifact-Artifact,vehicle-Vehicle")
document.getElementById("secondColorSelection").innerHTML = document.getElementById("colorSelection").innerHTML
document.getElementById("thirdColorSelection").innerHTML = document.getElementById("colorSelection").innerHTML
//Other
//Things The Card Can Do
legendaryBorder = true
stampBorder = true
nyxBorder = true
@@ -55,4 +60,5 @@ miracleBorder = true
flipBorder = true
//With all the new values in place, the program will update it's border images
finishTemplate()
//Any special functions go at the bottom
//Any special functions go at the bottom
var uniqueFunctionName = "bottomInfoM15"

View File

@@ -1,5 +1,8 @@
//Map Border
//Anything to do with...
//Loading Images
imgFrameMask.src = borderPath + "frameMask.png"
imgBorderMask.src = borderPath + "borderMask.png"
//Card Title
var titleFont = "40px belerenbsc"
var titleFontSpacing = "0.1px"
@@ -32,10 +35,7 @@ var ptY = 920
var ptWidth = 150
var ptHeight = 70
//Bottom Info
var eighthInfo = false
var eighthInfoY = 992
var m15Info = true
var m15InfoY = 993
var infoY = 993
//Set Symbol
var setSymbolY = 123
var setSymbolRight = 374.5
@@ -56,4 +56,5 @@ var artX = 30
var artY = 116
//With all the new values in place, the program will update it's border images
finishTemplate()
//Any special functions go at the bottom
//Any special functions go at the bottom
var uniqueFunctionName = "bottomInfoM15"

View File

@@ -1,5 +1,8 @@
//Plane Border
//Anything to do with...
//Loading Images
imgFrameMask.src = borderPath + "frameMask.png"
imgBorderMask.src = borderPath + "borderMask.png"
//Card Size
cardWidth = 1074
cardHeight = 749
@@ -52,6 +55,7 @@ transparentBorder = true
//With all the new values in place, the program will update it's border images
finishTemplate()
//Any special functions go at the bottom
var uniqueFunctionName = "bottomInfoPlanechase"
function bottomInfoPlanechase() {
card.textAlign = "left"
if (document.getElementById("checkboxArtistColor").checked == true) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="https://imkyle4815.github.io/cardconjurer/data/favicons/mstile-150x150.png"/>
<TileColor>#00a300</TileColor>
</tile>
</msapplication>
</browserconfig>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 960 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

View File

@@ -1,29 +0,0 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="260.000000pt" height="260.000000pt" viewBox="0 0 260.000000 260.000000"
preserveAspectRatio="xMidYMid meet">
<metadata>
Created by potrace 1.11, written by Peter Selinger 2001-2013
</metadata>
<g transform="translate(0.000000,260.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M1069 2585 c-383 -72 -708 -303 -902 -640 -56 -98 -101 -207 -135
-334 -24 -89 -26 -111 -26 -311 0 -200 2 -222 26 -311 132 -487 470 -825 957
-957 89 -24 111 -26 311 -26 200 0 222 2 311 26 487 132 825 470 957 957 24
89 26 111 26 311 0 200 -2 222 -26 311 -132 487 -474 829 -957 956 -82 22
-122 26 -281 29 -131 2 -207 -1 -261 -11z m-23 -628 c70 -20 174 -68 174 -81
0 -22 -41 -331 -45 -334 -1 -2 -9 14 -15 35 -21 63 -78 170 -111 208 -51 58
-100 78 -179 73 -81 -4 -134 -36 -179 -107 -60 -95 -81 -200 -81 -412 0 -256
41 -404 134 -486 53 -47 89 -58 171 -51 101 8 180 91 240 249 15 39 29 69 30
67 3 -3 45 -307 45 -327 0 -15 -81 -54 -163 -80 -274 -84 -554 16 -671 239
-60 113 -79 202 -79 370 -1 163 12 227 68 345 77 161 203 262 380 305 51 12
215 4 281 -13z m1070 0 c70 -20 174 -68 174 -81 0 -22 -41 -331 -45 -334 -1
-2 -9 14 -15 35 -21 63 -78 170 -111 208 -51 58 -100 78 -179 73 -81 -4 -134
-36 -179 -107 -60 -95 -81 -200 -81 -412 0 -256 41 -404 134 -486 53 -47 89
-58 171 -51 101 8 180 91 240 249 15 39 29 69 30 67 3 -3 45 -307 45 -327 0
-15 -81 -54 -163 -80 -274 -84 -554 16 -671 239 -60 113 -79 202 -79 370 -1
163 12 227 68 345 77 161 203 262 380 305 51 12 215 4 281 -13z"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -1,19 +0,0 @@
{
"name": "Card Conjurer",
"short_name": "Card Conjurer",
"icons": [
{
"src": "https://imkyle4815.github.io/cardconjurer/data/favicons/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "https://imkyle4815.github.io/cardconjurer/data/favicons/android-chrome-256x256.png",
"sizes": "256x256",
"type": "image/png"
}
],
"theme_color": "#64ca2f",
"background_color": "#64ca2f",
"display": "standalone"
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

View File

@@ -129,14 +129,8 @@ function cardClock() {
drawWatermark()
//writes all the text: name, type, rules...
writeText()
//m15 and 8th edition have different info at the bottom of the cards and require completely different functions
if (m15Info == true) {
bottomInfoM15()
} else if (eighthInfo == true) {
bottomInfo8th()
}else if (planechaseInfo == true) {
bottomInfoPlanechase()
}
//Runs any special function that a card may have, including bottom information.
window[uniqueFunctionName]()
//A shiny foil overlay!
if(document.getElementById("checkboxFoil").checked == true) {
card.drawImage(imgFoil, 0, 0, cardWidth, cardHeight)
@@ -157,6 +151,7 @@ function cardClock() {
//The two following functions load border images
function changeTemplate() {
//the loadScript function is located in data/scripts/loadScript.js. It sets values to variables such as set symbol coordinates or title font
borderPath = "data/borders/" + document.getElementById("borderSelection").value
loadScript("data/borders/defaultBorder.js")
}
function finishTemplate() {
@@ -166,20 +161,10 @@ function finishTemplate() {
borderCanvas.width = cardWidth
borderCanvas.height = cardHeight
document.getElementById("colorSelection").value = "white"
imgMultiMask.src = borderPath + "multiMask.png"
imgFrameMask.src = borderPath + "frameMask.png"
if (m15Info == true) {
imgLegendFrameMask.src = borderPath + "legendFrameMask.png"
imgRareStampMask.src = borderPath + "rareStampMask.png"
imgBorderMask.src = borderPath + "borderMask.png"
} else if (eighthInfo == true) {
imgBorderMask.src = borderPath + "frameMask.png"
}
updateBorder()
}
//Loads the images for the card frame, power toughness box, and rare stamp
function updateBorder() {
borderPath = "data/borders/" + document.getElementById("borderSelection").value
secondColor = document.getElementById("checkboxSecondColor").checked
thirdColor = document.getElementById("checkboxThirdColor").checked
var firstColorPath = borderPath + document.getElementById("colorSelection").value
@@ -557,19 +542,19 @@ function bottomInfoM15() {
canvas.style.letterSpacing = "0.8px"
card.font = "19.5px relaymedium"
var bottomLine = document.getElementById("inputSet").value + " \u00b7 " + document.getElementById("inputLanguage").value
card.fillText(bottomLine, 48, m15InfoY)
card.fillText(bottomLine, 48, infoY)
var artistBrushShift = card.measureText(bottomLine).width + 58
drawMask(card.fillStyle, artistBrushShift, m15InfoY + 5, 21, 13, card, imgArtistBrush, false, false)
drawMask(card.fillStyle, artistBrushShift, infoY + 5, 21, 13, card, imgArtistBrush, false, false)
canvas.style.letterSpacing = "1.3px"
card.font = "19.5px relaymedium"
card.fillText(document.getElementById("inputNumber").value, 49, m15InfoY - 20)
card.fillText(document.getElementById("inputRarity").value, artistBrushShift - 1, m15InfoY - 20)
card.fillText(document.getElementById("inputNumber").value, 49, infoY - 20)
card.fillText(document.getElementById("inputRarity").value, artistBrushShift - 1, infoY - 20)
if (442 < artistBrushShift + card.measureText(document.getElementById("inputRarity").value).width && document.getElementById("checkboxCreature").checked == false) {
shiftInfo = artistBrushShift + card.measureText(document.getElementById("inputRarity").value).width + 5
}
canvas.style.letterSpacing = "-0.1px"
card.font = "24px matrixbsc"
card.fillText(document.getElementById("inputArtist").value, artistBrushShift + 21, m15InfoY + 2)
card.fillText(document.getElementById("inputArtist").value, artistBrushShift + 21, infoY + 2)
if (442 < artistBrushShift + 21 + card.measureText(document.getElementById("inputArtist").value).width && document.getElementById("checkboxCreature").checked == true) {
shiftInfo = artistBrushShift + card.measureText(document.getElementById("inputArtist").value).width + 26
}
@@ -584,26 +569,12 @@ function bottomInfoM15() {
bottomInfo = "\u2122 & \u00a9 " + year + " Wizards of the Coast"
}
if (document.getElementById("checkboxCreature").checked == true) {
card.fillText(bottomInfo, shiftInfo, m15InfoY + 3)
card.fillText(bottomInfo, shiftInfo, infoY + 3)
} else {
card.fillText(bottomInfo, shiftInfo, m15InfoY - 17)
card.fillText(bottomInfo, shiftInfo, infoY - 17)
}
}
}
//Bottom info on 8th edition cards
function bottomInfo8th() {
if (document.getElementById("checkboxArtistColor").checked == true) {
card.fillStyle = "black"
} else {
card.fillStyle = "white"
}
canvas.style.letterSpacing = "1px"
card.font = "25px matrixb"
card.fillText(document.getElementById("inputArtist").value, 116, eighthInfoY)
canvas.style.letterSpacing = "0.5px"
card.font = "16px mplantin"
card.fillText("CC \u2014 " + document.getElementById("inputInfo").value + " " + document.getElementById("inputNumber").value, 62, eighthInfoY + 31)
}
//============================================//