diff --git a/data/borders/8th/border.js b/data/borders/8th/border.js index 8942b448..4ecaa02e 100644 --- a/data/borders/8th/border.js +++ b/data/borders/8th/border.js @@ -47,4 +47,4 @@ 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 -updateBorder() \ No newline at end of file +finishTemplate() \ No newline at end of file diff --git a/data/borders/defaultBorder.js b/data/borders/defaultBorder.js index f770172d..1e59cc71 100644 --- a/data/borders/defaultBorder.js +++ b/data/borders/defaultBorder.js @@ -7,8 +7,19 @@ var nyxBorder = false var miracleBorder = false var stampBorder = false var flipBorder = false +var creatureBorder = true +var thirdBorder = true +var secondBorder = true +//Shifted text titleRightShift = 0 typeRightShift = 0 +//Aligned text +var titleAlign = "left" +var typeAlign = "left" +//Image alignment +var centerSetSymbol = 1 //1=not centered, 2=centered +var artX = 58 +var artY = 118 //Loads the correct border data borderPath = "data/borders/" + document.getElementById("borderSelection").value loadScript(borderPath + "border.js") \ No newline at end of file diff --git a/data/borders/artMask.png b/data/borders/m15/artMask.png similarity index 100% rename from data/borders/artMask.png rename to data/borders/m15/artMask.png diff --git a/data/borders/m15/artifact/front.png b/data/borders/m15/artifact/front.png deleted file mode 100644 index 78edd1cc..00000000 Binary files a/data/borders/m15/artifact/front.png and /dev/null differ diff --git a/data/borders/m15/border.js b/data/borders/m15/border.js index 7ab61a50..bb26478a 100644 --- a/data/borders/m15/border.js +++ b/data/borders/m15/border.js @@ -56,5 +56,5 @@ nyxBorder = true miracleBorder = true flipBorder = true //With all the new values in place, the program will update it's border images -updateBorder() +finishTemplate() //Any special functions go at the bottom \ No newline at end of file diff --git a/data/borders/map/artMask.png b/data/borders/map/artMask.png new file mode 100644 index 00000000..b90810f4 Binary files /dev/null and b/data/borders/map/artMask.png differ diff --git a/data/borders/map/artifact/frame.png b/data/borders/map/artifact/frame.png new file mode 100644 index 00000000..8d19601f Binary files /dev/null and b/data/borders/map/artifact/frame.png differ diff --git a/data/borders/map/artifact/pt.png b/data/borders/map/artifact/pt.png new file mode 100644 index 00000000..f19c2bb7 Binary files /dev/null and b/data/borders/map/artifact/pt.png differ diff --git a/data/borders/map/artifactLand/frame.png b/data/borders/map/artifactLand/frame.png new file mode 100644 index 00000000..2cd1db8c Binary files /dev/null and b/data/borders/map/artifactLand/frame.png differ diff --git a/data/borders/map/artifactLand/pt.png b/data/borders/map/artifactLand/pt.png new file mode 100644 index 00000000..95380b7c Binary files /dev/null and b/data/borders/map/artifactLand/pt.png differ diff --git a/data/borders/map/black/frame.png b/data/borders/map/black/frame.png new file mode 100644 index 00000000..017e8adc Binary files /dev/null and b/data/borders/map/black/frame.png differ diff --git a/data/borders/map/black/pt.png b/data/borders/map/black/pt.png new file mode 100644 index 00000000..ccabcae3 Binary files /dev/null and b/data/borders/map/black/pt.png differ diff --git a/data/borders/map/blackLand/frame.png b/data/borders/map/blackLand/frame.png new file mode 100644 index 00000000..362c4e47 Binary files /dev/null and b/data/borders/map/blackLand/frame.png differ diff --git a/data/borders/map/blackLand/pt.png b/data/borders/map/blackLand/pt.png new file mode 100644 index 00000000..ccabcae3 Binary files /dev/null and b/data/borders/map/blackLand/pt.png differ diff --git a/data/borders/map/blue/frame.png b/data/borders/map/blue/frame.png new file mode 100644 index 00000000..e20f3348 Binary files /dev/null and b/data/borders/map/blue/frame.png differ diff --git a/data/borders/map/blue/pt.png b/data/borders/map/blue/pt.png new file mode 100644 index 00000000..ae171eb1 Binary files /dev/null and b/data/borders/map/blue/pt.png differ diff --git a/data/borders/map/blueLand/frame.png b/data/borders/map/blueLand/frame.png new file mode 100644 index 00000000..f8e3b198 Binary files /dev/null and b/data/borders/map/blueLand/frame.png differ diff --git a/data/borders/map/blueLand/pt.png b/data/borders/map/blueLand/pt.png new file mode 100644 index 00000000..ae171eb1 Binary files /dev/null and b/data/borders/map/blueLand/pt.png differ diff --git a/data/borders/map/border.js b/data/borders/map/border.js new file mode 100644 index 00000000..7e8bd3b9 --- /dev/null +++ b/data/borders/map/border.js @@ -0,0 +1,59 @@ +//Map Border +//Anything to do with... +//Card Title +var titleFont = "40px belerenbsc" +var titleFontSpacing = "0.1px" +var titleX = 374.5 +var titleY = 52 +var titleAlign = "center" +//Mana Cost +var manaCostRadius = 17.5 +var manaCostX = 657 +var manaCostY = 59 +//Card Type +var typeFont = "33.5px belerenb" +var typeFontSpacing = "0.05px" +var typeX = 374.5 +var typeY = 598 +var typeAlign = "center" +//Rules/Flavor Text +var textFont = "px mplantin" +var textFontSpacing = 1.1 +var textX = 89 +var textY = 662 +var textWidth = 660 +//Power Toughness +var ptFont = "39px belerenb" +var ptFontSpacing = "0.3px" +var ptTextX = 645 +var ptTextY = 936 +var ptX = 571 +var ptY = 929 +var ptWidth = 137 +var ptHeight = 75 +//Bottom Info +var eighthInfo = false +var eighthInfoY = 992 +var m15Info = true +var m15InfoY = 993 +//Set Symbol +var setSymbolY = 123 +var setSymbolRight = 374.5 +var setSymbolWidth = 66 +var setSymbolHeight = 44 +var centerSetSymbol = 2 +//Watermark +var watermarkWidth = 520 +var watermarkHeight = 250 +var watermarkY = 805 +//Color Options +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") +document.getElementById("secondColorSelection").innerHTML = document.getElementById("colorSelection").innerHTML +document.getElementById("thirdColorSelection").innerHTML = document.getElementById("colorSelection").innerHTML +//Other +var thirdBorder = false +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 \ No newline at end of file diff --git a/data/borders/map/borderMask.png b/data/borders/map/borderMask.png new file mode 100644 index 00000000..710d200e Binary files /dev/null and b/data/borders/map/borderMask.png differ diff --git a/data/borders/map/colorless/frame.png b/data/borders/map/colorless/frame.png new file mode 100644 index 00000000..4d9cccf0 Binary files /dev/null and b/data/borders/map/colorless/frame.png differ diff --git a/data/borders/map/colorless/pt.png b/data/borders/map/colorless/pt.png new file mode 100644 index 00000000..3a5ec3a5 Binary files /dev/null and b/data/borders/map/colorless/pt.png differ diff --git a/data/borders/map/colorlessLand/frame.png b/data/borders/map/colorlessLand/frame.png new file mode 100644 index 00000000..476cef98 Binary files /dev/null and b/data/borders/map/colorlessLand/frame.png differ diff --git a/data/borders/map/colorlessLand/pt.png b/data/borders/map/colorlessLand/pt.png new file mode 100644 index 00000000..3a5ec3a5 Binary files /dev/null and b/data/borders/map/colorlessLand/pt.png differ diff --git a/data/borders/map/frameMask.png b/data/borders/map/frameMask.png new file mode 100644 index 00000000..f48e102b Binary files /dev/null and b/data/borders/map/frameMask.png differ diff --git a/data/borders/map/gold/frame.png b/data/borders/map/gold/frame.png new file mode 100644 index 00000000..c9c052b6 Binary files /dev/null and b/data/borders/map/gold/frame.png differ diff --git a/data/borders/map/gold/pt.png b/data/borders/map/gold/pt.png new file mode 100644 index 00000000..6deafacc Binary files /dev/null and b/data/borders/map/gold/pt.png differ diff --git a/data/borders/map/goldLand/frame.png b/data/borders/map/goldLand/frame.png new file mode 100644 index 00000000..3f67adaf Binary files /dev/null and b/data/borders/map/goldLand/frame.png differ diff --git a/data/borders/map/goldLand/pt.png b/data/borders/map/goldLand/pt.png new file mode 100644 index 00000000..6deafacc Binary files /dev/null and b/data/borders/map/goldLand/pt.png differ diff --git a/data/borders/map/green/frame.png b/data/borders/map/green/frame.png new file mode 100644 index 00000000..51dc2bc6 Binary files /dev/null and b/data/borders/map/green/frame.png differ diff --git a/data/borders/map/green/pt.png b/data/borders/map/green/pt.png new file mode 100644 index 00000000..75aef3c1 Binary files /dev/null and b/data/borders/map/green/pt.png differ diff --git a/data/borders/map/greenLand/frame.png b/data/borders/map/greenLand/frame.png new file mode 100644 index 00000000..509e5798 Binary files /dev/null and b/data/borders/map/greenLand/frame.png differ diff --git a/data/borders/map/greenLand/pt.png b/data/borders/map/greenLand/pt.png new file mode 100644 index 00000000..75aef3c1 Binary files /dev/null and b/data/borders/map/greenLand/pt.png differ diff --git a/data/borders/map/red/frame.png b/data/borders/map/red/frame.png new file mode 100644 index 00000000..74b1d48f Binary files /dev/null and b/data/borders/map/red/frame.png differ diff --git a/data/borders/map/red/pt.png b/data/borders/map/red/pt.png new file mode 100644 index 00000000..03ae8bfb Binary files /dev/null and b/data/borders/map/red/pt.png differ diff --git a/data/borders/map/redLand/frame.png b/data/borders/map/redLand/frame.png new file mode 100644 index 00000000..6bf19a7b Binary files /dev/null and b/data/borders/map/redLand/frame.png differ diff --git a/data/borders/map/redLand/pt.png b/data/borders/map/redLand/pt.png new file mode 100644 index 00000000..03ae8bfb Binary files /dev/null and b/data/borders/map/redLand/pt.png differ diff --git a/data/borders/map/white/frame.png b/data/borders/map/white/frame.png new file mode 100644 index 00000000..0fd7b501 Binary files /dev/null and b/data/borders/map/white/frame.png differ diff --git a/data/borders/map/white/pt.png b/data/borders/map/white/pt.png new file mode 100644 index 00000000..eef49e9a Binary files /dev/null and b/data/borders/map/white/pt.png differ diff --git a/data/borders/map/whiteLand/frame.png b/data/borders/map/whiteLand/frame.png new file mode 100644 index 00000000..59e2cac1 Binary files /dev/null and b/data/borders/map/whiteLand/frame.png differ diff --git a/data/borders/map/whiteLand/pt.png b/data/borders/map/whiteLand/pt.png new file mode 100644 index 00000000..eef49e9a Binary files /dev/null and b/data/borders/map/whiteLand/pt.png differ diff --git a/data/borders/old/borderColorMask.png b/data/borders/old/borderColorMask.png deleted file mode 100644 index 166d0686..00000000 Binary files a/data/borders/old/borderColorMask.png and /dev/null differ diff --git a/data/borders/old/borderEdge.png b/data/borders/old/borderEdge.png deleted file mode 100644 index 84adf68a..00000000 Binary files a/data/borders/old/borderEdge.png and /dev/null differ diff --git a/data/borders/old/borderMask.png b/data/borders/old/borderMask.png deleted file mode 100644 index b9581508..00000000 Binary files a/data/borders/old/borderMask.png and /dev/null differ diff --git a/data/borders/old/legendSilver.png b/data/borders/old/legendSilver.png deleted file mode 100644 index e692cac7..00000000 Binary files a/data/borders/old/legendSilver.png and /dev/null differ diff --git a/data/borders/old/silverBorder.png b/data/borders/old/silverBorder.png deleted file mode 100644 index 2f89c373..00000000 Binary files a/data/borders/old/silverBorder.png and /dev/null differ diff --git a/data/scripts/mask.js b/data/scripts/mask.js index 85c086ce..67ecb748 100644 --- a/data/scripts/mask.js +++ b/data/scripts/mask.js @@ -1,7 +1,8 @@ var mask = document.createElement("canvas") var maskContext = mask.getContext("2d") -function drawMask(img, x, y, width, height, imgMask, secondMask, arg) { +function drawMask(img, x, y, width, height, targetContext, imgMask, secondMask, arg) { + var context = targetContext mask.width = width mask.height = height maskContext.clearRect(0, 0, width, height) @@ -22,5 +23,5 @@ function drawMask(img, x, y, width, height, imgMask, secondMask, arg) { } else { maskContext.drawImage(img, 0, 0, width, height) } - card.drawImage(mask, x, y, width, height) + targetContext.drawImage(mask, x, y, width, height) } \ No newline at end of file diff --git a/index.html b/index.html index ed7e1ae7..8d3416e9 100644 --- a/index.html +++ b/index.html @@ -19,36 +19,38 @@
Card Border
Border - + +
Color -
- Second Color + Second Color
- Third Color + Third Color
- Power/Toughness + Power/Toughness
Border (Advanced)
- Legendary + Legendary
- Nyx + Nyx
- Miracle + Miracle
- Rare Stamp + Rare Stamp
- Flip Icon Flip Icon
- Flip Tip + Flip Tip
- Flipped (Darker) + Flipped (Darker)
- Silver Border + Silver Border
- Border Color + Border Color
Foil
- Color Identity - + Color Identity +
@@ -427,8 +429,12 @@ a:active {