betterinfo

This commit is contained in:
Kyle
2018-11-30 19:47:14 -08:00
parent ed70cb2e64
commit d878c81ae4
5 changed files with 7 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
//M15 Border //Token Text
//Anything to do with... //Anything to do with...
//Loading Images //Loading Images
var artX = 56 var artX = 56
@@ -7,6 +7,9 @@ imgMultiMask.src = borderPath + "multiMask.png"
imgFrameMask.src = borderPath + "frameMask.png" imgFrameMask.src = borderPath + "frameMask.png"
imgLegendFrameMask.src = borderPath + "legendFrameMask.png" imgLegendFrameMask.src = borderPath + "legendFrameMask.png"
imgBorderMask.src = borderPath + "borderMask.png" imgBorderMask.src = borderPath + "borderMask.png"
imgRulesMask.src = borderPath + "rulesMask.png"
imgTypeMask.src = borderPath + "typeMask.png"
imgTitleMask.src = borderPath + "titleMask.png"
//Card Title //Card Title
document.getElementById("inputTitleColor").value = "#ffe886" document.getElementById("inputTitleColor").value = "#ffe886"
var titleFont = "40px belerenbsc" //40 var titleFont = "40px belerenbsc" //40

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@@ -570,6 +570,9 @@ function bottomInfoM15() {
card.mask("imgArtMask,source-over", imgArtistBrush, card.fillStyle) card.mask("imgArtMask,source-over", imgArtistBrush, card.fillStyle)
canvas.style.letterSpacing = "1.3px" canvas.style.letterSpacing = "1.3px"
card.font = "19.5px relaymedium" card.font = "19.5px relaymedium"
if (card.measureText(document.getElementById("inputNumber").value).width > artistBrushShift - 58) {
artistBrushShift = card.measureText(document.getElementById("inputNumber").value).width + 58
}
card.fillText(document.getElementById("inputNumber").value, 49, infoY - 20) card.fillText(document.getElementById("inputNumber").value, 49, infoY - 20)
card.fillText(document.getElementById("inputRarity").value, artistBrushShift - 1, 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) { if (442 < artistBrushShift + card.measureText(document.getElementById("inputRarity").value).width && document.getElementById("checkboxCreature").checked == false) {