Replace flavor text separator bar

This commit is contained in:
Josh Birnholz
2022-11-24 19:56:21 -05:00
committed by Josh birnholz
parent 42bdadea18
commit 763e3212db
2 changed files with 3 additions and 6 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 285 B

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -1008,15 +1008,12 @@ function writeText(textObject, targetContext) {
} else if (possibleCode == 'lns' || possibleCode == 'linenospace') { } else if (possibleCode == 'lns' || possibleCode == 'linenospace') {
newLine = true; newLine = true;
} else if (possibleCode == 'bar') { } else if (possibleCode == 'bar') {
var barWidth = textWidth * 0.95; var barWidth = textWidth * 0.96;
var barHeight = scaleHeight(0.002); var barHeight = scaleHeight(0.03);
var barImageName = 'bar'; var barImageName = 'bar';
var barDistance = 0.45; var barDistance = 0;
realTextAlign = textAlign; realTextAlign = textAlign;
textAlign = 'left'; textAlign = 'left';
if (textColor == 'white') {
barImageName = 'whitebar';
}
if (card.version == 'cartoony') { if (card.version == 'cartoony') {
barImageName = 'cflavor'; barImageName = 'cflavor';
barWidth = scaleWidth(0.8547); barWidth = scaleWidth(0.8547);