Add current job

This commit is contained in:
goat 2021-05-27 15:40:05 +02:00
parent ae08163e68
commit e355bfd48c
No known key found for this signature in database
GPG key ID: F18F057873895461
40 changed files with 7 additions and 0 deletions

View file

@ -136,6 +136,11 @@ class CardCreator {
this.imgBluemage = await loadImage(absolute('./cj/1/bluemage.png'));
this.imgJobBg = {};
for (var i = 1; i <= 38; i++) {
this.imgJobBg[i] = await loadImage(absolute(`./cj/bg/${i}.png`));
}
await this.countMountsMinions();
}
@ -246,6 +251,8 @@ class CardCreator {
ctx.beginPath();
ctx.fillRect(rectStartX, rectStartRow1Y, rectFullWidth, rectHeightRow1);
ctx.drawImage(this.imgJobBg[data.Character.ActiveClassJob.Class.ID], rectStartX, rectStartRow1Y, rectFullWidth, rectHeightRow1);
ctx.fillRect(rectStartX, rectStartRow2Y, rectHalfWidth, rectHeightRow2);
ctx.fillRect(rectStartXHalf, rectStartRow2Y, rectHalfWidth, rectHeightRow2);