Add FC tag
This commit is contained in:
parent
36962ad32a
commit
ae08163e68
1 changed files with 9 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue