Add FC tag

This commit is contained in:
goat 2021-05-27 03:50:39 +02:00
parent 36962ad32a
commit ae08163e68
No known key found for this signature in database
GPG key ID: F18F057873895461

View file

@ -313,9 +313,18 @@ class CardCreator {
if (crestImage !== null)
ctx.drawImage(crestImage, fcCrestX, fcCrestY, fcCrestScale, fcCrestScale);
const fcMeasure = ctx.measureText(data.Character.FreeCompanyName);
ctx.fillText(data.Character.FreeCompanyName, 480, infoTextBigStartY + infoTextSpacing * 3);
ctx.fillStyle = grey;
ctx.font = small;
ctx.fillText(`«${data.FreeCompany.Tag}»`, 480 + fcMeasure.width + 10, infoTextBigStartY + infoTextSpacing * 3);
}
ctx.font = smed;
ctx.fillStyle = white;
// Minion & Mount percentages
var mountsPct = '??';
if (data.Mounts !== null) {