better flip cards
BIN
data/borders/m15/artifact/darkTitle.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
data/borders/m15/artifact/darkframe.png
Normal file
After Width: | Height: | Size: 100 KiB |
BIN
data/borders/m15/artifact/darkmiracle.png
Normal file
After Width: | Height: | Size: 768 KiB |
BIN
data/borders/m15/artifact/darkpt.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
data/borders/m15/black/darkTitle.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
data/borders/m15/black/darkframe.png
Normal file
After Width: | Height: | Size: 95 KiB |
BIN
data/borders/m15/black/darkmiracle.png
Normal file
After Width: | Height: | Size: 768 KiB |
BIN
data/borders/m15/black/darkpt.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
data/borders/m15/blackLand/darkTitle.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
data/borders/m15/blackLand/darkframe.png
Normal file
After Width: | Height: | Size: 94 KiB |
BIN
data/borders/m15/blackLand/darkmiracle.png
Normal file
After Width: | Height: | Size: 768 KiB |
BIN
data/borders/m15/blackLand/darkpt.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
data/borders/m15/blue/darkTitle.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
data/borders/m15/blue/darkframe.png
Normal file
After Width: | Height: | Size: 87 KiB |
BIN
data/borders/m15/blue/darkmiracle.png
Normal file
After Width: | Height: | Size: 768 KiB |
BIN
data/borders/m15/blue/darkpt.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
data/borders/m15/blueLand/darkTitle.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
data/borders/m15/blueLand/darkframe.png
Normal file
After Width: | Height: | Size: 104 KiB |
BIN
data/borders/m15/blueLand/darkmiracle.png
Normal file
After Width: | Height: | Size: 768 KiB |
BIN
data/borders/m15/blueLand/darkpt.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
data/borders/m15/colorless/darkTitle.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
data/borders/m15/colorless/darkframe.png
Normal file
After Width: | Height: | Size: 74 KiB |
BIN
data/borders/m15/colorless/darkmiracle.png
Normal file
After Width: | Height: | Size: 768 KiB |
BIN
data/borders/m15/colorless/darkpt.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
data/borders/m15/colorlessLand/darkTitle.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
data/borders/m15/colorlessLand/darkframe.png
Normal file
After Width: | Height: | Size: 96 KiB |
BIN
data/borders/m15/colorlessLand/darkmiracle.png
Normal file
After Width: | Height: | Size: 768 KiB |
BIN
data/borders/m15/colorlessLand/darkpt.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
data/borders/m15/gold/darkTitle.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
data/borders/m15/gold/darkframe.png
Normal file
After Width: | Height: | Size: 104 KiB |
BIN
data/borders/m15/gold/darkmiracle.png
Normal file
After Width: | Height: | Size: 768 KiB |
BIN
data/borders/m15/gold/darkpt.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
data/borders/m15/goldLand/darkTitle.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
data/borders/m15/goldLand/darkframe.png
Normal file
After Width: | Height: | Size: 104 KiB |
BIN
data/borders/m15/goldLand/darkmiracle.png
Normal file
After Width: | Height: | Size: 768 KiB |
BIN
data/borders/m15/goldLand/darkpt.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
data/borders/m15/green/darkTitle.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
data/borders/m15/green/darkframe.png
Normal file
After Width: | Height: | Size: 103 KiB |
BIN
data/borders/m15/green/darkmiracle.png
Normal file
After Width: | Height: | Size: 768 KiB |
BIN
data/borders/m15/green/darkpt.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
data/borders/m15/greenLand/darkTitle.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
data/borders/m15/greenLand/darkframe.png
Normal file
After Width: | Height: | Size: 103 KiB |
BIN
data/borders/m15/greenLand/darkmiracle.png
Normal file
After Width: | Height: | Size: 768 KiB |
BIN
data/borders/m15/greenLand/darkpt.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
data/borders/m15/red/darkTitle.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
data/borders/m15/red/darkframe.png
Normal file
After Width: | Height: | Size: 127 KiB |
BIN
data/borders/m15/red/darkmiracle.png
Normal file
After Width: | Height: | Size: 768 KiB |
BIN
data/borders/m15/red/darkpt.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
data/borders/m15/redLand/darkTitle.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
data/borders/m15/redLand/darkframe.png
Normal file
After Width: | Height: | Size: 110 KiB |
BIN
data/borders/m15/redLand/darkmiracle.png
Normal file
After Width: | Height: | Size: 768 KiB |
BIN
data/borders/m15/redLand/darkpt.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
data/borders/m15/vehicle/darkTitle.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
data/borders/m15/vehicle/darkframe.png
Normal file
After Width: | Height: | Size: 100 KiB |
BIN
data/borders/m15/vehicle/darkmiracle.png
Normal file
After Width: | Height: | Size: 768 KiB |
BIN
data/borders/m15/vehicle/darkpt.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
data/borders/m15/white/darkTitle.png
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
data/borders/m15/white/darkframe.png
Normal file
After Width: | Height: | Size: 70 KiB |
BIN
data/borders/m15/white/darkmiracle.png
Normal file
After Width: | Height: | Size: 768 KiB |
BIN
data/borders/m15/white/darkpt.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
data/borders/m15/whiteLand/darkTitle.png
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
data/borders/m15/whiteLand/darkframe.png
Normal file
After Width: | Height: | Size: 99 KiB |
BIN
data/borders/m15/whiteLand/darkmiracle.png
Normal file
After Width: | Height: | Size: 768 KiB |
BIN
data/borders/m15/whiteLand/darkpt.png
Normal file
After Width: | Height: | Size: 43 KiB |
50
index.html
@@ -58,6 +58,8 @@
|
|||||||
<input type="checkbox" id="checkboxFlipTip" onchange="updateColor()">Flip Tip
|
<input type="checkbox" id="checkboxFlipTip" onchange="updateColor()">Flip Tip
|
||||||
<input id="inputFlipTip" value="" type="text"></input>
|
<input id="inputFlipTip" value="" type="text"></input>
|
||||||
<br/>
|
<br/>
|
||||||
|
<input type="checkbox" id="checkboxFlippedDark" onchange="updateColor()">Flipped (Darker)</input>
|
||||||
|
<br/>
|
||||||
<input type="checkbox" id="checkboxSilverBorder">Silver Border</input>
|
<input type="checkbox" id="checkboxSilverBorder">Silver Border</input>
|
||||||
<br/>
|
<br/>
|
||||||
<input type="color" id="inputColor"> Border Color</input>
|
<input type="color" id="inputColor"> Border Color</input>
|
||||||
@@ -415,7 +417,7 @@ var titleRightShift = 0
|
|||||||
var canvas = document.getElementById("canvas")
|
var canvas = document.getElementById("canvas")
|
||||||
var card = canvas.getContext("2d")
|
var card = canvas.getContext("2d")
|
||||||
//Load dynamic images
|
//Load dynamic images
|
||||||
var dynamicImageList = ["borderColor", "secondBorderColor", "thirdBorderColor", "borderCreature", "borderLegendary", "secondBorderLegendary", "borderRareStamp", "secondBorderRareStamp", "art", "setSymbol", "watermark", "multiMask", "rareStampMask", "frameMask", "legendFrameMask", "borderMask", "borderNyx", "secondBorderNyx", "borderMiracle", "secondBorderMiracle", "borderFlipIcon", "borderFlipCircle", "borderFlipTip"]
|
var dynamicImageList = ["borderColor", "secondBorderColor", "thirdBorderColor", "borderCreature", "borderLegendary", "secondBorderLegendary", "borderRareStamp", "secondBorderRareStamp", "art", "setSymbol", "watermark", "multiMask", "rareStampMask", "frameMask", "legendFrameMask", "borderMask", "borderNyx", "secondBorderNyx", "borderMiracle", "secondBorderMiracle", "borderFlipIcon", "borderFlipCircle", "borderFlipTip", "borderDarkTitle", "secondBorderDarkTitle"]
|
||||||
for (i = 0; i < dynamicImageList.length; i ++) {
|
for (i = 0; i < dynamicImageList.length; i ++) {
|
||||||
var imgName = "img" + dynamicImageList[i].charAt(0).toUpperCase() + dynamicImageList[i].slice(1)
|
var imgName = "img" + dynamicImageList[i].charAt(0).toUpperCase() + dynamicImageList[i].slice(1)
|
||||||
window[imgName] = new Image()
|
window[imgName] = new Image()
|
||||||
@@ -512,15 +514,21 @@ function updateColor() {
|
|||||||
var firstColorPath = borderPath + document.getElementById("colorSelection").value
|
var firstColorPath = borderPath + document.getElementById("colorSelection").value
|
||||||
var secondColorPath = borderPath + document.getElementById("secondColorSelection").value
|
var secondColorPath = borderPath + document.getElementById("secondColorSelection").value
|
||||||
var thirdColorPath = borderPath + document.getElementById("thirdColorSelection").value
|
var thirdColorPath = borderPath + document.getElementById("thirdColorSelection").value
|
||||||
imgBorderColor.src = firstColorPath + "/frame.png"
|
var altframe = ""
|
||||||
imgSecondBorderColor.src = secondColorPath + "/frame.png"
|
if (document.getElementById("checkboxFlippedDark").checked == true && flipBorder == true) {
|
||||||
imgThirdBorderColor.src = thirdColorPath + "/frame.png"
|
altframe = "dark"
|
||||||
if (thirdColor == true) {
|
|
||||||
imgBorderCreature.src = thirdColorPath + "/pt.png"
|
|
||||||
} else if (secondColor == true) {
|
|
||||||
imgBorderCreature.src = secondColorPath + "/pt.png"
|
|
||||||
} else {
|
} else {
|
||||||
imgBorderCreature.src = firstColorPath + "/pt.png"
|
altframe = ""
|
||||||
|
}
|
||||||
|
imgBorderColor.src = firstColorPath + "/" + altframe + "frame.png"
|
||||||
|
imgSecondBorderColor.src = secondColorPath + "/" + altframe + "frame.png"
|
||||||
|
imgThirdBorderColor.src = thirdColorPath + "/" + altframe + "frame.png"
|
||||||
|
if (thirdColor == true) {
|
||||||
|
imgBorderCreature.src = thirdColorPath + "/" + altframe + "pt.png"
|
||||||
|
} else if (secondColor == true) {
|
||||||
|
imgBorderCreature.src = secondColorPath + "/" + altframe + "pt.png"
|
||||||
|
} else {
|
||||||
|
imgBorderCreature.src = firstColorPath + "/" + altframe + "pt.png"
|
||||||
}
|
}
|
||||||
if (legendaryBorder == true) {
|
if (legendaryBorder == true) {
|
||||||
imgBorderLegendary.src = firstColorPath + "/legendary.png"
|
imgBorderLegendary.src = firstColorPath + "/legendary.png"
|
||||||
@@ -540,13 +548,21 @@ function updateColor() {
|
|||||||
}
|
}
|
||||||
if (miracleBorder == true) {
|
if (miracleBorder == true) {
|
||||||
if (thirdColor == true) {
|
if (thirdColor == true) {
|
||||||
imgBorderMiracle.src = thirdColorPath + "/miracle.png"
|
imgBorderMiracle.src = thirdColorPath + "/" + altframe + "miracle.png"
|
||||||
} else {
|
} else {
|
||||||
imgBorderMiracle.src = firstColorPath + "/miracle.png"
|
imgBorderMiracle.src = firstColorPath + "/" + altframe + "miracle.png"
|
||||||
imgSecondBorderMiracle.src = secondColorPath + "/miracle.png"
|
imgSecondBorderMiracle.src = secondColorPath + "/" + altframe + "miracle.png"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (flipBorder == true) {
|
if (flipBorder == true) {
|
||||||
|
if (thirdColor == true) {
|
||||||
|
imgBorderDarkTitle.src = thirdColorPath + "/darkTitle.png"
|
||||||
|
} else {
|
||||||
|
imgBorderDarkTitle.src = firstColorPath + "/darkTitle.png"
|
||||||
|
if (secondColor == true) {
|
||||||
|
imgSecondBorderDarkTitle.src = secondColorPath + "/darkTitle.png"
|
||||||
|
}
|
||||||
|
}
|
||||||
if (secondColor == true) {
|
if (secondColor == true) {
|
||||||
imgBorderFlipTip.src = secondColorPath + "/flipTip.png"
|
imgBorderFlipTip.src = secondColorPath + "/flipTip.png"
|
||||||
} else {
|
} else {
|
||||||
@@ -644,6 +660,16 @@ function drawBorder() {
|
|||||||
card.font = "28px belerenb"
|
card.font = "28px belerenb"
|
||||||
card.fillText(document.getElementById("inputFlipTip").value, 688 - card.measureText(document.getElementById("inputFlipTip").value).width, 880)
|
card.fillText(document.getElementById("inputFlipTip").value, 688 - card.measureText(document.getElementById("inputFlipTip").value).width, 880)
|
||||||
}
|
}
|
||||||
|
// if (document.getElementById("checkboxFlippedDark").checked == true && flipBorder == true) {
|
||||||
|
// if (thirdColor == true) {
|
||||||
|
// drawMask(imgBorderDarkTitle, 0, 0, canvas.width, canvas.height, imgFrameMask, false, false)
|
||||||
|
// } else {
|
||||||
|
// drawMask(imgBorderDarkTitle, 0, 0, canvas.width, canvas.height, imgFrameMask, false, false)
|
||||||
|
// if (secondColor == true) {
|
||||||
|
// drawMask(imgSecondBorderDarkTitle, 0, 0, canvas.width, canvas.height, imgFrameMask, imgMultiGradient, "reverseSecond")
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
//Draw Set Symbol
|
//Draw Set Symbol
|
||||||
function drawSetSymbol() {
|
function drawSetSymbol() {
|
||||||
|